static-text: add new utility
This commit is contained in:
parent
8f57f72d14
commit
97f7b68369
10 changed files with 150 additions and 15 deletions
11
src/tree.rs
11
src/tree.rs
|
|
@ -25,7 +25,7 @@ use {
|
|||
keyboard::KeyboardState,
|
||||
rect::Rect,
|
||||
renderer::Renderer,
|
||||
utils::{linkedlist::NodeRef, numcell::NumCell},
|
||||
utils::{linkedlist::NodeRef, numcell::NumCell, static_text::StaticText},
|
||||
},
|
||||
jay_config::{
|
||||
Direction as JayDirection, video::Transform as ConfigTransform,
|
||||
|
|
@ -79,6 +79,15 @@ impl Into<ConfigWorkspaceDisplayOrder> for WorkspaceDisplayOrder {
|
|||
}
|
||||
}
|
||||
|
||||
impl StaticText for WorkspaceDisplayOrder {
|
||||
fn text(&self) -> &'static str {
|
||||
match self {
|
||||
WorkspaceDisplayOrder::Manual => "Manual",
|
||||
WorkspaceDisplayOrder::Sorted => "Sorted",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, Hash, Eq, PartialEq, Default, Linearize)]
|
||||
pub enum Transform {
|
||||
#[default]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue