WindowBase<W extends WindowBase<W>> class
abstract
A base class for Window or Dialog.
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.