WindowBase<W extends WindowBase<W>> class abstract

A base class for Window or Dialog.

Implementers

Constructors

WindowBase({int? x, int? y, int? width, int? height})

Properties

created bool
Returns true if this Window was created.
no setter
createId int
The create ID.
no setter
dimension Pointer<RECT>
This Window dimension (with the last fetch value).
final
dimensionHeight int
This dimension height.
no setter
dimensionWidth int
This dimension width.
no setter
hashCode int
The hash code for this object.
no setterinherited
height int?
The height of this Window when created.
getter/setter pair
hwnd int
The window handler ID (if created).
no setter
hwndIfCreated int?
Returns the window handler ID if created or null.
no setter
isDestroyed bool
Returns true if the window was destroyed and the WM_NCDESTROY was processed.
no setter
isMaximized bool
Returns if this Window is maximized.
no setter
isMinimized bool
Returns if this Window is minimized.
no setter
onClose Stream<W>
On close event (after WM_CLOSE message).
no setter
onDestroyed Stream<W>
On destroy event (after WM_DESTROY -> WM_NCDESTROY messages).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int?
The width of this Window when created.
getter/setter pair
x int?
The x coordinate of this Window when created.
getter/setter pair
y int?
The y coordinate of this Window when created.
getter/setter pair

Methods

build(int hwnd, int hdc) → void
Window build procedure.
callBuild({int? hdc}) bool
Calls build resolving necessary parameters.
close() bool?
Closes this Window.
create() Future<int>
Creates the Window or Dialog.
destroy() bool
Destroys this Window.
doDestroy() → void
Perform final destroy operations for this instance.
drawImage(int hdc, int hBitmap, int x, int y, int width, int height) → void
Paint operation: draws hBitmap at coordinates x, y.
drawText(int hdc, String text, int x, int y) → void
Paint operation: draws text at coordinates x, y.
ensureLoaded() Future<void>
Ensures that load was called.
fetchDimension() → void
Fetches this Window dimension.
fillRect(int hdc, int color, {Rectangle<num>? rect, Pointer<RECT>? pRect}) → void
Paint operation: fills a rectangle with color.
getWindowLongPtr(int nIndex) int
getWindowText({int? length}) String
Returns this Window text.
getWindowTextLength() int
Returns this Window text length.
invalidateRect({Rectangle<num>? rect, Pointer<RECT>? pRect, bool eraseBg = true}) bool
Invalidates Window region.
load() Future<void>
Loads asynchronous resources.
maximize() bool
Maximized this Window.
minimize() bool
Minimizes this Window.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyClose() → void
Should be called while processing a WM_CLOSE message.
notifyDestroyed() → void
Should be called while processing a WM_NCDESTROY message.
processClose() bool?
Processes a WM_CLOSE message or a close call.
processCommand(int hwnd, int hdc, int wParam, int lParam) → void
Processes a WM_COMMAND message.
processDestroy() → void
Processes a WM_DESTROY message.
processMessage(int hwnd, int uMsg, int wParam, int lParam) int?
Processes a message.
redrawWindow({Rectangle<num>? rect, Pointer<RECT>? pRect, int? flags}) bool
Redraws this Window.
requestRepaint() bool
Request a WM_PAINT event of the entire Window client area.
restore() bool
Restores this Window.
sendMessage(int message, int wParam, int lParam) int
Sends a message to this Window.
setIcon(String iconPath, {bool small = true, bool big = true, bool cached = true, bool force = false}) → void
Sets this Window icon from iconPath.
setupDarkMode() → void
Setup a dark mode.
setupTitleColor(int? titleColor) → void
Setup the title color.
setWindowRoundedCorners({bool rounded = true, bool small = false}) → void
Sets this Window rounded corners attributes.
setWindowText(String text) bool
Sets this Window text.
show() → void
Shows this Window.
showConfirmationDialog(String title, String text, {int flags = MESSAGEBOX_STYLE.MB_ICONQUESTION, bool okCancel = false, bool yesNo = true, bool cancel = false, bool modal = false}) bool
Shows a confirmation dialog.
showDialog(String title, String text, {int flags = 0, bool modal = false}) int
Shows a dialog.
showMessage(String title, String text, {int flags = 0, bool iconWarning = false, bool iconInformation = true, bool modal = false}) int
Shows a message dialog.
toString() String
A string representation of this object.
inherited
updateWindow() bool
Updates this Window.
waitDestroyed({Duration? timeout}) Future<bool>
Waits for this window to be destroyed.

Operators

operator ==(Object other) bool
The equality operator.
inherited