[−][src]Trait fltk::prelude::GroupTrait
Defines the methods implemented by all group widgets
Required methods
fn begin(&self)
Begins a group, used for widgets implementing the group trait
fn end(&self)
Ends a group, used for widgets implementing the group trait
fn find<Widget: WidgetTrait>(&self, widget: &Widget) -> usize
Find a widget within a group and return its index
fn add<Widget: WidgetTrait>(&mut self, widget: &Widget)
Add a widget to a group
fn insert<Widget: WidgetTrait>(&mut self, widget: &Widget, index: usize)
Insert a widget to a group at a certain index
fn remove(&mut self, index: usize)
Remove a widget from a group
fn clear(&mut self)
Clear a group from all widgets
fn children(&self) -> usize
Return the number of children in a group