Struct fui_system::Application
source · pub struct Application { /* private fields */ }
Expand description
The application. Manages application control flow.
Implementations§
source§impl Application
impl Application
sourcepub fn new(options: ApplicationOptions) -> Result<Self, FUISystemError>
pub fn new(options: ApplicationOptions) -> Result<Self, FUISystemError>
Creates the application object and sets the application display name.
sourcepub fn get_dispatcher(&self) -> Dispatcher
pub fn get_dispatcher(&self) -> Dispatcher
Gets Dispatcher that allows to communicate with a message loop from the same thread.
sourcepub fn message_loop(&self) -> i32
pub fn message_loop(&self) -> i32
Enters the main event loop and waits until exit() is called, then returns the value that was set to exit().