[][src]Trait gtk::prelude::ComboBoxExtManual

pub trait ComboBoxExtManual: 'static {
    fn set_active(&self, index_: Option<u32>);
fn get_active(&self) -> Option<u32>; }

Required methods

fn set_active(&self, index_: Option<u32>)

Sets the active item of self to be the item at index.

index_

An index in the model passed during construction, or -1 to have no active item

fn get_active(&self) -> Option<u32>

Returns the index of the currently active item, or -1 if there’s no active item. If the model is a non-flat treemodel, and the active item is not an immediate child of the root of the tree, this function returns gtk_tree_path_get_indices (path)[0], where path is the TreePath of the active item.

Returns

An integer which is the index of the currently active item, or -1 if there’s no active item.

Loading content...

Implementors

impl<O: IsA<ComboBox>> ComboBoxExtManual for O[src]

Loading content...