Trait components::ComboBoxExt [−][src]
pub trait ComboBoxExt: 'static {}Show methods
fn append_text(&self, text: &str); fn get_active_icon_name(&self) -> Option<String>; fn get_active_text(&self) -> Option<String>; fn get_index(&self) -> i32; fn insert_text(&self, position: i32, text: &str); fn insert_text_with_icon(&self, position: i32, text: &str, icon: &str); fn prepend_text(&self, text: &str); fn remove_all(&self); fn remove_text(&self, position: usize); fn set_active_icon_name(&self, icon_name: Option<String>); fn set_active_text(&self, text: &str); fn set_index(&self, index: i32); fn connect_property_active_icon_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_active_text_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_index_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
Required methods
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
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.
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
fn get_index(&self) -> i32
[src]
get_index: @box: A #ComboBox
Get the index of the last item selected
Returns: gint
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.
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.
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
fn remove_all(&self)
[src]
remove_all: @box: A #ComboBox
Remove all the items of @box
fn remove_text(&self, position: usize)
[src]
remove_text: @box: A #ComboBox @position: position of the item to remove
Remove the item at @position
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.
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
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.
fn connect_property_active_icon_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_active_text_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_index_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: Is<ComboBox>> ComboBoxExt for O
[src]
impl<O: Is<ComboBox>> ComboBoxExt for O
[src]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
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.
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
fn get_index(&self) -> i32
[src]
get_index: @box: A #ComboBox
Get the index of the last item selected
Returns: gint
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.
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.
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
fn remove_all(&self)
[src]
remove_all: @box: A #ComboBox
Remove all the items of @box
fn remove_text(&self, position: usize)
[src]
remove_text: @box: A #ComboBox @position: position of the item to remove
Remove the item at @position
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.
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
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.
fn connect_property_active_icon_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_active_text_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_index_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId