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: LayoutSize
Outer bounds of the rectangle
position: PositionInfo
How the rectangle should be positioned
padding: ResolvedOffsets
Padding of the rectangle
margin: ResolvedOffsets
Margin of the rectangle
border_widths: ResolvedOffsets
Border widths of the rectangle
overflow: Overflow
Determines 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)