[−][src]Struct nuki::compr::PropertyBool
A boolean typed property.
Implementations
impl PropertyBool
[src]
pub fn with_switch(name: &'static str, def_val: bool) -> Self
[src]
pub fn def_val(&self) -> bool
[src]
pub fn value(&self) -> bool
[src]
pub fn value_mut(&self) -> &mut bool
[src]
pub unsafe fn value_mut_ptr(&self) -> *mut bool
[src]
pub fn set_value(&self, value: bool) -> bool
[src]
pub fn toggle(&self) -> bool
[src]
Toggle the value between true
and false
.
Trait Implementations
impl Debug for PropertyBool
[src]
impl Default for PropertyBool
[src]
impl Property for PropertyBool
[src]
pub fn id(&self) -> usize
[src]
pub fn set_id(&self, id: usize)
[src]
pub fn name(&self) -> &'static str
[src]
pub fn options(&self) -> &[&'static str]
[src]
pub fn value_type(&self) -> ValueType
[src]
pub fn widget_type(&self) -> WidgetType
[src]
pub fn is_selected(&self) -> bool
[src]
pub fn set_selected(&self, selected: bool)
[src]
pub fn is_visible(&self) -> bool
[src]
pub fn set_visible(&self, visible: bool)
[src]
pub fn show(&self)
[src]
pub fn hide(&self)
[src]
pub fn as_property_bool(&self) -> Option<&PropertyBool>
[src]
pub fn is_selectable(&self) -> bool
[src]
pub fn as_property_action(&self) -> Option<&PropertyAction>
[src]
pub fn as_property_dummy(&self) -> Option<&PropertyDummy>
[src]
pub fn as_property_f32<'l>(&self) -> Option<&(dyn PropertyNumber<f32> + 'l)>
[src]
pub fn as_property_f64<'l>(&self) -> Option<&(dyn PropertyNumber<f64> + 'l)>
[src]
pub fn as_property_i32<'l>(&self) -> Option<&(dyn PropertyNumber<i32> + 'l)>
[src]
pub fn as_property_i64<'l>(&self) -> Option<&(dyn PropertyNumber<i64> + 'l)>
[src]
pub fn as_property_string(&self) -> Option<&PropertyString>
[src]
pub fn is_action_checked(&self) -> Option<bool>
[src]
pub fn trigger_action(&self, checked: bool) -> Option<bool>
[src]
pub fn get_value_bool(&self) -> Option<bool>
[src]
pub fn set_value_bool(&self, value: bool) -> Option<bool>
[src]
pub fn get_value_f32(&self) -> Option<f32>
[src]
pub fn set_value_f32(&self, value: f32) -> Option<f32>
[src]
pub fn get_value_f64(&self) -> Option<f64>
[src]
pub fn set_value_f64(&self, value: f64) -> Option<f64>
[src]
pub fn get_value_i32(&self) -> Option<i32>
[src]
pub fn set_value_i32(&self, value: i32) -> Option<i32>
[src]
pub fn get_value_i64(&self) -> Option<i64>
[src]
pub fn set_value_i64(&self, value: i64) -> Option<i64>
[src]
pub fn get_value_string(&self) -> Option<Ref<'_, str>>
[src]
pub fn set_value_string<'l>(&self, value: &'l str) -> Option<Ref<'_, str>>
[src]
impl Send for PropertyBool
[src]
impl Sync for PropertyBool
[src]
Auto Trait Implementations
impl !RefUnwindSafe for PropertyBool
[src]
impl Unpin for PropertyBool
[src]
impl UnwindSafe for PropertyBool
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,