Struct obs_wrapper::properties::NumberProp
source · [−]pub struct NumberProp<T> { /* private fields */ }Expand description
Implementations
sourceimpl<T: PrimInt> NumberProp<T>
impl<T: PrimInt> NumberProp<T>
sourceimpl<T: Float> NumberProp<T>
impl<T: Float> NumberProp<T>
sourceimpl<T: Num + Bounded + Copy> NumberProp<T>
impl<T: Num + Bounded + Copy> NumberProp<T>
sourcepub fn with_range<R: RangeBounds<T>>(self, range: R) -> Self
pub fn with_range<R: RangeBounds<T>>(self, range: R) -> Self
Sets the range of the property, inclusion and exclustion are calucated based on the current step.
sourcepub fn with_slider(self) -> Self
pub fn with_slider(self) -> Self
Sets this property as a slider.
Trait Implementations
sourceimpl<T: ToPrimitive> ObsProp for NumberProp<T>
impl<T: ToPrimitive> ObsProp for NumberProp<T>
sourceunsafe fn add_to_props(
self,
p: *mut obs_properties_t,
name: ObsString,
description: ObsString
)
unsafe fn add_to_props(
self,
p: *mut obs_properties_t,
name: ObsString,
description: ObsString
)
Callback to add this property to a
obs_properties_t. Read moreAuto Trait Implementations
impl<T> RefUnwindSafe for NumberProp<T>where
T: RefUnwindSafe,
impl<T> Send for NumberProp<T>where
T: Send,
impl<T> Sync for NumberProp<T>where
T: Sync,
impl<T> Unpin for NumberProp<T>where
T: Unpin,
impl<T> UnwindSafe for NumberProp<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more