Vixen
02b45cc4
csharp
public sealed class PlatformUiWindow

One operating-system window showing one surface of a document.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (6)

  • public IWindow Window

    The platform's window.

  • public UiSurface Surface

    The part of the document it shows.

  • public string Title

    The title bar text.

  • public (float X, float Y, float Width, float Height) Bounds

    Where it is and how big, in device-independent pixels in desktop space.

  • public float DpiScale

    How many physical pixels one device-independent one is on its display.

  • public bool IsClosed

    Whether it has been closed.

Events (2)

  • public Action<IUiWindow>? CloseRequested

    Raised when the user asks to close it, before anything is destroyed.

  • public Action<IUiWindow>? Moved

    Raised after the user has moved or resized it.

Methods (2)

  • public void Focus()

    Brings it to the front and asks for keyboard focus.

  • public void Dispose()

Used by (2)

  • PlatformWindowHostVixen.Platform.Ui
  • PlatformWindowHostTestsVixen.Platform.Ui.Tests