Struct iui::controls::Checkbox [−][src]
pub struct Checkbox { /* fields omitted */ }Boolean selection control which can be checked or unchecked.
Methods
impl Checkbox[src]
impl Checkboxpub 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(uiCheckbox: *mut uiCheckbox) -> Checkbox[src]
pub unsafe fn from_raw(uiCheckbox: *mut uiCheckbox) -> CheckboxCreate 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 uiCheckbox[src]
pub fn ptr(&self) -> *mut uiCheckboxReturn the underlying pointer for this control.
impl Checkbox[src]
impl Checkboxpub fn new(_ctx: &UI, text: &str) -> Self[src]
pub fn new(_ctx: &UI, text: &str) -> Selfpub fn checked(&self, _ctx: &UI) -> bool[src]
pub fn checked(&self, _ctx: &UI) -> boolpub fn set_checked(&mut self, _ctx: &UI, checked: bool)[src]
pub fn set_checked(&mut self, _ctx: &UI, checked: bool)pub fn on_toggled<F: FnMut(bool)>(&mut self, _ctx: &UI, callback: F)[src]
pub fn on_toggled<F: FnMut(bool)>(&mut self, _ctx: &UI, callback: F)Trait Implementations
impl Drop for Checkbox[src]
impl Drop for Checkboximpl Clone for Checkbox[src]
impl Clone for Checkboxfn clone(&self) -> Checkbox[src]
fn clone(&self) -> CheckboxReturns 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 Checkbox[src]
impl Into<Control> for Checkbox