pub struct DirectionalFocusIntent {
pub direction: TraversalDirection,
pub ignore_text_fields: bool,
}Expand description
Fields§
§direction: TraversalDirectionThe direction in which to look for the next focusable node when the associated
DirectionalFocusAction is invoked.
ignore_text_fields: boolIf true, then directional focus actions that occur within a text field will not happen when the focus node which received the key is a text field.
Defaults to true.
Implementations§
Source§impl DirectionalFocusIntent
impl DirectionalFocusIntent
Sourcepub fn new(direction: TraversalDirection) -> DirectionalFocusIntent
pub fn new(direction: TraversalDirection) -> DirectionalFocusIntent
Creates an intent used to move the focus in the given direction.
Sourcepub fn ignore_text_fields(
self,
ignore_text_fields: bool,
) -> DirectionalFocusIntent
pub fn ignore_text_fields( self, ignore_text_fields: bool, ) -> DirectionalFocusIntent
Dart DirectionalFocusIntent(ignoreTextFields:).
Trait Implementations§
Source§impl Clone for DirectionalFocusIntent
impl Clone for DirectionalFocusIntent
impl Copy for DirectionalFocusIntent
Source§impl Debug for DirectionalFocusIntent
impl Debug for DirectionalFocusIntent
impl Eq for DirectionalFocusIntent
Source§impl Intent for DirectionalFocusIntent
impl Intent for DirectionalFocusIntent
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
The value behind the erased intent, for the downcast an
Action does to recover its
own intent type.Source§fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
Dart’s
Intent.debugFillProperties, from Diagnosticable: an intent adds its own
fields.Source§fn intent_type(&self) -> TypeId
fn intent_type(&self) -> TypeId
Dart’s
intent.runtimeType: the key an Actions map is looked up with.Source§fn to_string_short(&self) -> String
fn to_string_short(&self) -> String
Dart’s
Intent.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
Intent.toDiagnosticsNode(name:), from Diagnosticable.Source§fn diagnostic_string(&self) -> String
fn diagnostic_string(&self) -> String
Dart’s
Diagnosticable.toString, which a property holding an intent prints.Source§impl PartialEq for DirectionalFocusIntent
impl PartialEq for DirectionalFocusIntent
impl StructuralPartialEq for DirectionalFocusIntent
Auto Trait Implementations§
impl Forget for DirectionalFocusIntent
impl Freeze for DirectionalFocusIntent
impl Move for DirectionalFocusIntent
impl RefUnwindSafe for DirectionalFocusIntent
impl Send for DirectionalFocusIntent
impl Sync for DirectionalFocusIntent
impl Unpin for DirectionalFocusIntent
impl UnsafeUnpin for DirectionalFocusIntent
impl UnwindSafe for DirectionalFocusIntent
Blanket Implementations§
Source§impl<T> ActionIntent for Twhere
T: Intent,
impl<T> ActionIntent for Twhere
T: Intent,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.