pub struct NumberProp<T> { /* private fields */ }Expand description
Implementations§
Source§impl<T: PrimInt> NumberProp<T>
impl<T: PrimInt> NumberProp<T>
Source§impl<T: Float> NumberProp<T>
impl<T: Float> NumberProp<T>
Source§impl<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§
Source§impl<T: ToPrimitive> ObsProp for NumberProp<T>
impl<T: ToPrimitive> ObsProp for NumberProp<T>
Source§unsafe 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> Freeze for NumberProp<T>where
T: Freeze,
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more