[][src]Struct sixtyfps_corelib::layout::BoxLayoutData

#[repr(C)]pub struct BoxLayoutData<'a> {
    pub width: f32,
    pub height: f32,
    pub x: f32,
    pub y: f32,
    pub spacing: f32,
    pub padding: &'a Padding,
    pub alignment: LayoutAlignment,
    pub cells: Slice<'a, BoxLayoutCellData<'a>>,
}

The BoxLayoutData is used to represent both a Horizontal and Vertical layout. The width/height x/y corrspond to that of a horizontal layout. For vertical layout, they are inverted

Fields

width: f32height: f32x: f32y: f32spacing: f32padding: &'a Paddingalignment: LayoutAlignmentcells: Slice<'a, BoxLayoutCellData<'a>>

Trait Implementations

impl<'a> Debug for BoxLayoutData<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for BoxLayoutData<'a>

impl<'a> !Send for BoxLayoutData<'a>

impl<'a> !Sync for BoxLayoutData<'a>

impl<'a> Unpin for BoxLayoutData<'a>

impl<'a> !UnwindSafe for BoxLayoutData<'a>

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, 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.