Struct fyrox_ui::numeric::NumericUpDownBuilder
source · pub struct NumericUpDownBuilder<T: NumericType> { /* private fields */ }Expand description
This builder creates new instances of NumericUpDown widget and adds them to the user interface.
Implementations§
source§impl<T: NumericType> NumericUpDownBuilder<T>
impl<T: NumericType> NumericUpDownBuilder<T>
sourcepub fn new(widget_builder: WidgetBuilder) -> Self
pub fn new(widget_builder: WidgetBuilder) -> Self
Creates new builder instance with the base widget builder specified.
sourcepub fn with_min_value(self, value: T) -> Self
pub fn with_min_value(self, value: T) -> Self
Sets the desired min value.
sourcepub fn with_max_value(self, value: T) -> Self
pub fn with_max_value(self, value: T) -> Self
Sets the desired max value.
sourcepub fn with_value(self, value: T) -> Self
pub fn with_value(self, value: T) -> Self
Sets the desired value.
sourcepub fn with_precision(self, precision: usize) -> Self
pub fn with_precision(self, precision: usize) -> Self
Sets the desired precision.
sourcepub fn with_editable(self, editable: bool) -> Self
pub fn with_editable(self, editable: bool) -> Self
Enables or disables editing of the widget.
sourcepub fn with_drag_value_scaling(self, drag_value_scaling: f32) -> Self
pub fn with_drag_value_scaling(self, drag_value_scaling: f32) -> Self
Sets the desired value scaling when dragging. It scales cursor movement value (along Y axis) and multiplies it to get the new value.
sourcepub fn build(self, ctx: &mut BuildContext<'_>) -> Handle<UiNode>
pub fn build(self, ctx: &mut BuildContext<'_>) -> Handle<UiNode>
Finishes NumericUpDown widget creation and adds the new instance to the user interface and returns a handle to it.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for NumericUpDownBuilder<T>
impl<T> !Send for NumericUpDownBuilder<T>
impl<T> !Sync for NumericUpDownBuilder<T>
impl<T> Unpin for NumericUpDownBuilder<T>where T: Unpin,
impl<T> !UnwindSafe for NumericUpDownBuilder<T>
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
source§impl<T> FieldValue for Twhere
T: 'static,
impl<T> FieldValue for Twhere T: 'static,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.