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

pub unsafe trait GroupExt: WidgetExt {
Show methods fn begin(&self);
fn end(&self);
fn clear(&mut self);
unsafe fn unsafe_clear(&mut self);
fn children(&self) -> i32;
fn child(&self, idx: i32) -> Option<Box<dyn WidgetExt>>;
fn find<W: WidgetExt>(&self, widget: &W) -> i32
    where
        Self: Sized
;
fn add<W: WidgetExt>(&mut self, widget: &W)
    where
        Self: Sized
;
fn insert<W: WidgetExt>(&mut self, widget: &W, index: i32)
    where
        Self: Sized
;
fn remove<W: WidgetExt>(&mut self, widget: &W)
    where
        Self: Sized
;
fn remove_by_index(&mut self, idx: i32);
fn resizable<W: WidgetExt>(&self, widget: &W)
    where
        Self: Sized
;
fn make_resizable(&mut self, val: bool);
fn set_clip_children(&mut self, flag: bool);
fn clip_children(&mut self) -> bool;
fn draw_child<W: WidgetExt>(&self, w: &mut W)
    where
        Self: Sized
;
fn update_child<W: WidgetExt>(&self, w: &mut W)
    where
        Self: Sized
;
fn draw_outside_label<W: WidgetExt>(&self, w: &mut W)
    where
        Self: Sized
;
fn draw_children(&mut self);
}
Expand description

Defines the methods implemented by all group widgets

Required methods

Begins a group, used for widgets implementing the group trait

Ends a group, used for widgets implementing the group trait

Clear a group from all widgets

Clear a group from all widgets using FLTK’s clear call.

Safety

Ignores widget tracking

Return the number of children in a group

Return child widget by index

Find a widget within a group and return its index

Add a widget to a group

Insert a widget to a group at a certain index

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

Remove a child widget by its index

Make the passed widget resizable

Make the window resizable, should be called before show

Clips children outside the group boundaries

Get whether clip_children is set

Draw a child widget, the call should be in a WidgetBase::draw method

Update a child widget, the call should be in a WidgetBase::draw method

Draw the outside label, the call should be in a WidgetBase::draw method

Draw children, the call should be in a WidgetBase::draw method

Implementors