mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-22 06:48:43 -06:00
add traits
This commit is contained in:
parent
63f862c2be
commit
447a848009
|
@ -7,6 +7,7 @@ use crate::{
|
||||||
};
|
};
|
||||||
use super::UiElement;
|
use super::UiElement;
|
||||||
|
|
||||||
|
#[derive(Debug, Clone, Copy)]
|
||||||
pub struct ProgressBar {
|
pub struct ProgressBar {
|
||||||
pub size: (UiSize, UiSize),
|
pub size: (UiSize, UiSize),
|
||||||
pub value: f32,
|
pub value: f32,
|
||||||
|
|
|
@ -72,7 +72,7 @@ impl Default for KubiUi {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default)]
|
#[derive(Default, Debug, Clone, Copy)]
|
||||||
pub enum UiSize {
|
pub enum UiSize {
|
||||||
#[default]
|
#[default]
|
||||||
Auto,
|
Auto,
|
||||||
|
|
Loading…
Reference in a new issue