[][src]Struct pushrod::layouts::grid_layout::GridLayout

pub struct GridLayout { /* fields omitted */ }

This is the GridLayout storage structure for the GridLayout implementation.

Methods

impl GridLayout[src]

Creates a new GridLayout manager.

pub fn new(
    _x: i32,
    _y: i32,
    _w: u32,
    _h: u32,
    _layout: Vec<i32>,
    padding: PaddingConstraint
) -> Self
[src]

Trait Implementations

impl Layout for GridLayout[src]

This is the Layout implementation for the GridLayout 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 HorizontalLayout managed stack.

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

Appends a widget to the HorizontalLayout 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.