Enum fyrox_ui::numeric::NumericUpDownMessage
source · pub enum NumericUpDownMessage<T: NumericType> {
Value(T),
MinValue(T),
MaxValue(T),
Step(T),
Precision(usize),
}
Expand description
A set of messages that can be used to modify NumericUpDown
widget state (with MessageDirection::ToWidget
, or to
fetch changes from it (with MessageDirection::FromWidget
).
Variants§
Value(T)
Used to set new value of the NumericUpDown
widget (with MessageDirection::ToWidget
direction). Also emitted by the widget
automatically when the new value is set (with MessageDirection::FromWidget
).
MinValue(T)
Used to set min value of the NumericUpDown
widget (with MessageDirection::ToWidget
direction). Also emitted by the widget
automatically when the new min value is set (with MessageDirection::FromWidget
).
MaxValue(T)
Used to set max value of the NumericUpDown
widget (with MessageDirection::ToWidget
direction). Also emitted by the widget
automatically when the new max value is set (with MessageDirection::FromWidget
).
Step(T)
Used to set new step of the NumericUpDown
widget (with MessageDirection::ToWidget
direction). Also emitted by the widget
automatically when the new step is set (with MessageDirection::FromWidget
).
Precision(usize)
Used to set new precision of the NumericUpDown
widget (with MessageDirection::ToWidget
direction). Also emitted by the widget
automatically when the new precision is set (with MessageDirection::FromWidget
).
Implementations§
source§impl<T: NumericType> NumericUpDownMessage<T>
impl<T: NumericType> NumericUpDownMessage<T>
sourcepub fn value(
destination: Handle<UiNode>,
direction: MessageDirection,
value: T
) -> UiMessage
pub fn value( destination: Handle<UiNode>, direction: MessageDirection, value: T ) -> UiMessage
Creates NumericUpDownMessage::Value
message.
sourcepub fn min_value(
destination: Handle<UiNode>,
direction: MessageDirection,
value: T
) -> UiMessage
pub fn min_value( destination: Handle<UiNode>, direction: MessageDirection, value: T ) -> UiMessage
Creates NumericUpDownMessage::MinValue
message.
sourcepub fn max_value(
destination: Handle<UiNode>,
direction: MessageDirection,
value: T
) -> UiMessage
pub fn max_value( destination: Handle<UiNode>, direction: MessageDirection, value: T ) -> UiMessage
Creates NumericUpDownMessage::MaxValue
message.
sourcepub fn step(
destination: Handle<UiNode>,
direction: MessageDirection,
value: T
) -> UiMessage
pub fn step( destination: Handle<UiNode>, direction: MessageDirection, value: T ) -> UiMessage
Creates NumericUpDownMessage::Step
message.
sourcepub fn precision(
destination: Handle<UiNode>,
direction: MessageDirection,
precision: usize
) -> UiMessage
pub fn precision( destination: Handle<UiNode>, direction: MessageDirection, precision: usize ) -> UiMessage
Creates NumericUpDownMessage::Precision
message.
Trait Implementations§
source§impl<T: Clone + NumericType> Clone for NumericUpDownMessage<T>
impl<T: Clone + NumericType> Clone for NumericUpDownMessage<T>
source§fn clone(&self) -> NumericUpDownMessage<T>
fn clone(&self) -> NumericUpDownMessage<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<T: Debug + NumericType> Debug for NumericUpDownMessage<T>
impl<T: Debug + NumericType> Debug for NumericUpDownMessage<T>
source§impl<T: PartialEq + NumericType> PartialEq<NumericUpDownMessage<T>> for NumericUpDownMessage<T>
impl<T: PartialEq + NumericType> PartialEq<NumericUpDownMessage<T>> for NumericUpDownMessage<T>
source§fn eq(&self, other: &NumericUpDownMessage<T>) -> bool
fn eq(&self, other: &NumericUpDownMessage<T>) -> bool
self
and other
values to be equal, and is used
by ==
.impl<T: Eq + NumericType> Eq for NumericUpDownMessage<T>
impl<T: NumericType> StructuralEq for NumericUpDownMessage<T>
impl<T: NumericType> StructuralPartialEq for NumericUpDownMessage<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for NumericUpDownMessage<T>where T: RefUnwindSafe,
impl<T> Send for NumericUpDownMessage<T>
impl<T> Sync for NumericUpDownMessage<T>
impl<T> Unpin for NumericUpDownMessage<T>where T: Unpin,
impl<T> UnwindSafe for NumericUpDownMessage<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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
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>
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.