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 { ... }
}
Provided Methods§
fn action_set_enabled(&self, action_name: &str, enabled: bool)
fn activate(&self)
fn add_workspace(&self, workspace: &impl IsA<Workspace>)
sourcefn find_workspace_typed(&self, workspace_type: Type) -> Option<Workspace>
fn find_workspace_typed(&self, workspace_type: Type) -> Option<Workspace>
fn focus_workspace(&self, workspace: &impl IsA<Workspace>)
sourcefn foreach_workspace<P: FnMut(&Workspace)>(&self, foreach_func: P)
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
Object Safety§
This trait is not object safe.