diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2024-01-02 01:13:02 -0500 |
---|---|---|
committer | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2024-01-02 01:13:02 -0500 |
commit | c730048c7a0a5ab2eb657fee2649d7b22e73652d (patch) | |
tree | e75b7e0e03f64e797bcc5a85195a2ffe8728cdb7 /src/tuine/element.rs | |
parent | dbadbb996cb8d55d842b9632126c031f39596453 (diff) |
temp worktuine_yet_again
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 {} |