Contains application native API.
Protected Static Methods | |
static bool | allow_quit () |
Gets a value indicating whether the caller can quit this application. | |
static void | cleanup () |
Cleanup all data, handles, references, ... initialized by initialize() before quit. | |
static void | do_events () |
Processes all Windows messages currently in the message queue. | |
static void | do_idle () |
Processes do idle event. | |
static bool | dark_mode_enabled () |
Return true if dark mode is enabled for the application; otherwise return false. | |
static void | enable_button_images (bool value) |
Enables button images for the application. | |
static void | enable_dark_mode (bool value) |
Enables dark mode for the application. | |
static void | enable_font_size_correction (bool value) |
Disable font size correction for the application. | |
static void | enable_light_mode (bool value) |
Enables light mode for the application. | |
static void | enable_menu_images (bool value) |
Enables menu images for the application. | |
static void | enable_system_font_size (bool value) |
Enables system font size for the application. | |
static void | enable_visual_style (bool value) |
Enables visual styles for the application. | |
static void | exit () |
Exits application. | |
static void | initialize () |
Initialize all data, handles, references, ... needed by toolkits. | |
static void | register_message_filter (const delegate< bool(intptr, int32, intptr, intptr, intptr)> &message_filter) |
Register a specified message filter from the message pump of the application. | |
static void | register_thread_exception (const delegate< bool()> &thread_exception) |
Register a specified thread_exception from the message pump of the application. | |
static void | register_wnd_proc (const delegate< intptr(intptr, int32, intptr, intptr, intptr)> &wnd_proc) |
Register a specified wnd proc from the message pump of the application. | |
static void | restart (bool exit_after_restart) |
Shuts down the application and starts a new instance immediately. | |
static void | run () |
Begins running a standard application message loop on the current thread. | |
static void | use_wait_cursor (bool use_wait_cursor) |
Sets whether the wait cursor is used for all open forms of the application. | |
|
staticprotected |
Gets a value indicating whether the caller can quit this application.
|
staticprotected |
Cleanup all data, handles, references, ... initialized by initialize() before quit.
|
staticprotected |
Processes all Windows messages currently in the message queue.
|
staticprotected |
Processes do idle event.
|
staticprotected |
Return true if dark mode is enabled for the application; otherwise return false.
|
staticprotected |
Enables button images for the application.
|
staticprotected |
Enables dark mode for the application.
|
staticprotected |
Disable font size correction for the application.
|
staticprotected |
Enables light mode for the application.
|
staticprotected |
Enables menu images for the application.
|
staticprotected |
Enables system font size for the application.
|
staticprotected |
Enables visual styles for the application.
|
staticprotected |
Exits application.
|
staticprotected |
Initialize all data, handles, references, ... needed by toolkits.
|
staticprotected |
Register a specified message filter from the message pump of the application.
message_filter | A message filter delegate to register. |
|
staticprotected |
Register a specified thread_exception from the message pump of the application.
thread_exception | A thread exception delegate to register. |
|
staticprotected |
Register a specified wnd proc from the message pump of the application.
wnd_proc | A wnd proc delegate to register. |
|
staticprotected |
Shuts down the application and starts a new instance immediately.
exit_after_restart | If this option is enabled, the current application will be closed after the new application is created. |
|
staticprotected |
Begins running a standard application message loop on the current thread.
|
staticprotected |
Sets whether the wait cursor is used for all open forms of the application.
use_wait_cursor | true is the wait cursor is used for all open forms; otherwise, false. |