mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-22 15:18:43 -06:00
change stuff
This commit is contained in:
parent
25f947ba31
commit
b6cd7567d7
|
@ -10,6 +10,7 @@ use crate::{
|
||||||
};
|
};
|
||||||
|
|
||||||
#[derive(Setters)]
|
#[derive(Setters)]
|
||||||
|
#[setters(prefix = "with_")]
|
||||||
pub struct Image {
|
pub struct Image {
|
||||||
/// Image handle to draw
|
/// Image handle to draw
|
||||||
#[setters(skip)]
|
#[setters(skip)]
|
||||||
|
|
|
@ -82,15 +82,19 @@ impl From<Alignment> for Alignment2d {
|
||||||
/// (Meaning of `auto` is entirely dependent on the element).
|
/// (Meaning of `auto` is entirely dependent on the element).
|
||||||
#[derive(Default, Debug, Clone, Copy, PartialEq)]
|
#[derive(Default, Debug, Clone, Copy, PartialEq)]
|
||||||
pub enum Size {
|
pub enum Size {
|
||||||
#[default]
|
|
||||||
/// Automatically calculate size based on content
|
/// Automatically calculate size based on content
|
||||||
|
#[default]
|
||||||
Auto,
|
Auto,
|
||||||
|
|
||||||
/// Size as a ratio of parent size\
|
/// Size as a ratio of parent size\
|
||||||
/// Valid range: 0.0-1.0 (0-100%)
|
/// Valid range: 0.0-1.0 (0-100%)
|
||||||
///
|
///
|
||||||
/// Out of range values are allowed, but are not guaranteed to work as expected\
|
/// Out of range values are allowed, but are not guaranteed to work as expected\
|
||||||
/// (especially with negative values)
|
/// (especially with negative values)
|
||||||
Fraction(f32),
|
Fraction(f32),
|
||||||
|
|
||||||
|
//TODO FractionRemaining(f32),
|
||||||
|
|
||||||
/// Static size in pixels
|
/// Static size in pixels
|
||||||
Static(f32),
|
Static(f32),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue