WorkbenchExt

Trait WorkbenchExt 

Source
pub trait WorkbenchExt: IsA<Workbench> + 'static {
    // Provided methods
    fn action_set_enabled(&self, action_name: &str, enabled: bool) { ... }
    fn activate(&self) { ... }
    fn add_workspace(&self, workspace: &impl IsA<Workspace>) { ... }
    fn find_workspace_typed(&self, workspace_type: Type) -> Option<Workspace> { ... }
    fn focus_workspace(&self, workspace: &impl IsA<Workspace>) { ... }
    fn foreach_workspace<P: FnMut(&Workspace)>(&self, foreach_func: P) { ... }
    fn id(&self) -> GString { ... }
    fn remove_workspace(&self, workspace: &impl IsA<Workspace>) { ... }
    fn set_id(&self, id: &str) { ... }
    fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... }
    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 activate(&self)

Source

fn add_workspace(&self, workspace: &impl IsA<Workspace>)

Source

fn find_workspace_typed(&self, workspace_type: Type) -> Option<Workspace>

Source

fn focus_workspace(&self, workspace: &impl IsA<Workspace>)

Source

fn foreach_workspace<P: FnMut(&Workspace)>(&self, foreach_func: P)

Source

fn id(&self) -> GString

Source

fn remove_workspace(&self, workspace: &impl IsA<Workspace>)

Source

fn set_id(&self, id: &str)

Source

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

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§