Struct fltk_flex::Flex [−][src]
pub struct Flex { /* fields omitted */ }
Expand description
a Flexbox widget
Example
use fltk::{prelude::*, *}; use fltk_flex::{Flex, FlexType}; let mut col = Flex::new(0, 0, 400, 300, None); col.set_type(FlexType::Column); let expanding = button::Button::default().with_label("Expanding"); let mut normal = button::Button::default().with_label("Normal"); col.set_size(&mut normal, 30); col.end();
Implementations
Create a new Flex widget
Create a default type of flex widget
Set the direction
Get the direction
Set the margin
Methods from Deref<Target = Group>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Flex
impl UnwindSafe for Flex
Blanket Implementations
Mutably borrows from an owned value. Read more