Skip to main content

RuntimeTuning

Struct RuntimeTuning 

Source
pub struct RuntimeTuning {
Show 69 fields pub viewport_center: Vec2, pub viewport_size: Vec2, pub focus_ring_rx: f32, pub focus_ring_ry: f32, pub focus_ring_offset_x: f32, pub focus_ring_offset_y: f32, pub primary_hot_inner_frac: f32, pub primary_to_node_ms: u64, pub node_show_labels: NodeDisplayPolicy, pub node_show_app_icons: NodeDisplayPolicy, pub node_shape: ShapeStyle, pub node_label_shape: ShapeStyle, pub node_icon_size: f32, pub node_background_color: NodeBackgroundColorMode, pub node_border_color_hover: NodeBorderColorMode, pub node_border_color_inactive: NodeBorderColorMode, pub decorations: DecorationsConfig, pub click_collapsed_outside_focus: ClickCollapsedOutsideFocusMode, pub click_collapsed_pan: ClickCollapsedPanMode, pub bearings: BearingsConfig, pub cluster_distance_px: f32, pub cluster_dwell_ms: u64, pub cluster_show_icons: bool, pub cluster_bloom_direction: ClusterBloomDirection, pub cluster_default_layout: ClusterDefaultLayout, pub tile_gaps_inner_px: f32, pub tile_gaps_outer_px: f32, pub tile_new_on_top: bool, pub tile_queue_show_icons: bool, pub tile_max_stack: usize, pub stacking_max_visible: usize, pub trail_history_length: usize, pub trail_wrap: bool, pub active_outside_ring_delay_ms: u64, pub inactive_outside_ring_delay_ms: u64, pub docked_offscreen_delay_ms: u64, pub non_overlap_gap_px: f32, pub field_active_windows_allowed: usize, pub pan_to_new: PanToNewMode, pub close_restore_focus: bool, pub close_restore_pan: CloseRestorePanMode, pub zoom_enabled: bool, pub zoom_step: f32, pub zoom_min: f32, pub zoom_max: f32, pub zoom_smooth: bool, pub zoom_smooth_rate: f32, pub non_overlap_active_gap_scale: f32, pub non_overlap_bump_newer: bool, pub non_overlap_bump_damping: f32, pub drag_smoothing_boost: f32, pub center_window_to_mouse: bool, pub restore_last_active_on_pan_return: bool, pub physics_enabled: bool, pub window_rules: Vec<WindowRule>, pub keybinds: Keybinds, pub compositor_bindings: Vec<CompositorBinding>, pub launch_bindings: Vec<LaunchBinding>, pub pointer_bindings: Vec<PointerBinding>, pub tty_viewports: Vec<ViewportOutputConfig>, pub autostart_once: Vec<String>, pub autostart_on_reload: Vec<String>, pub input: InputConfig, pub cursor: CursorConfig, pub font: FontConfig, pub animations: AnimationsConfig, pub overlay_style: OverlayStyleConfig, pub screenshot: ScreenshotConfig, pub env: HashMap<String, String>,
}

Fields§

§viewport_center: Vec2§viewport_size: Vec2§focus_ring_rx: f32§focus_ring_ry: f32§focus_ring_offset_x: f32§focus_ring_offset_y: f32§primary_hot_inner_frac: f32§primary_to_node_ms: u64§node_show_labels: NodeDisplayPolicy§node_show_app_icons: NodeDisplayPolicy§node_shape: ShapeStyle§node_label_shape: ShapeStyle§node_icon_size: f32§node_background_color: NodeBackgroundColorMode§node_border_color_hover: NodeBorderColorMode§node_border_color_inactive: NodeBorderColorMode§decorations: DecorationsConfig§click_collapsed_outside_focus: ClickCollapsedOutsideFocusMode§click_collapsed_pan: ClickCollapsedPanMode§bearings: BearingsConfig§cluster_distance_px: f32§cluster_dwell_ms: u64§cluster_show_icons: bool§cluster_bloom_direction: ClusterBloomDirection§cluster_default_layout: ClusterDefaultLayout§tile_gaps_inner_px: f32§tile_gaps_outer_px: f32§tile_new_on_top: bool§tile_queue_show_icons: bool§tile_max_stack: usize§stacking_max_visible: usize§trail_history_length: usize§trail_wrap: bool§active_outside_ring_delay_ms: u64§inactive_outside_ring_delay_ms: u64§docked_offscreen_delay_ms: u64§non_overlap_gap_px: f32§field_active_windows_allowed: usize§pan_to_new: PanToNewMode§close_restore_focus: bool§close_restore_pan: CloseRestorePanMode§zoom_enabled: bool§zoom_step: f32§zoom_min: f32§zoom_max: f32§zoom_smooth: bool§zoom_smooth_rate: f32§non_overlap_active_gap_scale: f32§non_overlap_bump_newer: bool§non_overlap_bump_damping: f32§drag_smoothing_boost: f32§center_window_to_mouse: bool§restore_last_active_on_pan_return: bool§physics_enabled: bool§window_rules: Vec<WindowRule>§keybinds: Keybinds§compositor_bindings: Vec<CompositorBinding>§launch_bindings: Vec<LaunchBinding>§pointer_bindings: Vec<PointerBinding>§tty_viewports: Vec<ViewportOutputConfig>§autostart_once: Vec<String>§autostart_on_reload: Vec<String>§input: InputConfig§cursor: CursorConfig§font: FontConfig§animations: AnimationsConfig§overlay_style: OverlayStyleConfig§screenshot: ScreenshotConfig§env: HashMap<String, String>

Implementations§

Source§

impl RuntimeTuning

Source

pub fn enforce_guards(&mut self)

Source§

impl RuntimeTuning

Source

pub fn default_home_config_path() -> String

Source

pub fn global_config_path() -> String

Source

pub fn internal_config_template() -> String

Source

pub fn builtin_defaults() -> Self

Source

pub fn render_fresh_config(tty_viewports: &[ViewportOutputConfig]) -> String

Source

pub fn window_primary_border_size_px(&self) -> i32

Source

pub fn window_border_radius_px(&self) -> i32

Source

pub fn window_secondary_border_enabled(&self) -> bool

Source

pub fn window_secondary_border_size_px(&self) -> i32

Source

pub fn window_secondary_border_gap_px(&self) -> i32

Source

pub fn total_window_border_footprint_px(&self) -> i32

Source

pub fn cluster_layout_kind(&self) -> ClusterWorkspaceLayoutKind

Source

pub fn active_cluster_visible_limit(&self) -> usize

Source

pub fn animations_enabled(&self) -> bool

Source

pub fn smooth_resize_enabled(&self) -> bool

Source

pub fn smooth_resize_duration_ms(&self) -> u64

Source

pub fn window_close_animation_enabled(&self) -> bool

Source

pub fn window_close_duration_ms(&self) -> u64

Source

pub fn window_close_style(&self) -> WindowCloseAnimationStyle

Source

pub fn window_open_animation_enabled(&self) -> bool

Source

pub fn window_open_duration_ms(&self) -> u64

Source

pub fn tile_animation_enabled(&self) -> bool

Source

pub fn tile_animation_duration_ms(&self) -> u64

Source

pub fn stack_animation_enabled(&self) -> bool

Source

pub fn stack_animation_duration_ms(&self) -> u64

Source

pub fn config_path() -> String

Source

pub fn load() -> Self

Source

pub fn load_from_path(path: &str) -> Self

Source

pub fn try_load_from_path(path: &str) -> Option<Self>

Source

pub fn apply_process_env(&self)

Source

pub fn viewport(&self) -> Viewport

Source

pub fn focus_ring(&self) -> FocusRing

Source

pub fn focus_ring_for_output(&self, output_name: &str) -> FocusRing

Source

pub fn focus_ring_decay_policy(&self) -> FocusRingDecayPolicy

Source

pub fn keybinds_resolved_summary(&self) -> String

Source

pub fn zoom_resolved_summary(&self) -> String

Source§

impl RuntimeTuning

Source

pub fn from_rune_file(path: &str) -> Option<Self>

Source

pub fn from_rune_str(raw: &str) -> Option<Self>

Trait Implementations§

Source§

impl Clone for RuntimeTuning

Source§

fn clone(&self) -> RuntimeTuning

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RuntimeTuning

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RuntimeTuning

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.