Trait gtk::prelude::ComboBoxTextExt [−][src]
pub trait ComboBoxTextExt: 'static {
fn append(&self, id: Option<&str>, text: &str);
fn append_text(&self, text: &str);
fn active_text(&self) -> Option<GString>;
fn insert(&self, position: i32, id: Option<&str>, text: &str);
fn insert_text(&self, position: i32, text: &str);
fn prepend(&self, id: Option<&str>, text: &str);
fn prepend_text(&self, text: &str);
fn remove(&self, position: i32);
fn remove_all(&self);
}Expand description
Required methods
fn append_text(&self, text: &str)
fn append_text(&self, text: &str)Appends text to the list of strings stored in self.
This is the same as calling insert_text() with a
position of -1.
text
A string
fn active_text(&self) -> Option<GString>
fn active_text(&self) -> Option<GString>fn insert_text(&self, position: i32, text: &str)
fn insert_text(&self, position: i32, text: &str)fn prepend_text(&self, text: &str)
fn prepend_text(&self, text: &str)Prepends text to the list of strings stored in self.
This is the same as calling insert_text() with a
position of 0.
text
A string
fn remove_all(&self)
fn remove_all(&self)Removes all the text entries from the combo box.