[][src]Trait fltk::prelude::GroupTrait

pub trait GroupTrait: WidgetTrait {
    fn begin(&self);
fn end(&self);
fn find<Widget: WidgetTrait>(&self, widget: &Widget) -> usize;
fn add<Widget: WidgetTrait>(&mut self, widget: &Widget);
fn insert<Widget: WidgetTrait>(&mut self, widget: &Widget, index: usize);
fn remove(&mut self, index: usize);
fn clear(&mut self);
fn children(&self) -> usize; }

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

Loading content...

Implementors

impl GroupTrait for Group[src]

impl GroupTrait for Pack[src]

impl GroupTrait for Scroll[src]

impl GroupTrait for Tabs[src]

impl GroupTrait for Tile[src]

impl GroupTrait for DoubleWindow[src]

impl GroupTrait for MenuWindow[src]

impl GroupTrait for Window[src]

Loading content...