Struct fltk::group::Row[][src]

pub struct Row { /* fields omitted */ }
Expand description

A wrapper around a Horizontal pack, with auto_layouting using the add method

Implementations

impl Row[src]

pub fn default() -> Self[src]

Default init a row filling the parent

pub fn add<W: WidgetExt>(&mut self, w: &W)[src]

Add a widget to the row with automatic layouting

Methods from Deref<Target = Pack>

pub fn spacing(&self) -> i32[src]

Get the spacing of the pack

pub fn set_spacing(&mut self, spacing: i32)[src]

Set the spacing of the pack

pub fn auto_layout(&mut self)[src]

Layout the children of the pack automatically. Must be called on existing children

Trait Implementations

impl Deref for Row[src]

type Target = Pack

The resulting type after dereferencing.

fn deref(&self) -> &Self::Target[src]

Dereferences the value.

impl DerefMut for Row[src]

fn deref_mut(&mut self) -> &mut Self::Target[src]

Mutably dereferences the value.

Auto Trait Implementations

impl RefUnwindSafe for Row

impl Send for Row

impl Sync for Row

impl Unpin for Row

impl UnwindSafe for Row

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.