[][src]Trait nuki::property_sheet::PropertyNumber

pub trait PropertyNumber<T>: Property {
    pub fn range(&self) -> (T, T);
pub fn step(&self) -> T;
pub fn step_forward(&self) -> T;
pub fn step_backward(&self) -> T;
pub fn def_val(&self) -> T;
pub fn value(&self) -> T;
pub fn value_mut(&self) -> &mut T;
pub unsafe fn value_mut_ptr(&self) -> *mut T;
pub fn set_value(&self, value: T) -> T; }

Numberic Property.

Required methods

pub fn range(&self) -> (T, T)[src]

Returns the min/max range of the property value.

pub fn step(&self) -> T[src]

Returns the increase/decrease step of the property value.

pub fn step_forward(&self) -> T[src]

Increase the value of the property by step and return the new value.

pub fn step_backward(&self) -> T[src]

Decrease the value of the property by step and return the new value.

pub fn def_val(&self) -> T[src]

Returns the default value of the property.

pub fn value(&self) -> T[src]

Returns the value of the property.

pub fn value_mut(&self) -> &mut T[src]

Returns the mutable reference of the property value.

pub unsafe fn value_mut_ptr(&self) -> *mut T[src]

Returns the mutable raw pointer of the property value.

Safety

pub fn set_value(&self, value: T) -> T[src]

Change the value of the property.

Loading content...

Trait Implementations

impl Debug for dyn PropertyNumber<f32>[src]

impl Debug for dyn PropertyNumber<f64>[src]

Implementors

impl PropertyNumber<f32> for PropertyF32[src]

pub unsafe fn value_mut_ptr(&self) -> *mut f32[src]

impl PropertyNumber<f64> for PropertyF64[src]

pub unsafe fn value_mut_ptr(&self) -> *mut f64[src]

impl PropertyNumber<i32> for PropertyI32[src]

pub unsafe fn value_mut_ptr(&self) -> *mut i32[src]

impl PropertyNumber<i64> for PropertyI64[src]

pub unsafe fn value_mut_ptr(&self) -> *mut i64[src]

Loading content...