Trait browser_window_core::application::ApplicationExt [−][src]
pub trait ApplicationExt: Copy {
fn assert_correct_thread(&self);
fn dispatch(
&self,
work: unsafe fn(_: ApplicationImpl, _: *mut ()),
data: *mut ()
) -> bool;
fn exit(&self, exit_code: i32);
fn exit_threadsafe(&self, exit_code: i32);
fn initialize(
argc: c_int,
argv: *mut *mut c_char,
settings: &ApplicationSettings
) -> ApplicationImpl;
fn run(
&self,
on_ready: unsafe fn(_: ApplicationImpl, _: *mut ()),
data: *mut ()
) -> i32;
fn finish(&self) { ... }
}
Required methods
fn assert_correct_thread(&self)
fn assert_correct_thread(&self)
Asserts if not on the GUI thread
Dispatches work to be executed on the GUI thread.
fn exit_threadsafe(&self, exit_code: i32)
fn exit_threadsafe(&self, exit_code: i32)
Same as exit
, but is thread-safe.