pub struct RequestFocusIntent {
pub request_focus_callback: TraversalRequestFocusCallback,
pub focus_node: FocusNodeRef,
}Expand description
An intent for use with the RequestFocusAction, which supplies the FocusNode that should
be focused.
Fields§
§request_focus_callback: TraversalRequestFocusCallbackThe callback used to move the focus to the node focus_node. By
default it requests focus on the node.
focus_node: FocusNodeRefThe FocusNode that is to be focused.
Implementations§
Source§impl RequestFocusIntent
impl RequestFocusIntent
Sourcepub fn new(focus_node: FocusNodeRef) -> RequestFocusIntent
pub fn new(focus_node: FocusNodeRef) -> RequestFocusIntent
Creates an intent used with RequestFocusAction.
Sourcepub fn request_focus_callback(
self,
request_focus_callback: TraversalRequestFocusCallback,
) -> RequestFocusIntent
pub fn request_focus_callback( self, request_focus_callback: TraversalRequestFocusCallback, ) -> RequestFocusIntent
Dart RequestFocusIntent(requestFocusCallback:).
Trait Implementations§
Source§impl Debug for RequestFocusIntent
impl Debug for RequestFocusIntent
Source§impl Intent for RequestFocusIntent
impl Intent for RequestFocusIntent
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 intent_type(&self) -> TypeId
fn intent_type(&self) -> TypeId
Dart’s
intent.runtimeType: the key an Actions map is looked up with.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 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.Auto Trait Implementations§
impl !RefUnwindSafe for RequestFocusIntent
impl !Send for RequestFocusIntent
impl !Sync for RequestFocusIntent
impl !UnwindSafe for RequestFocusIntent
impl Forget for RequestFocusIntent
impl Freeze for RequestFocusIntentwhere
*const RcInner<dyn Fn(&mut App, AnyFocusNode, Option<ScrollPositionAlignmentPolicy>, Option<f64>, Option<Duration>, Option<Rc<dyn Curve>>)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, AnyFocusNode, Option<ScrollPositionAlignmentPolicy>, Option<f64>, Option<Duration>, Option<Rc<dyn Curve>>)>>: Freeze,
NonZero<u32>: Freeze,
&'static FocusNodeVTable: Freeze,
*const RcInner<Keep> is !null: Freeze,
PhantomData<RcInner<Keep>>: Freeze,
impl Move for RequestFocusIntent
impl Unpin for RequestFocusIntent
impl UnsafeUnpin for RequestFocusIntentwhere
*const RcInner<dyn Fn(&mut App, AnyFocusNode, Option<ScrollPositionAlignmentPolicy>, Option<f64>, Option<Duration>, Option<Rc<dyn Curve>>)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, AnyFocusNode, Option<ScrollPositionAlignmentPolicy>, Option<f64>, Option<Duration>, Option<Rc<dyn Curve>>)>>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
&'static FocusNodeVTable: UnsafeUnpin,
*const RcInner<Keep> is !null: UnsafeUnpin,
PhantomData<RcInner<Keep>>: UnsafeUnpin,
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