Skip to main content

TheGroupButtonTrait

Trait TheGroupButtonTrait 

Source
pub trait TheGroupButtonTrait: TheWidget {
    // Required methods
    fn add_text(&mut self, text: String);
    fn add_text_status(&mut self, text: String, status: String);
    fn add_text_status_icon(
        &mut self,
        text: String,
        status: String,
        icon: String,
    );
    fn set_item_width(&mut self, width: usize);
    fn set_index(&mut self, index: i32);
    fn index(&self) -> i32;
}

Required Methods§

Source

fn add_text(&mut self, text: String)

Add a new text based item.

Source

fn add_text_status(&mut self, text: String, status: String)

Add a new text based item with an associated status text.

Source

fn add_text_status_icon(&mut self, text: String, status: String, icon: String)

Add a new text based item with an associated status text and an icon.

Source

fn set_item_width(&mut self, width: usize)

Set the width of each itme.

Source

fn set_index(&mut self, index: i32)

Set the index.

Source

fn index(&self) -> i32

Get the selected index.

Implementors§