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 WindowState

Remarks

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 X

Left edge, from the left of the primary monitor.

Y

public readonly int Y

Top edge, from the top of the primary monitor.

Width

public readonly uint Width

Width of the client area.

Height

public readonly uint Height

Height of the client area.

Scale

public readonly float Scale

How many physical pixels one logical pixel is on the window's monitor.

Flags

public readonly WindowStateFlags Flags

What it is doing.