[−][src]Trait browser_window_core::application::ApplicationExt
Required methods
pub fn assert_correct_thread(&self)
[src]
Asserts if not on the GUI thread
pub fn dispatch(
&self,
work: unsafe fn(_: ApplicationImpl, _: *mut ()),
data: *mut ()
) -> bool
[src]
&self,
work: unsafe fn(_: ApplicationImpl, _: *mut ()),
data: *mut ()
) -> bool
Dispatches work to be executed on the GUI thread.
pub fn exit(&self, exit_code: i32)
[src]
Causes the main loop to exit and lets it return the given code.
pub fn exit_threadsafe(&self, exit_code: i32)
[src]
Same as exit
, but is thread-safe.
pub fn initialize(
argc: c_int,
argv: *mut *mut c_char,
settings: &ApplicationSettings
) -> ApplicationImpl
[src]
argc: c_int,
argv: *mut *mut c_char,
settings: &ApplicationSettings
) -> ApplicationImpl
pub fn run(
&self,
on_ready: unsafe fn(_: ApplicationImpl, _: *mut ()),
data: *mut ()
) -> i32
[src]
&self,
on_ready: unsafe fn(_: ApplicationImpl, _: *mut ()),
data: *mut ()
) -> i32
Runs the main loop. This blocks until the application is exitting.
Provided methods
Loading content...Implementors
impl ApplicationExt for ApplicationImpl
[src]
pub fn assert_correct_thread(&self)
[src]
pub fn dispatch(
&self,
work: unsafe fn(_: ApplicationImpl, _: *mut ()),
_data: *mut ()
) -> bool
[src]
&self,
work: unsafe fn(_: ApplicationImpl, _: *mut ()),
_data: *mut ()
) -> bool
pub fn exit(&self, exit_code: i32)
[src]
pub fn exit_threadsafe(&self, exit_code: i32)
[src]
pub fn finish(&self)
[src]
pub fn initialize(
argc: c_int,
argv: *mut *mut c_char,
_settings: &ApplicationSettings
) -> Self
[src]
argc: c_int,
argv: *mut *mut c_char,
_settings: &ApplicationSettings
) -> Self
pub fn run(
&self,
on_ready: unsafe fn(_: ApplicationImpl, _: *mut ()),
_data: *mut ()
) -> i32
[src]
&self,
on_ready: unsafe fn(_: ApplicationImpl, _: *mut ()),
_data: *mut ()
) -> i32