Vixen
02b45cc4
csharp
public readonly record struct WindowOptions

What to create a window as.

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

Remarks

A record struct with defaults that give a sensible 1280×720 resizable window, so new WindowOptions { Title = "Game" } is enough to get started and every other field is an opt-in.

Fields and properties (12)

  • public string Title

    The title bar text.

  • public Int2 Size

    The client area's size in logical points.

  • public Int2? Position

    Where to put the top-left corner, or to let the platform decide.

  • public Int2? MinimumSize

    The smallest the user may make it, or for no limit.

  • public Int2? MaximumSize

    The largest the user may make it, or for no limit.

  • public WindowMode Mode

    How it relates to its display.

  • public bool IsResizable

    Whether the user can resize it.

  • public bool IsDecorated

    Whether it has a title bar and border.

  • public bool IsVisible

    Whether to show it immediately.

  • public bool IsAlwaysOnTop

    Whether it should stay above other windows.

  • public int? DisplayIndex

    Which display to place it on, or for the primary one.

  • public bool AcceptsDrops

    Whether files and text dropped on it should be reported.

Methods (1)

  • public WindowOptions()

    What to create a window as.

Used by (18)

  • PbrShowcaseGamePbrShowcase
  • ProgramHelloUi
  • ThirdPersonShooterGameThirdPersonShooter
  • TriangleGameHelloTriangle
  • VideoGameVideoPlayback
  • VirtualGeometryGameVirtualGeometry
  • AppBuilderVixen.App.Hosting
  • AppConfigVixen.App.Hosting
  • DesktopGlContextTestsVixen.Platform.Desktop.Tests
  • DesktopPlatformVixen.Platform.Desktop
  • DesktopPlatformTestsVixen.Platform.Desktop.Tests
  • HeadlessPlatformVixen.Platform.Headless
  • HeadlessPlatformTestsVixen.Platform.Headless.Tests
  • HeadlessWindowVixen.Platform.Headless
  • IPlatformVixen.Platform
  • PlatformWindowHostVixen.Platform.Ui
  • PlatformWindowHostTestsVixen.Platform.Ui.Tests
  • ProgramVixen.Editor.Host