pub struct Overflow {
pub width: Option<f32>,
pub height: Option<f32>,
pub unconstrained: bool,
pub alignment: Alignment,
}Expand description
The constraints an OverflowBox hands its child, and where the result sits.
Fields§
§width: Option<f32>Width given to the child; None = the box’s own width.
height: Option<f32>Height given to the child; None = the box’s own height.
unconstrained: boolLay the child out unconstrained, at the size it asks for. Overrides the two above.
alignment: AlignmentWhere the child sits inside the box, and therefore which way it spills.
Trait Implementations§
impl Copy for Overflow
impl StructuralPartialEq for Overflow
Auto Trait Implementations§
impl Freeze for Overflow
impl RefUnwindSafe for Overflow
impl Send for Overflow
impl Sync for Overflow
impl Unpin for Overflow
impl UnsafeUnpin for Overflow
impl UnwindSafe for Overflow
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