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