data_object Properties 19

AllowNestedFrame
bool
Let frames run inside a frame that's already running - see IPanelWindow.
AlwaysFullFrameRate
bool
Keep drawing at the display's frame rate even when nobody is looking at this window. Idle windows are paced right down - set this for one with something moving in it that has to keep moving, like a video or a live preview.
BackgroundColor
Color
What the window clears to before the UI is drawn.
Borderless
bool
True if we're drawing the title bar and borders ourselves.
CanMaximize
bool
Whether the OS is allowed to maximize the window - the caption button, double clicking the title bar, Win+Up, snap. Windows drawing their own chrome check this for their maximize button too.
IsFocused
bool
Does this window have keyboard focus?
IsMaximized
bool
Is the window maximized?
IsOpen
bool
Is this window still open?
MaxSize
Vector2
The largest the user can resize the window to. Zero means no limit.
MinSize
Vector2
The smallest the user can resize the window to. Zero means no limit.
MousePosition
Vector2
Where the cursor is, in this window's pixels.
OnCloseRequested
Action
Called when the user clicks the window's close button. The window closes if this is null.
Position
Vector2
Position of the window on the desktop, in pixels.
ResizeBorder
float
How far from the edge of a borderless window counts as a resize handle, in pixels.
Root
RootPanel
The panel everything in this window hangs off.
Size
Vector2
Size of the window's client area, in pixels.
SizeToContents
bool
Resize the window to fit the first thing on the surface. Popups use this so a menu is exactly as big as its contents, however far outside the parent window that ends up.
Title
string
The window's title bar text.
VSync
bool
Does this window's present wait for the display?
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.