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

pub unsafe trait GroupExt: WidgetExt {
    fn begin(&self);
fn end(&self);
fn clear(&mut self);
fn children(&self) -> u32;
fn child(&self, idx: u32) -> Option<Box<dyn WidgetExt>>;
fn find<W: WidgetExt>(&self, widget: &W) -> u32
    where
        Self: Sized
;
fn add<W: WidgetExt>(&mut self, widget: &W)
    where
        Self: Sized
;
fn insert<W: WidgetExt>(&mut self, widget: &W, index: u32)
    where
        Self: Sized
;
fn remove<W: WidgetExt>(&mut self, widget: &W)
    where
        Self: Sized
;
fn remove_by_index(&mut self, idx: u32);
fn resizable<W: WidgetExt>(&self, widget: &W)
    where
        Self: Sized
;
fn make_resizable(&mut self, val: bool); }

Defines the methods implemented by all group widgets

Required methods

fn begin(&self)[src]

Begins a group, used for widgets implementing the group trait

fn end(&self)[src]

Ends a group, used for widgets implementing the group trait

fn clear(&mut self)[src]

Clear a group from all widgets

fn children(&self) -> u32[src]

Return the number of children in a group

fn child(&self, idx: u32) -> Option<Box<dyn WidgetExt>>[src]

Return child widget by index

fn find<W: WidgetExt>(&self, widget: &W) -> u32 where
    Self: Sized
[src]

Find a widget within a group and return its index

fn add<W: WidgetExt>(&mut self, widget: &W) where
    Self: Sized
[src]

Add a widget to a group

fn insert<W: WidgetExt>(&mut self, widget: &W, index: u32) where
    Self: Sized
[src]

Insert a widget to a group at a certain index

fn remove<W: WidgetExt>(&mut self, widget: &W) where
    Self: Sized
[src]

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

fn remove_by_index(&mut self, idx: u32)[src]

Remove a child widget by its index

fn resizable<W: WidgetExt>(&self, widget: &W) where
    Self: Sized
[src]

Make the passed widget resizable

fn make_resizable(&mut self, val: bool)[src]

Make the window resizable, should be called before show

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 GlWindow[src]

impl GroupExt for GlutWindow[src]

impl GroupExt for MenuWindow[src]

impl GroupExt for OverlayWindow[src]

impl GroupExt for SingleWindow[src]

Loading content...