1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
use super::Id;
#[derive(Default, Debug, Copy, Clone, PartialEq, Hash)]
pub struct Parent(pub Id);
#[derive(Default, Debug, Copy, Clone)]
pub struct Visibility(pub bool);
#[derive(Default, Debug, Copy, Clone)]
pub struct Position(pub f32, pub f32);
#[derive(Default, Debug, Copy, Clone)]
pub struct Size(pub f32, pub f32);
/// Immutable layout constraints.
/// Similar as Flutter implementation
///
#[derive(Default, Debug, Copy, Clone)]
pub struct BoxConstraints {
pub min: Option<Size>,
pub max: Option<Size>,
}