Struct iui::controls::Combobox [−][src]
pub struct Combobox { /* fields omitted */ }Allows the user to select any one of its options, from a list shown only when selected.
Methods
impl Combobox[src]
impl Comboboxpub fn show(&mut self, _ctx: &UI)[src]
pub fn show(&mut self, _ctx: &UI)pub fn hide(&mut self, _ctx: &UI)[src]
pub fn hide(&mut self, _ctx: &UI)pub unsafe fn from_raw(uiCombobox: *mut uiCombobox) -> Combobox[src]
pub unsafe fn from_raw(uiCombobox: *mut uiCombobox) -> ComboboxCreate an iui struct for this control from the raw pointer for it.
Unsafety
The given pointer must point to a valid control or memory unsafety may result.
pub fn ptr(&self) -> *mut uiCombobox[src]
pub fn ptr(&self) -> *mut uiComboboxReturn the underlying pointer for this control.
impl Combobox[src]
impl Comboboxpub fn new(_ctx: &UI) -> Self[src]
pub fn new(_ctx: &UI) -> SelfCreate a new Combobox
pub fn append(&self, _ctx: &UI, name: &str)[src]
pub fn append(&self, _ctx: &UI, name: &str)Adds a new option to the combination box.
pub fn set_selected(&mut self, _ctx: &UI, value: i64)[src]
pub fn set_selected(&mut self, _ctx: &UI, value: i64)pub fn on_selected<F: FnMut(i64)>(&mut self, _ctx: &UI, callback: F)[src]
pub fn on_selected<F: FnMut(i64)>(&mut self, _ctx: &UI, callback: F)Trait Implementations
impl Drop for Combobox[src]
impl Drop for Comboboximpl Clone for Combobox[src]
impl Clone for Comboboxfn clone(&self) -> Combobox[src]
fn clone(&self) -> ComboboxReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Into<Control> for Combobox[src]
impl Into<Control> for Combobox