[][src]Trait fltk::prelude::GroupExt

pub unsafe trait GroupExt: WidgetExt {
    fn begin(&self);
fn end(&self);
fn find<Widget: WidgetExt>(&self, widget: &Widget) -> u32;
fn add<Widget: WidgetExt>(&mut self, widget: &Widget);
fn insert<Widget: WidgetExt>(&mut self, widget: &Widget, index: u32);
fn remove<Widget: WidgetExt>(&mut self, widget: &Widget);
fn clear(&mut self);
unsafe fn unsafe_clear(&mut self);
fn children(&self) -> u32;
fn child(&self, idx: u32) -> Option<Widget>;
fn resizable<Widget: WidgetExt>(&self, widget: &mut Widget); }

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: WidgetExt>(&self, widget: &Widget) -> u32

Find a widget within a group and return its index

fn add<Widget: WidgetExt>(&mut self, widget: &Widget)

Add a widget to a group

fn insert<Widget: WidgetExt>(&mut self, widget: &Widget, index: u32)

Insert a widget to a group at a certain index

fn remove<Widget: WidgetExt>(&mut self, widget: &Widget)

Remove a widget from a group, but does not delete it

fn clear(&mut self)

Clear a group from all widgets

unsafe fn unsafe_clear(&mut self)

Clear a group from all widgets and recursively force-cleans capturing callbacks

Safety

Deletes user_data and any captured objects in the callback

fn children(&self) -> u32

Return the number of children in a group

fn child(&self, idx: u32) -> Option<Widget>

Return child widget by index

fn resizable<Widget: WidgetExt>(&self, widget: &mut Widget)

Make the passed widget resizable

Loading content...

Implementors

impl GroupExt for ColorChooser[src]

impl GroupExt for Group[src]

impl GroupExt for Pack[src]

impl GroupExt for Scroll[src]

impl GroupExt for Tabs[src]

impl GroupExt for Tile[src]

impl GroupExt for Wizard[src]

impl GroupExt for Table[src]

impl GroupExt for TableRow[src]

impl GroupExt for DoubleWindow[src]

impl GroupExt for MenuWindow[src]

impl GroupExt for SingleWindow[src]

impl GroupExt for Window[src]

Loading content...