Struct iui::controls::Checkbox [−][src]
pub struct Checkbox { /* fields omitted */ }
Boolean selection control which can be checked or unchecked.
Methods
impl Checkbox
[src]
impl Checkbox
pub 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) -> Checkbox
Create 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 uiCheckbox
Return the underlying pointer for this control.
impl Checkbox
[src]
impl Checkbox
pub fn new(_ctx: &UI, text: &str) -> Self
[src]
pub fn new(_ctx: &UI, text: &str) -> Self
pub fn checked(&self, _ctx: &UI) -> bool
[src]
pub fn checked(&self, _ctx: &UI) -> bool
pub 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 Checkbox
impl Clone for Checkbox
[src]
impl Clone for Checkbox
fn clone(&self) -> Checkbox
[src]
fn clone(&self) -> Checkbox
Returns 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