diff options
Diffstat (limited to 'src/tuine/element.rs')
-rw-r--r-- | src/tuine/element.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tuine/element.rs b/src/tuine/element.rs new file mode 100644 index 00000000..14172e22 --- /dev/null +++ b/src/tuine/element.rs @@ -0,0 +1,16 @@ +use super::Container; + +/// A widget within bottom. +/// +/// We use an enum to represent them to avoid dynamic dispatch. +pub enum BottomWidget {} + +impl BottomWidget {} + +/// An [`Element`] represents a node in the overall layout tree. +pub enum Element { + BottomWidget(BottomWidget), + Container(Container), +} + +impl Element {} |