pub struct SizeNeed {
pub min: [f32; 2],
pub preferred: Option<[f32; 2]>,
pub max: Option<[f32; 2]>,
pub fills: bool,
pub aspect: Option<f32>,
}Expand description
The size a component needs, in points.
Fields§
§min: [f32; 2]The smallest width and height it can be drawn in.
preferred: Option<[f32; 2]>§max: Option<[f32; 2]>§fills: boolIt takes all the space it is given.
aspect: Option<f32>Width over height, when it keeps one.
Trait Implementations§
impl Copy for SizeNeed
impl StructuralPartialEq for SizeNeed
Auto Trait Implementations§
impl Freeze for SizeNeed
impl RefUnwindSafe for SizeNeed
impl Send for SizeNeed
impl Sync for SizeNeed
impl Unpin for SizeNeed
impl UnsafeUnpin for SizeNeed
impl UnwindSafe for SizeNeed
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more