pub struct NumericFocusOrder {
pub order: f64,
}Expand description
Can be given to a FocusTraversalOrder widget to assign a numerical order to a widget
subtree that is using an OrderedTraversalPolicy to define the order in which widgets
should be traversed with the keyboard.
Dart’s FocusOrder.numeric.
Fields§
§order: f64The numerical order to assign to the widget subtree using FocusTraversalOrder.
Determines the placement of this widget in a sequence of widgets that defines the order in which this node is traversed by the focus policy.
Lower values will be traversed first.
Implementations§
Source§impl NumericFocusOrder
impl NumericFocusOrder
Sourcepub fn new(order: f64) -> NumericFocusOrder
pub fn new(order: f64) -> NumericFocusOrder
Creates an object that describes a focus traversal order numerically.
Trait Implementations§
Source§impl Clone for NumericFocusOrder
impl Clone for NumericFocusOrder
impl Copy for NumericFocusOrder
Source§impl Debug for NumericFocusOrder
impl Debug for NumericFocusOrder
Source§impl FocusOrder for NumericFocusOrder
impl FocusOrder for NumericFocusOrder
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
The value behind the erased order, for the downcast
do_compare
does.Source§fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
Dart’s
FocusOrder.debugFillProperties, from Diagnosticable: a subclass adds its own.Source§fn do_compare(&self, other: &dyn FocusOrder) -> Ordering
fn do_compare(&self, other: &dyn FocusOrder) -> Ordering
The implementation called by
compare_to to compare orders. Read moreSource§fn to_string_short(&self) -> String
fn to_string_short(&self) -> String
Dart’s
FocusOrder.toStringShort: the type and the identity.Source§fn diagnostics_node(&self, name: Option<String>) -> DiagnosticableNode
fn diagnostics_node(&self, name: Option<String>) -> DiagnosticableNode
Dart’s
FocusOrder.toDiagnosticsNode(name:), from Diagnosticable.Source§fn diagnostic_string(&self) -> String
fn diagnostic_string(&self) -> String
Dart’s
Diagnosticable.toString, which a property holding an order prints.Source§fn compare_to(&self, other: &dyn FocusOrder) -> Ordering
fn compare_to(&self, other: &dyn FocusOrder) -> Ordering
Compares this object to another
FocusOrder. Read moreSource§impl PartialEq for NumericFocusOrder
impl PartialEq for NumericFocusOrder
impl StructuralPartialEq for NumericFocusOrder
Auto Trait Implementations§
impl Forget for NumericFocusOrder
impl Freeze for NumericFocusOrder
impl Move for NumericFocusOrder
impl RefUnwindSafe for NumericFocusOrder
impl Send for NumericFocusOrder
impl Sync for NumericFocusOrder
impl Unpin for NumericFocusOrder
impl UnsafeUnpin for NumericFocusOrder
impl UnwindSafe for NumericFocusOrder
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