pub struct LayoutedRectangle {
pub size: LayoutSize,
pub position: PositionInfo,
pub padding: ResolvedOffsets,
pub margin: ResolvedOffsets,
pub border_widths: ResolvedOffsets,
pub overflow: Overflow,
}Expand description
Same as PositionedRectangle, but without the text_layout_options,
so that the struct implements Copy.
Fields§
§size: LayoutSizeOuter bounds of the rectangle
position: PositionInfoHow the rectangle should be positioned
padding: ResolvedOffsetsPadding of the rectangle
margin: ResolvedOffsetsMargin of the rectangle
border_widths: ResolvedOffsetsBorder widths of the rectangle
overflow: OverflowDetermines if the rect should be clipped or not (TODO: x / y as separate fields!)
Trait Implementations§
Source§impl Clone for LayoutedRectangle
impl Clone for LayoutedRectangle
Source§fn clone(&self) -> LayoutedRectangle
fn clone(&self) -> LayoutedRectangle
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LayoutedRectangle
impl Debug for LayoutedRectangle
Source§impl PartialEq for LayoutedRectangle
impl PartialEq for LayoutedRectangle
Source§impl PartialOrd for LayoutedRectangle
impl PartialOrd for LayoutedRectangle
impl Copy for LayoutedRectangle
impl StructuralPartialEq for LayoutedRectangle
Auto Trait Implementations§
impl Freeze for LayoutedRectangle
impl RefUnwindSafe for LayoutedRectangle
impl Send for LayoutedRectangle
impl Sync for LayoutedRectangle
impl Unpin for LayoutedRectangle
impl UnwindSafe for LayoutedRectangle
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