config: add documentation
This commit is contained in:
parent
6916f03e94
commit
fe80440f38
36 changed files with 620 additions and 199 deletions
22
src/tree.rs
22
src/tree.rs
|
|
@ -12,7 +12,7 @@ use {
|
|||
utils::numcell::NumCell,
|
||||
xkbcommon::ModifierState,
|
||||
},
|
||||
jay_config::Direction,
|
||||
jay_config::Direction as JayDirection,
|
||||
std::{
|
||||
fmt::{Debug, Display},
|
||||
rc::Rc,
|
||||
|
|
@ -34,6 +34,26 @@ mod toplevel;
|
|||
mod walker;
|
||||
mod workspace;
|
||||
|
||||
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
||||
pub enum Direction {
|
||||
Unspecified,
|
||||
Left,
|
||||
Down,
|
||||
Up,
|
||||
Right,
|
||||
}
|
||||
|
||||
impl From<JayDirection> for Direction {
|
||||
fn from(d: JayDirection) -> Self {
|
||||
match d {
|
||||
JayDirection::Left => Self::Left,
|
||||
JayDirection::Down => Self::Down,
|
||||
JayDirection::Up => Self::Up,
|
||||
JayDirection::Right => Self::Right,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub struct NodeIds {
|
||||
next: NumCell<u32>,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue