[][src]Struct azul_core::ui_solver::PositionedRectangle

pub struct PositionedRectangle {
    pub size: LayoutSize,
    pub position: PositionInfo,
    pub padding: ResolvedOffsets,
    pub margin: ResolvedOffsets,
    pub border_widths: ResolvedOffsets,
    pub resolved_text_layout_options: Option<(ResolvedTextLayoutOptions, InlineTextLayout, LayoutRect)>,
    pub overflow: Overflow,
}

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

resolved_text_layout_options: Option<(ResolvedTextLayoutOptions, InlineTextLayout, LayoutRect)>

If this is an inline rectangle, resolve the %-based font sizes and store them here.

overflow: Overflow

Determines if the rect should be clipped or not (TODO: x / y as separate fields!)

Implementations

impl PositionedRectangle[src]

Trait Implementations

impl Clone for PositionedRectangle[src]

impl Debug for PositionedRectangle[src]

impl PartialEq<PositionedRectangle> for PositionedRectangle[src]

impl PartialOrd<PositionedRectangle> for PositionedRectangle[src]

impl StructuralPartialEq for PositionedRectangle[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.