Trait Config

Source
pub trait Config {
Show 37 methods // Required methods fn create_list_of_tag_labels(&self) -> Vec<String>; fn workspaces(&self) -> Option<Vec<Workspace>>; fn focus_behaviour(&self) -> FocusBehaviour; fn focus_on_activation(&self) -> FocusOnActivationBehaviour; fn mousekey(&self) -> Vec<String>; fn create_list_of_scratchpads(&self) -> Vec<ScratchPad>; fn layouts(&self) -> Vec<String>; fn layout_definitions(&self) -> Vec<Layout>; fn layout_mode(&self) -> LayoutMode; fn insert_behavior(&self) -> InsertBehavior; fn single_window_border(&self) -> bool; fn focus_new_windows(&self) -> bool; fn command_handler<H: Handle, SERVER>( command: &str, manager: &mut Manager<H, Self, SERVER>, ) -> bool where SERVER: DisplayServer<H>, Self: Sized; fn always_float(&self) -> bool; fn default_width(&self) -> i32; fn default_height(&self) -> i32; fn border_width(&self) -> i32; fn margin(&self) -> Margins; fn workspace_margin(&self) -> Option<Margins>; fn gutter(&self) -> Option<Vec<Gutter>>; fn default_border_color(&self) -> String; fn floating_border_color(&self) -> String; fn focused_border_color(&self) -> String; fn background_color(&self) -> String; fn on_new_window_cmd(&self) -> Option<String>; fn get_list_of_gutters(&self) -> Vec<Gutter>; fn auto_derive_workspaces(&self) -> bool; fn disable_tile_drag(&self) -> bool; fn disable_window_snap(&self) -> bool; fn sloppy_mouse_follows_focus(&self) -> bool; fn create_follows_cursor(&self) -> bool; fn reposition_cursor_on_resize(&self) -> bool; fn window_hiding_strategy(&self) -> WindowHidingStrategy; fn save_state<H: Handle>(&self, state: &State<H>); fn load_state<H: Handle>(&self, state: &mut State<H>); fn setup_predefined_window<H: Handle>( &self, state: &mut State<H>, window: &mut Window<H>, ) -> bool; // Provided method fn load_window<H: Handle>(&self, window: &mut Window<H>) { ... }
}

Required Methods§

Source

fn create_list_of_tag_labels(&self) -> Vec<String>

Source

fn workspaces(&self) -> Option<Vec<Workspace>>

Source

fn focus_behaviour(&self) -> FocusBehaviour

Source

fn focus_on_activation(&self) -> FocusOnActivationBehaviour

Source

fn mousekey(&self) -> Vec<String>

Source

fn create_list_of_scratchpads(&self) -> Vec<ScratchPad>

Source

fn layouts(&self) -> Vec<String>

Source

fn layout_definitions(&self) -> Vec<Layout>

Source

fn layout_mode(&self) -> LayoutMode

Source

fn insert_behavior(&self) -> InsertBehavior

Source

fn single_window_border(&self) -> bool

Source

fn focus_new_windows(&self) -> bool

Source

fn command_handler<H: Handle, SERVER>( command: &str, manager: &mut Manager<H, Self, SERVER>, ) -> bool
where SERVER: DisplayServer<H>, Self: Sized,

Source

fn always_float(&self) -> bool

Source

fn default_width(&self) -> i32

Source

fn default_height(&self) -> i32

Source

fn border_width(&self) -> i32

Source

fn margin(&self) -> Margins

Source

fn workspace_margin(&self) -> Option<Margins>

Source

fn gutter(&self) -> Option<Vec<Gutter>>

Source

fn default_border_color(&self) -> String

Source

fn floating_border_color(&self) -> String

Source

fn focused_border_color(&self) -> String

Source

fn background_color(&self) -> String

Source

fn on_new_window_cmd(&self) -> Option<String>

Source

fn get_list_of_gutters(&self) -> Vec<Gutter>

Source

fn auto_derive_workspaces(&self) -> bool

Source

fn disable_tile_drag(&self) -> bool

Source

fn disable_window_snap(&self) -> bool

Source

fn sloppy_mouse_follows_focus(&self) -> bool

Source

fn create_follows_cursor(&self) -> bool

Source

fn reposition_cursor_on_resize(&self) -> bool

Source

fn window_hiding_strategy(&self) -> WindowHidingStrategy

Source

fn save_state<H: Handle>(&self, state: &State<H>)

Attempt to write current state to a file.

It will be used to restore the state after soft reload.

Note: this function cannot fail.

Source

fn load_state<H: Handle>(&self, state: &mut State<H>)

Load saved state if it exists.

Source

fn setup_predefined_window<H: Handle>( &self, state: &mut State<H>, window: &mut Window<H>, ) -> bool

Handle window placement based on WM_CLASS

Provided Methods§

Source

fn load_window<H: Handle>(&self, window: &mut Window<H>)

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§