xtd 0.2.0
Loading...
Searching...
No Matches
xtd::forms::native::application Class Referencefinal
Inheritance diagram for xtd::forms::native::application:
xtd::static_object

Definition

Contains application native API.

Namespace
xtd::forms::native
Library
xtd.forms.native
Warning
Internal use only

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.
 

Member Function Documentation

◆ allow_quit()

static bool xtd::forms::native::application::allow_quit ( )
staticprotected

Gets a value indicating whether the caller can quit this application.

Returns
true if the caller can quit this application; otherwise, false.
Warning
Internal use only

◆ cleanup()

static void xtd::forms::native::application::cleanup ( )
staticprotected

Cleanup all data, handles, references, ... initialized by initialize() before quit.

Remarks
Some toolkits are nothing to clean. Leave this method empty.
Warning
Internal use only

◆ do_events()

static void xtd::forms::native::application::do_events ( )
staticprotected

Processes all Windows messages currently in the message queue.

Warning
Internal use only

◆ do_idle()

static void xtd::forms::native::application::do_idle ( )
staticprotected

Processes do idle event.

Warning
Internal use only

◆ dark_mode_enabled()

static bool xtd::forms::native::application::dark_mode_enabled ( )
staticprotected

Return true if dark mode is enabled for the application; otherwise return false.

Returns
true if dark mode is enabled; otherwise false.
Warning
Internal use only

◆ enable_button_images()

static void xtd::forms::native::application::enable_button_images ( bool  value)
staticprotected

Enables button images for the application.

Warning
Internal use only

◆ enable_dark_mode()

static void xtd::forms::native::application::enable_dark_mode ( bool  value)
staticprotected

Enables dark mode for the application.

Warning
Internal use only

◆ enable_font_size_correction()

static void xtd::forms::native::application::enable_font_size_correction ( bool  value)
staticprotected

Disable font size correction for the application.

Warning
Internal use only

◆ enable_light_mode()

static void xtd::forms::native::application::enable_light_mode ( bool  value)
staticprotected

Enables light mode for the application.

Warning
Internal use only

◆ enable_menu_images()

static void xtd::forms::native::application::enable_menu_images ( bool  value)
staticprotected

Enables menu images for the application.

Warning
Internal use only

◆ enable_system_font_size()

static void xtd::forms::native::application::enable_system_font_size ( bool  value)
staticprotected

Enables system font size for the application.

Warning
Internal use only

◆ enable_visual_style()

static void xtd::forms::native::application::enable_visual_style ( bool  value)
staticprotected

Enables visual styles for the application.

Warning
Internal use only

◆ exit()

static void xtd::forms::native::application::exit ( )
staticprotected

Exits application.

Warning
Internal use only

◆ initialize()

static void xtd::forms::native::application::initialize ( )
staticprotected

Initialize all data, handles, references, ... needed by toolkits.

Remarks
Some toolkits are nothing to init. Leave this method empty.
Warning
Internal use only

◆ register_message_filter()

static void xtd::forms::native::application::register_message_filter ( const delegate< bool(intptr, int32, intptr, intptr, intptr)> &  message_filter)
staticprotected

Register a specified message filter from the message pump of the application.

Parameters
message_filterA message filter delegate to register.
Warning
Internal use only

◆ register_thread_exception()

static void xtd::forms::native::application::register_thread_exception ( const delegate< bool()> &  thread_exception)
staticprotected

Register a specified thread_exception from the message pump of the application.

Parameters
thread_exceptionA thread exception delegate to register.
Remarks
The thread exception delegate return true if the user want quit application after exception.
Warning
Internal use only

◆ register_wnd_proc()

static void xtd::forms::native::application::register_wnd_proc ( const delegate< intptr(intptr, int32, intptr, intptr, intptr)> &  wnd_proc)
staticprotected

Register a specified wnd proc from the message pump of the application.

Parameters
wnd_procA wnd proc delegate to register.
Warning
Internal use only

◆ restart()

static void xtd::forms::native::application::restart ( bool  exit_after_restart)
staticprotected

Shuts down the application and starts a new instance immediately.

Parameters
exit_after_restartIf this option is enabled, the current application will be closed after the new application is created.
Warning
Internal use only

◆ run()

static void xtd::forms::native::application::run ( )
staticprotected

Begins running a standard application message loop on the current thread.

Warning
Internal use only

◆ use_wait_cursor()

static void xtd::forms::native::application::use_wait_cursor ( bool  use_wait_cursor)
staticprotected

Sets whether the wait cursor is used for all open forms of the application.

Parameters
use_wait_cursortrue is the wait cursor is used for all open forms; otherwise, false.
Warning
Internal use only

The documentation for this class was generated from the following file: