diff --git a/src/tuine/component/base/mod.rs b/src/tuine/component/base/mod.rs index 16658b3e..4ab737b7 100644 --- a/src/tuine/component/base/mod.rs +++ b/src/tuine/component/base/mod.rs @@ -20,4 +20,10 @@ pub mod empty; pub use empty::Empty; pub mod padding; -pub use padding::*; \ No newline at end of file +pub use padding::*; + +pub mod time_graph; +pub use time_graph::TimeGraph; + +pub mod selectable_block; +pub use selectable_block::SelectableBlock; diff --git a/src/tuine/component/base/selectable_block.rs b/src/tuine/component/base/selectable_block.rs new file mode 100644 index 00000000..52ec5364 --- /dev/null +++ b/src/tuine/component/base/selectable_block.rs @@ -0,0 +1,4 @@ +/// A [`SelectableBlock`] is an extension around a [`Block`], that adds selection +/// indication logic and binds [`Event::Keyboard`] events to **always** be captured by +/// the children of the [`SelectableBlock`]. +pub struct SelectableBlock {} diff --git a/src/tuine/component/base/time_graph.rs b/src/tuine/component/base/time_graph.rs new file mode 100644 index 00000000..cf8f29e2 --- /dev/null +++ b/src/tuine/component/base/time_graph.rs @@ -0,0 +1,4 @@ +/// A [`TimeGraph`] is a component that indicates data in a graph form with the time being +/// the x-axis. It displays the most recent data at the right, with the recent data +/// being at the left. +pub struct TimeGraph {}