Table of Contents

Interface IWindow

Namespace
Whim
Assembly
Whim.dll
Represents a single window.
public interface IWindow

Properties

Handle

The handle of the window.
HWND Handle { get; }

Property Value

HWND

IsFocused

Indicates whether the window is focused.
bool IsFocused { get; }

Property Value

bool

IsMaximized

Indicates whether the window is maximised.
bool IsMaximized { get; }

Property Value

bool

IsMinimized

Indiciates whether the window is minimized.
bool IsMinimized { get; }

Property Value

bool

IsUwp

Whether we think that the window is a UWP app.
bool IsUwp { get; }

Property Value

bool

ProcessFileName

The file name of the module. For example, SnippingTool.exe.
string? ProcessFileName { get; }

Property Value

string

ProcessFilePath

The fully qualified path that defines the location of the module.
string? ProcessFilePath { get; }

Property Value

string

ProcessId

The process ID of the window.
int ProcessId { get; }

Property Value

int

Rectangle

The containing rectangle for the window.
IRectangle<int> Rectangle { get; }

Property Value

IRectangle<int>

Title

The title of the window.
string Title { get; }

Property Value

string

WindowClass

The name of the class to which the window belongs.
string WindowClass { get; }

Property Value

string

Methods

BringToTop()

Brings the window to the top.
void BringToTop()

Close()

Quits the window.
void Close()

Focus()

Forces the window to the foreground and to be focused.
void Focus()

GetIcon()

Gets the icon of the window.
BitmapImage? GetIcon()

Returns

BitmapImage

Hide()

Hides this window.
void Hide()

Restore()

Activates and displays the window. If the window is minimized, maximized, or arranged, the system restores it to its original size and position
void Restore()

ShowMaximized()

Activates the window and displays it as a maximized window.
void ShowMaximized()

ShowMinimized()

Activates the window and displays it as a minimized window.
void ShowMinimized()

ShowNormal()

Displays a window in its most recent size and position. The window is not activated.
void ShowNormal()