diff --git a/crates/tek_core/src/space.rs b/crates/tek_core/src/space.rs index f71d43a6..a2ba5371 100644 --- a/crates/tek_core/src/space.rs +++ b/crates/tek_core/src/space.rs @@ -695,13 +695,13 @@ pub enum Push { } impl Push { - fn inner (&self) -> &T { + pub fn inner (&self) -> &T { match self { Self::X(_, i) => i, Self::Y(_, i) => i, Self::XY(_, _, i) => i, } } - fn x (&self) -> N { + pub fn x (&self) -> N { match self { Self::X(x, _) => *x, Self::Y(_, _) => N::default(), Self::XY(x, _, _) => *x } } - fn y (&self) -> N { + pub fn y (&self) -> N { match self { Self::X(_, _) => N::default(), Self::Y(y, _) => *y, Self::XY(_, y, _) => *y } } } @@ -733,13 +733,13 @@ pub enum Pull { } impl Pull { - fn inner (&self) -> &T { + pub fn inner (&self) -> &T { match self { Self::X(_, i) => i, Self::Y(_, i) => i, Self::XY(_, _, i) => i, } } - fn x (&self) -> N { + pub fn x (&self) -> N { match self { Self::X(x, _) => *x, Self::Y(_, _) => N::default(), Self::XY(x, _, _) => *x } } - fn y (&self) -> N { + pub fn y (&self) -> N { match self { Self::X(_, _) => N::default(), Self::Y(y, _) => *y, Self::XY(_, y, _) => *y } } } diff --git a/crates/tek_core/src/tui.rs b/crates/tek_core/src/tui.rs index c8f888c5..f29dc0af 100644 --- a/crates/tek_core/src/tui.rs +++ b/crates/tek_core/src/tui.rs @@ -12,10 +12,10 @@ use crossterm::terminal::{ }; pub struct Tui { - exited: Arc, - buffer: Buffer, - backend: CrosstermBackend, - area: [u16;4], // FIXME auto resize + pub exited: Arc, + pub buffer: Buffer, + pub backend: CrosstermBackend, + pub area: [u16;4], // FIXME auto resize } impl Engine for Tui { type Unit = u16;