Scripting API
Scripting API
WindowState
Struct in Abyss.Core, from Abyss.Core.
A window's client area on the desktop, in physical pixels, and what it is doing.
public readonly struct WindowStateRemarks
Laid out as abyss_core::window::WindowState is. The client area rather than the frame, because that is where drawing lands and where a cursor has to be mapped to; for a window with no frame the two are the same.
Properties
Created
public bool Created { get; }Whether the platform's window exists yet.
Focused
public bool Focused { get; }Whether it has the keyboard.
Minimized
public bool Minimized { get; }Whether it is minimized.
Hovered
public bool Hovered { get; }Whether the cursor is over it.
CloseRequested
public bool CloseRequested { get; }Whether the platform asked for it to close since the last time anybody looked.
Maximized
public bool Maximized { get; }Whether it is maximized.
FullScreen
public bool FullScreen { get; }Whether it is full screen, or going into it or coming out.
Fields
X
public readonly int XLeft edge, from the left of the primary monitor.
Y
public readonly int YTop edge, from the top of the primary monitor.
Width
public readonly uint WidthWidth of the client area.
Height
public readonly uint HeightHeight of the client area.
Scale
public readonly float ScaleHow many physical pixels one logical pixel is on the window's monitor.
Flags
public readonly WindowStateFlags FlagsWhat it is doing.
