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
Initialize with a label
Initialize with alignment
Initialize with type
Initialize at bottom of another widget
Initialize above of another widget
Initialize right of another widget
Initialize left of another widget
Initialize center of parent
Initialize to the size of the parent
Create a new 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