Trait ux::ComboBoxExt[][src]

pub trait ComboBoxExt: 'static {
Show methods pub fn append_text(&self, text: &str);
pub fn get_active_icon_name(&self) -> Option<String>;
pub fn get_active_text(&self) -> Option<String>;
pub fn get_index(&self) -> i32;
pub fn insert_text(&self, position: i32, text: &str);
pub fn insert_text_with_icon(&self, position: i32, text: &str, icon: &str);
pub fn prepend_text(&self, text: &str);
pub fn remove_all(&self);
pub fn remove_text(&self, position: usize);
pub fn set_active_icon_name(&self, icon_name: Option<String>);
pub fn set_active_text(&self, text: &str);
pub fn set_index(&self, index: i32);
pub fn connect_property_active_icon_name_notify<F>(
        &self,
        f: F
    ) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_active_text_notify<F>(
        &self,
        f: F
    ) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_index_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
}

Required methods

pub fn append_text(&self, text: &str)[src]

append_text: @box: A #ComboBox @text: name of the item

Append an item to the combo box list

pub fn get_active_icon_name(&self) -> Option<String>[src]

get_active_icon_name: @box: A #ComboBox

Get the name of the icon displayed in the combo box

Returns: the text string of the name of the displayed icon, owned by the combo box, or %None if there is no active icon.

pub fn get_active_text(&self) -> Option<String>[src]

get_active_text: @box: A #ComboBox

Get the text displayed in the combo box

Returns: the text string, owned by the combo box

pub fn get_index(&self) -> i32[src]

get_index: @box: A #ComboBox

Get the index of the last item selected

Returns: gint

pub fn insert_text(&self, position: i32, text: &str)[src]

insert_text: @box: A #ComboBox @position: zero indexed position to insert the item at @text: name of the item

Insert an item into the combo box list.

pub fn insert_text_with_icon(&self, position: i32, text: &str, icon: &str)[src]

insert_text_with_icon: @box: A #ComboBox @position: zero indexed position to insert the item at @text: name of the item @icon: name of an icon from the icon theme

Insert an item with text and an icon into the combo box list.

pub fn prepend_text(&self, text: &str)[src]

prepend_text: @box: A #ComboBox @text: name of the item

Prepend an item to the combo box list

pub fn remove_all(&self)[src]

remove_all: @box: A #ComboBox

Remove all the items of @box

pub fn remove_text(&self, position: usize)[src]

remove_text: @box: A #ComboBox @position: position of the item to remove

Remove the item at @position

pub fn set_active_icon_name(&self, icon_name: Option<String>)[src]

set_active_icon_name: @box: A #ComboBox @icon_name: (allow-none): Icon name to use for displayed icon

Set the icon displayed in the combo box.

pub fn set_active_text(&self, text: &str)[src]

set_active_text: @box: A #ComboBox @text: text to display

Set the text displayed in the combo box

pub fn set_index(&self, index: i32)[src]

set_index: @box: A #ComboBox @index: the index of the list item to set

Set the current combo box text from the item at @index in the list.

pub fn connect_property_active_icon_name_notify<F>(
    &self,
    f: F
) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_active_text_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

pub fn connect_property_index_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Self), 
[src]

Loading content...

Implementors

impl<O> ComboBoxExt for O where
    O: Is<ComboBox>, 
[src]

pub fn append_text(&self, text: &str)[src]

append_text: @box: A #ComboBox @text: name of the item

Append an item to the combo box list

pub fn get_active_icon_name(&self) -> Option<String>[src]

get_active_icon_name: @box: A #ComboBox

Get the name of the icon displayed in the combo box

Returns: the text string of the name of the displayed icon, owned by the combo box, or %None if there is no active icon.

pub fn get_active_text(&self) -> Option<String>[src]

get_active_text: @box: A #ComboBox

Get the text displayed in the combo box

Returns: the text string, owned by the combo box

pub fn get_index(&self) -> i32[src]

get_index: @box: A #ComboBox

Get the index of the last item selected

Returns: gint

pub fn insert_text(&self, position: i32, text: &str)[src]

insert_text: @box: A #ComboBox @position: zero indexed position to insert the item at @text: name of the item

Insert an item into the combo box list.

pub fn insert_text_with_icon(&self, position: i32, text: &str, icon: &str)[src]

insert_text_with_icon: @box: A #ComboBox @position: zero indexed position to insert the item at @text: name of the item @icon: name of an icon from the icon theme

Insert an item with text and an icon into the combo box list.

pub fn prepend_text(&self, text: &str)[src]

prepend_text: @box: A #ComboBox @text: name of the item

Prepend an item to the combo box list

pub fn remove_all(&self)[src]

remove_all: @box: A #ComboBox

Remove all the items of @box

pub fn remove_text(&self, position: usize)[src]

remove_text: @box: A #ComboBox @position: position of the item to remove

Remove the item at @position

pub fn set_active_icon_name(&self, icon_name: Option<String>)[src]

set_active_icon_name: @box: A #ComboBox @icon_name: (allow-none): Icon name to use for displayed icon

Set the icon displayed in the combo box.

pub fn set_active_text(&self, text: &str)[src]

set_active_text: @box: A #ComboBox @text: text to display

Set the text displayed in the combo box

pub fn set_index(&self, index: i32)[src]

set_index: @box: A #ComboBox @index: the index of the list item to set

Set the current combo box text from the item at @index in the list.

Loading content...