[−][src]Struct nuki::compr::PropertyF32
A 32-bit float point typed property.
Implementations
impl PropertyF32
[src]
pub fn with_slider(
name: &'static str,
range: (f32, f32),
step: f32,
def_val: f32
) -> Self
[src]
name: &'static str,
range: (f32, f32),
step: f32,
def_val: f32
) -> Self
pub fn with_spin_box(
name: &'static str,
range: (f32, f32),
step: f32,
def_val: f32
) -> Self
[src]
name: &'static str,
range: (f32, f32),
step: f32,
def_val: f32
) -> Self
Trait Implementations
impl Debug for PropertyF32
[src]
impl Property for PropertyF32
[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_f32<'l>(&self) -> Option<&(dyn PropertyNumber<f32> + 'l)>
[src]
pub fn is_selectable(&self) -> bool
[src]
pub fn as_property_action(&self) -> Option<&PropertyAction>
[src]
pub fn as_property_bool(&self) -> Option<&PropertyBool>
[src]
pub fn as_property_dummy(&self) -> Option<&PropertyDummy>
[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 PropertyNumber<f32> for PropertyF32
[src]
pub fn range(&self) -> (f32, f32)
[src]
pub fn step(&self) -> f32
[src]
pub fn step_forward(&self) -> f32
[src]
pub fn step_backward(&self) -> f32
[src]
pub fn def_val(&self) -> f32
[src]
pub fn value(&self) -> f32
[src]
pub fn value_mut(&self) -> &mut f32
[src]
pub unsafe fn value_mut_ptr(&self) -> *mut f32
[src]
pub fn set_value(&self, value: f32) -> f32
[src]
impl Send for PropertyF32
[src]
impl Sync for PropertyF32
[src]
Auto Trait Implementations
impl !RefUnwindSafe for PropertyF32
[src]
impl Unpin for PropertyF32
[src]
impl UnwindSafe for PropertyF32
[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>,