Class DeferWindowPosState
- Namespace
- Whim
- Assembly
- Whim.dll
The positioning state of a window.
public record DeferWindowPosState : WindowPosition, IEquatable<WindowPosition>, IEquatable<DeferWindowPosState>
- Inheritance
-
DeferWindowPosState
- Implements
- Inherited Members
Constructors
DeferWindowPosState(HWND, WindowSize, IRectangle<int>, HWND?, SET_WINDOW_POS_FLAGS?)
Creates a WindowPosState record.
public DeferWindowPosState(HWND handle, WindowSize windowSize, IRectangle<int> rect, HWND? hwndInsertAfter = null, SET_WINDOW_POS_FLAGS? flags = null)
Parameters
handleHWND- The handle of the window set the position of.
windowSizeWindowSize- The size of the window to set the position of.
rectIRectangle<int>- The size and position of the window.
hwndInsertAfterHWND?- The HWND to insert the window after. See SetWindowPos.
Defaults to
new HWND(1). flagsSET_WINDOW_POS_FLAGS?- The flags to use when setting the window position. This overrides the default flags Whim sets, except when the window is maximized or minimized.
Properties
Flags
The window position flags to apply.
public SET_WINDOW_POS_FLAGS? Flags { get; }
Property Value
Handle
The handle of the window to set the position for.
public HWND Handle { get; }
Property Value
HandleInsertAfter
The HWND to insert the window after. See SetWindowPos.
public HWND HandleInsertAfter { get; }