WorkspaceExt

Trait WorkspaceExt 

Source
pub trait WorkspaceExt: IsA<Workspace> + 'static {
    // Provided methods
    fn action_set_enabled(&self, action_name: &str, enabled: bool) { ... }
    fn id(&self) -> GString { ... }
    fn workbench(&self) -> Option<Workbench> { ... }
    fn inhibit(
        &self,
        flags: ApplicationInhibitFlags,
        reason: &str,
    ) -> Option<Inhibitor> { ... }
    fn set_id(&self, id: &str) { ... }
    fn connect_id_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn action_set_enabled(&self, action_name: &str, enabled: bool)

Source

fn id(&self) -> GString

Source

fn workbench(&self) -> Option<Workbench>

Source

fn inhibit( &self, flags: ApplicationInhibitFlags, reason: &str, ) -> Option<Inhibitor>

Source

fn set_id(&self, id: &str)

Source

fn connect_id_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§