mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-25 16:38:42 -06:00
rearrange stuff
This commit is contained in:
parent
0b5df70e2b
commit
f6ff5e7269
|
@ -86,17 +86,15 @@ pub enum Size {
|
||||||
#[default]
|
#[default]
|
||||||
Auto,
|
Auto,
|
||||||
|
|
||||||
/// Size as a ratio of parent size\
|
|
||||||
/// Valid range: 0.0-1.0 (0-100%)
|
|
||||||
///
|
|
||||||
/// Out of range values are allowed, but are not guaranteed to work as expected\
|
|
||||||
/// (especially with negative values)
|
|
||||||
Relative(f32),
|
|
||||||
|
|
||||||
//TODO FractionRemaining(f32),
|
|
||||||
|
|
||||||
/// Static size in pixels
|
/// Static size in pixels
|
||||||
Absolute(f32),
|
Absolute(f32),
|
||||||
|
|
||||||
|
/// Size as a ratio of parent element size
|
||||||
|
///
|
||||||
|
/// Expected range: `0.0..=1.0`
|
||||||
|
Relative(f32),
|
||||||
|
|
||||||
|
//TODO Remaining(f32)
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<f32> for Size {
|
impl From<f32> for Size {
|
||||||
|
|
Loading…
Reference in a new issue