Struct fltk::group::VGrid [−][src]
pub struct VGrid { /* fields omitted */ }
Expand description
Defines a Vertical Grid (custom widget).
Requires setting the params manually using the set_params
method, which takes the rows, columns and spacing.
Requires explicit calls to add, which is overloaded especially for the layout.
use fltk::{prelude::*, *}; let mut grid = group::VGrid::new(0, 0, 400, 300, ""); grid.set_params(3, 3, 5); grid.add(&button::Button::default()); grid.add(&button::Button::default()); grid.add(&button::Button::default()); grid.add(&button::Button::default()); grid.add(&button::Button::default()); grid.add(&button::Button::default()); grid.add(&button::Button::default()); grid.add(&button::Button::default());
Implementations
Methods from Deref<Target = Pack>
pub fn set_spacing(&mut self, spacing: i32)
[src]
pub fn set_spacing(&mut self, spacing: i32)
[src]Set the spacing of the pack
pub fn auto_layout(&mut self)
[src]
pub fn auto_layout(&mut self)
[src]Layout the children of the pack automatically. Must be called on existing children
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for VGrid
impl Send for VGrid
impl Sync for VGrid
impl Unpin for VGrid
impl UnwindSafe for VGrid
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more