Trait libpanel::prelude::WorkbenchExt

source ·
pub trait WorkbenchExt: IsA<Workbench> + Sealed + '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 { ... }
}
Expand description

Trait containing all Workbench methods.

§Implementors

Workbench

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>

Locates a workspace in self with a type matching type_.

§Returns

a Workspace or None

source

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

source

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

Calls foreach_func for each workspace in the workbench.

§foreach_func

a function to call for each workspace

§foreach_func_data

the data for the foreach_func

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

Object Safety§

This trait is not object safe.

Implementors§