diff options
author | Silas Bartha <[email protected]> | 2024-05-16 20:28:58 -0400 |
---|---|---|
committer | Silas Bartha <[email protected]> | 2024-05-16 20:28:58 -0400 |
commit | 56aafda8495243fa939bdce01f36d4adbf4ec556 (patch) | |
tree | df8b1bbe1dc0e8b3f2d179a36c015b16e1f3d483 /src/components.rs | |
parent | 363157a7f831fc29c6ed1a26880ea756521317b9 (diff) |
Added configurable logfile path
Diffstat (limited to 'src/components.rs')
-rw-r--r-- | src/components.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/components.rs b/src/components.rs index 3ebf507..3814cc7 100644 --- a/src/components.rs +++ b/src/components.rs @@ -11,6 +11,8 @@ use grex_framebuffer_extract::{ render_assets::FramebufferExtractSource, }; +use crate::resources::TerminalWidget; + #[derive(Component)] pub struct TerminalDisplay; @@ -72,3 +74,12 @@ impl TerminalDisplayBundle { } } +#[derive(Component)] +pub struct Widget { + pub widget: Box<dyn TerminalWidget + Send + Sync>, + pub depth: u32, + pub enabled: bool, +} + +#[derive(Component)] +pub struct Tooltip(pub String); |