1
0
Fork 0
forked from wry/wry

config: add documentation

This commit is contained in:
Julian Orth 2022-05-16 18:21:56 +02:00
parent 6916f03e94
commit fe80440f38
36 changed files with 620 additions and 199 deletions

View file

@ -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>,
}