[][src]Struct pushrod::layouts::vertical_layout::VerticalLayout

pub struct VerticalLayout { /* fields omitted */ }

This is the VerticalLayout storage structure for the VerticalLayout implementation.

Methods

impl VerticalLayout[src]

Creates a new VerticalLayout manager.

pub fn new(x: i32, y: i32, w: u32, h: u32, padding: PaddingConstraint) -> Self[src]

Trait Implementations

impl Layout for VerticalLayout[src]

This is the Layout implementation for the VerticalLayout manager. This Layout manager will not reposition any objects within the bounds of the Layout until at least 2 objects have been added to the bounds of the Layout.

fn insert_widget(&mut self, widget_id: i32, widget_position: LayoutPosition)[src]

Adds a widget to the VerticalLayout managed stack.

fn append_widget(&mut self, widget_id: i32)[src]

Appends a widget to the VerticalLayout managed stack.

fn do_layout(&mut self, _widgets: &[WidgetContainer])[src]

Adjusts the layout of the Widgets managed by this Layout manager. Currently only obeys the spacing in the object. The rest of the padding is not (yet) honored.

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