[][src]Struct coffee::ui::widget::Row

pub struct Row<'a, Message, Renderer> { /* fields omitted */ }

A container that places its contents horizontally.

A Row will try to fill the horizontal space of its container.

Methods

impl<'a, Message, Renderer> Row<'a, Message, Renderer>[src]

pub fn new() -> Self[src]

Creates an empty Row.

pub fn spacing(self, px: u16) -> Self[src]

Sets the horizontal spacing between elements in pixels.

Custom margins per element do not exist in Coffee. You should use this method instead! While less flexible, it helps you keep spacing between elements consistent.

pub fn padding(self, px: u32) -> Self[src]

Sets the padding of the Row in pixels.

pub fn width(self, width: u32) -> Self[src]

Sets the width of the Row in pixels.

pub fn height(self, height: u32) -> Self[src]

Sets the height of the Row in pixels.

pub fn max_width(self, max_width: u32) -> Self[src]

Sets the maximum width of the Row in pixels.

pub fn max_height(self, max_height: u32) -> Self[src]

Sets the maximum height of the Row in pixels.

pub fn align_self(self, align: Align) -> Self[src]

Sets the alignment of the Row itself.

This is useful if you want to override the default alignment given by the parent container.

pub fn align_items(self, align: Align) -> Self[src]

Sets the vertical alignment of the contents of the Row .

pub fn justify_content(self, justify: Justify) -> Self[src]

Sets the horizontal distribution strategy for the contents of the Row .

pub fn push<E>(self, child: E) -> Row<'a, Message, Renderer> where
    E: Into<Element<'a, Message, Renderer>>, 
[src]

Adds an Element to the Row.

Trait Implementations

impl<'a, Message, Renderer> Widget<Message, Renderer> for Row<'a, Message, Renderer>[src]

impl<'a, Message, Renderer> From<Row<'a, Message, Renderer>> for Element<'a, Message, Renderer> where
    Renderer: 'a,
    Message: 'static, 
[src]

impl<'a, Message, Renderer> Debug for Row<'a, Message, Renderer>[src]

Auto Trait Implementations

impl<'a, Message, Renderer> !Send for Row<'a, Message, Renderer>

impl<'a, Message, Renderer> !Sync for Row<'a, Message, Renderer>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> Erased for T

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>,