[][src]Trait browser_window_core::application::ApplicationExt

pub trait ApplicationExt: Copy {
    pub fn assert_correct_thread(&self);
pub fn dispatch(
        &self,
        work: unsafe fn(_: ApplicationImpl, _: *mut ()),
        data: *mut ()
    ) -> bool;
pub fn exit(&self, exit_code: i32);
pub fn exit_threadsafe(&self, exit_code: i32);
pub fn initialize(
        argc: c_int,
        argv: *mut *mut c_char,
        settings: &ApplicationSettings
    ) -> ApplicationImpl;
pub fn run(
        &self,
        on_ready: unsafe fn(_: ApplicationImpl, _: *mut ()),
        data: *mut ()
    ) -> i32; pub fn finish(&self) { ... } }

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]

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]

pub fn run(
    &self,
    on_ready: unsafe fn(_: ApplicationImpl, _: *mut ()),
    data: *mut ()
) -> i32
[src]

Runs the main loop. This blocks until the application is exitting.

Loading content...

Provided methods

pub fn finish(&self)[src]

Shuts down all application processes and performs necessary clean-up code.

Loading content...

Implementors

impl ApplicationExt for ApplicationImpl[src]

Loading content...