Struct glib::MainContext
[−]
[src]
pub struct MainContext(_);
Methods
impl MainContext
[src]
fn new() -> MainContext
fn acquire(&self) -> bool
fn dispatch(&self)
fn is_owner(&self) -> bool
fn iteration(&self, may_block: bool) -> bool
fn pending(&self) -> bool
fn pop_thread_default(&self)
fn push_thread_default(&self)
fn release(&self)
fn wakeup(&self)
fn default() -> Option<MainContext>
fn get_thread_default() -> Option<MainContext>
fn ref_thread_default() -> Option<MainContext>
impl MainContext
[src]
fn prepare(&self) -> (bool, i32)
fn find_source_by_id(&self, source_id: SourceId) -> Option<Source>
fn invoke<F>(&self, func: F) where
F: FnMut() + Send + 'static,
F: FnMut() + Send + 'static,
fn invoke_with_priority<F>(&self, priority: Priority, func: F) where
F: FnMut() + Send + 'static,
F: FnMut() + Send + 'static,
Trait Implementations
impl Clone for MainContext
[src]
fn clone(&self) -> MainContext
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more