pub struct Overflow {
pub width: Option<f32>,
pub height: Option<f32>,
pub unconstrained: bool,
pub natural_height: 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.
natural_height: boolLay the child out at the box’s width and the height it asks for (milestone
595): a paragraph kept at the width it is shown at and allowed to run below the
box. Overrides height.
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