Struct winsafe::gui::spec::ComboBoxItems[][src]

pub struct ComboBoxItems<'a> { /* fields omitted */ }
Expand description

Exposes item methods of a ComboBox control.

You cannot directly instantiate this object, it is created internally by the control.

Implementations

Adds new texts by sending cb::AddString messages.

Examples

use winsafe::ComboBox;

let cmb_names: ComboBox; // initialized somewhere

cmb_names.items().add(&["John", "Mary"]);

Retrieves the number of items by sending a cb::GetCount message.

Deletes the item at the given index by sending a cb::DeleteString message.

Deletes all items by sending a cb::ResetContent message.

Retrieves the index of the currently selected item, if any, by sending a cb::GetCurSel message.

Retrieves the currently selected text, if any, by calling selected_index and text methods.

Sets the currently selected index, or clears it, by sending a cb::SetCurSel message.

Retrieves the text at the given position, if any, by sending a cb::GetLbText message.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.