pub struct TextSelectionGestureDetector {Show 23 fields
pub key: Option<KeyRef>,
pub on_tap_track_start: Option<Listener>,
pub on_tap_track_reset: Option<Listener>,
pub on_tap_down: Option<GestureTapDragDownCallback>,
pub on_force_press_start: Option<GestureForcePressStartCallback>,
pub on_force_press_end: Option<GestureForcePressEndCallback>,
pub on_secondary_tap: Option<GestureTapCallback>,
pub on_secondary_tap_down: Option<GestureTapDownCallback>,
pub on_single_tap_up: Option<GestureTapDragUpCallback>,
pub on_single_tap_cancel: Option<GestureCancelCallback>,
pub on_user_tap: Option<GestureTapCallback>,
pub on_single_long_tap_start: Option<GestureLongPressStartCallback>,
pub on_single_long_tap_move_update: Option<GestureLongPressMoveUpdateCallback>,
pub on_single_long_tap_end: Option<GestureLongPressEndCallback>,
pub on_single_long_tap_cancel: Option<GestureLongPressCancelCallback>,
pub on_double_tap_down: Option<GestureTapDragDownCallback>,
pub on_triple_tap_down: Option<GestureTapDragDownCallback>,
pub on_drag_selection_start: Option<GestureTapDragStartCallback>,
pub on_drag_selection_update: Option<GestureTapDragUpdateCallback>,
pub on_drag_selection_end: Option<GestureTapDragEndCallback>,
pub on_user_tap_always_called: bool,
pub behavior: Option<HitTestBehavior>,
pub child: WidgetRef,
}Expand description
A gesture detector to respond to non-exclusive event chains for a text field.
Fields§
§key: Option<KeyRef>§on_tap_track_start: Option<Listener>§on_tap_track_reset: Option<Listener>§on_tap_down: Option<GestureTapDragDownCallback>§on_force_press_start: Option<GestureForcePressStartCallback>§on_force_press_end: Option<GestureForcePressEndCallback>§on_secondary_tap: Option<GestureTapCallback>§on_secondary_tap_down: Option<GestureTapDownCallback>§on_single_tap_up: Option<GestureTapDragUpCallback>§on_single_tap_cancel: Option<GestureCancelCallback>§on_user_tap: Option<GestureTapCallback>§on_single_long_tap_start: Option<GestureLongPressStartCallback>§on_single_long_tap_move_update: Option<GestureLongPressMoveUpdateCallback>§on_single_long_tap_end: Option<GestureLongPressEndCallback>§on_single_long_tap_cancel: Option<GestureLongPressCancelCallback>§on_double_tap_down: Option<GestureTapDragDownCallback>§on_triple_tap_down: Option<GestureTapDragDownCallback>§on_drag_selection_start: Option<GestureTapDragStartCallback>§on_drag_selection_update: Option<GestureTapDragUpdateCallback>§on_drag_selection_end: Option<GestureTapDragEndCallback>§on_user_tap_always_called: bool§behavior: Option<HitTestBehavior>§child: WidgetRefImplementations§
Source§impl TextSelectionGestureDetector
impl TextSelectionGestureDetector
Sourcepub fn new<K>(child: impl IntoWidget<K>) -> TextSelectionGestureDetector
pub fn new<K>(child: impl IntoWidget<K>) -> TextSelectionGestureDetector
Create a TextSelectionGestureDetector.
Sourcepub fn key(self, key: KeyRef) -> TextSelectionGestureDetector
pub fn key(self, key: KeyRef) -> TextSelectionGestureDetector
Dart TextSelectionGestureDetector(key:).
Sourcepub fn on_tap_track_start(
self,
callback: Listener,
) -> TextSelectionGestureDetector
pub fn on_tap_track_start( self, callback: Listener, ) -> TextSelectionGestureDetector
Dart TextSelectionGestureDetector(onTapTrackStart:).
Sourcepub fn on_tap_track_reset(
self,
callback: Listener,
) -> TextSelectionGestureDetector
pub fn on_tap_track_reset( self, callback: Listener, ) -> TextSelectionGestureDetector
Dart TextSelectionGestureDetector(onTapTrackReset:).
Sourcepub fn on_tap_down(
self,
callback: GestureTapDragDownCallback,
) -> TextSelectionGestureDetector
pub fn on_tap_down( self, callback: GestureTapDragDownCallback, ) -> TextSelectionGestureDetector
Dart TextSelectionGestureDetector(onTapDown:).
Sourcepub fn on_force_press_start(
self,
callback: GestureForcePressStartCallback,
) -> TextSelectionGestureDetector
pub fn on_force_press_start( self, callback: GestureForcePressStartCallback, ) -> TextSelectionGestureDetector
Dart TextSelectionGestureDetector(onForcePressStart:).
Sourcepub fn on_force_press_end(
self,
callback: GestureForcePressEndCallback,
) -> TextSelectionGestureDetector
pub fn on_force_press_end( self, callback: GestureForcePressEndCallback, ) -> TextSelectionGestureDetector
Dart TextSelectionGestureDetector(onForcePressEnd:).
Sourcepub fn on_secondary_tap(
self,
callback: GestureTapCallback,
) -> TextSelectionGestureDetector
pub fn on_secondary_tap( self, callback: GestureTapCallback, ) -> TextSelectionGestureDetector
Dart TextSelectionGestureDetector(onSecondaryTap:).
Sourcepub fn on_secondary_tap_down(
self,
callback: GestureTapDownCallback,
) -> TextSelectionGestureDetector
pub fn on_secondary_tap_down( self, callback: GestureTapDownCallback, ) -> TextSelectionGestureDetector
Dart TextSelectionGestureDetector(onSecondaryTapDown:).
Sourcepub fn on_single_tap_up(
self,
callback: GestureTapDragUpCallback,
) -> TextSelectionGestureDetector
pub fn on_single_tap_up( self, callback: GestureTapDragUpCallback, ) -> TextSelectionGestureDetector
Dart TextSelectionGestureDetector(onSingleTapUp:).
Sourcepub fn on_single_tap_cancel(
self,
callback: GestureCancelCallback,
) -> TextSelectionGestureDetector
pub fn on_single_tap_cancel( self, callback: GestureCancelCallback, ) -> TextSelectionGestureDetector
Dart TextSelectionGestureDetector(onSingleTapCancel:).
Sourcepub fn on_user_tap(
self,
callback: GestureTapCallback,
) -> TextSelectionGestureDetector
pub fn on_user_tap( self, callback: GestureTapCallback, ) -> TextSelectionGestureDetector
Dart TextSelectionGestureDetector(onUserTap:).
Sourcepub fn on_single_long_tap_start(
self,
callback: GestureLongPressStartCallback,
) -> TextSelectionGestureDetector
pub fn on_single_long_tap_start( self, callback: GestureLongPressStartCallback, ) -> TextSelectionGestureDetector
Dart TextSelectionGestureDetector(onSingleLongTapStart:).
Sourcepub fn on_single_long_tap_move_update(
self,
callback: GestureLongPressMoveUpdateCallback,
) -> TextSelectionGestureDetector
pub fn on_single_long_tap_move_update( self, callback: GestureLongPressMoveUpdateCallback, ) -> TextSelectionGestureDetector
Dart TextSelectionGestureDetector(onSingleLongTapMoveUpdate:).
Sourcepub fn on_single_long_tap_end(
self,
callback: GestureLongPressEndCallback,
) -> TextSelectionGestureDetector
pub fn on_single_long_tap_end( self, callback: GestureLongPressEndCallback, ) -> TextSelectionGestureDetector
Dart TextSelectionGestureDetector(onSingleLongTapEnd:).
Sourcepub fn on_single_long_tap_cancel(
self,
callback: GestureLongPressCancelCallback,
) -> TextSelectionGestureDetector
pub fn on_single_long_tap_cancel( self, callback: GestureLongPressCancelCallback, ) -> TextSelectionGestureDetector
Dart TextSelectionGestureDetector(onSingleLongTapCancel:).
Sourcepub fn on_double_tap_down(
self,
callback: GestureTapDragDownCallback,
) -> TextSelectionGestureDetector
pub fn on_double_tap_down( self, callback: GestureTapDragDownCallback, ) -> TextSelectionGestureDetector
Dart TextSelectionGestureDetector(onDoubleTapDown:).
Sourcepub fn on_triple_tap_down(
self,
callback: GestureTapDragDownCallback,
) -> TextSelectionGestureDetector
pub fn on_triple_tap_down( self, callback: GestureTapDragDownCallback, ) -> TextSelectionGestureDetector
Dart TextSelectionGestureDetector(onTripleTapDown:).
Sourcepub fn on_drag_selection_start(
self,
callback: GestureTapDragStartCallback,
) -> TextSelectionGestureDetector
pub fn on_drag_selection_start( self, callback: GestureTapDragStartCallback, ) -> TextSelectionGestureDetector
Dart TextSelectionGestureDetector(onDragSelectionStart:).
Sourcepub fn on_drag_selection_update(
self,
callback: GestureTapDragUpdateCallback,
) -> TextSelectionGestureDetector
pub fn on_drag_selection_update( self, callback: GestureTapDragUpdateCallback, ) -> TextSelectionGestureDetector
Dart TextSelectionGestureDetector(onDragSelectionUpdate:).
Sourcepub fn on_drag_selection_end(
self,
callback: GestureTapDragEndCallback,
) -> TextSelectionGestureDetector
pub fn on_drag_selection_end( self, callback: GestureTapDragEndCallback, ) -> TextSelectionGestureDetector
Dart TextSelectionGestureDetector(onDragSelectionEnd:).
Sourcepub fn on_user_tap_always_called(
self,
value: bool,
) -> TextSelectionGestureDetector
pub fn on_user_tap_always_called( self, value: bool, ) -> TextSelectionGestureDetector
Dart TextSelectionGestureDetector(onUserTapAlwaysCalled:).
Sourcepub fn behavior(self, behavior: HitTestBehavior) -> TextSelectionGestureDetector
pub fn behavior(self, behavior: HitTestBehavior) -> TextSelectionGestureDetector
Dart TextSelectionGestureDetector(behavior:).
Trait Implementations§
Source§impl Clone for TextSelectionGestureDetector
impl Clone for TextSelectionGestureDetector
Source§impl Debug for TextSelectionGestureDetector
impl Debug for TextSelectionGestureDetector
Source§impl StatefulWidget for TextSelectionGestureDetector
impl StatefulWidget for TextSelectionGestureDetector
Source§type State = TextSelectionGestureDetectorState
type State = TextSelectionGestureDetectorState
Source§fn create_state(&self) -> TextSelectionGestureDetectorState
fn create_state(&self) -> TextSelectionGestureDetectorState
Source§fn debug_fill_properties(
&self,
_app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( &self, _app: &App, properties: &mut DiagnosticPropertiesBuilder, )
debugFillProperties: the properties a dump shows for this widget, in Dart’s
order. Dart’s Widget base only sets the dense tree style, which the framework does.Source§fn as_preferred_size_widget(&self) -> Option<&dyn PreferredSizeWidget>
fn as_preferred_size_widget(&self) -> Option<&dyn PreferredSizeWidget>
Source§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
Widget::type_name. A stateful form another widget kind becomes (an animated or
status transition widget) names the widget it wraps.Auto Trait Implementations§
impl !RefUnwindSafe for TextSelectionGestureDetector
impl !Send for TextSelectionGestureDetector
impl !Sync for TextSelectionGestureDetector
impl !UnwindSafe for TextSelectionGestureDetector
impl Forget for TextSelectionGestureDetector
impl Freeze for TextSelectionGestureDetectorwhere
*const RcInner<dyn Key> is !null: Freeze,
PhantomData<RcInner<dyn Key>>: Freeze,
*const RcInner<dyn Fn(&mut App)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App)>>: Freeze,
NonZero<u32>: Freeze,
*const (): Freeze,
*const RcInner<dyn Fn(&mut App, TapDragDownDetails)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, TapDragDownDetails)>>: Freeze,
*const RcInner<dyn Fn(&mut App, ForcePressDetails)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, ForcePressDetails)>>: Freeze,
*const RcInner<dyn Fn(&mut App, TapDownDetails)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, TapDownDetails)>>: Freeze,
*const RcInner<dyn Fn(&mut App, TapDragUpDetails)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, TapDragUpDetails)>>: Freeze,
*const RcInner<dyn Fn(&mut App, LongPressStartDetails)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, LongPressStartDetails)>>: Freeze,
*const RcInner<dyn Fn(&mut App, LongPressMoveUpdateDetails)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, LongPressMoveUpdateDetails)>>: Freeze,
*const RcInner<dyn Fn(&mut App, LongPressEndDetails)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, LongPressEndDetails)>>: Freeze,
*const RcInner<dyn Fn(&mut App, TapDragStartDetails)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, TapDragStartDetails)>>: Freeze,
*const RcInner<dyn Fn(&mut App, TapDragUpdateDetails)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, TapDragUpdateDetails)>>: Freeze,
*const RcInner<dyn Fn(&mut App, TapDragEndDetails)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, TapDragEndDetails)>>: Freeze,
*const RcInner<dyn Widget> is !null: Freeze,
PhantomData<RcInner<dyn Widget>>: Freeze,
impl Move for TextSelectionGestureDetector
impl Unpin for TextSelectionGestureDetectorwhere
Rc<dyn Key>: Unpin,
Rc<dyn Fn(&mut App)>: Unpin,
NonZero<u32>: Unpin,
*const (): Unpin,
Rc<dyn Fn(&mut App, TapDragDownDetails)>: Unpin,
Rc<dyn Fn(&mut App, ForcePressDetails)>: Unpin,
Rc<dyn Fn(&mut App, TapDownDetails)>: Unpin,
Rc<dyn Fn(&mut App, TapDragUpDetails)>: Unpin,
Rc<dyn Fn(&mut App, LongPressStartDetails)>: Unpin,
Rc<dyn Fn(&mut App, LongPressMoveUpdateDetails)>: Unpin,
Rc<dyn Fn(&mut App, LongPressEndDetails)>: Unpin,
Rc<dyn Fn(&mut App, TapDragStartDetails)>: Unpin,
Rc<dyn Fn(&mut App, TapDragUpdateDetails)>: Unpin,
Rc<dyn Fn(&mut App, TapDragEndDetails)>: Unpin,
Rc<dyn Widget>: Unpin,
impl UnsafeUnpin for TextSelectionGestureDetectorwhere
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App)>>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
*const (): UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, TapDragDownDetails)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, TapDragDownDetails)>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, ForcePressDetails)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, ForcePressDetails)>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, TapDownDetails)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, TapDownDetails)>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, TapDragUpDetails)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, TapDragUpDetails)>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, LongPressStartDetails)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, LongPressStartDetails)>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, LongPressMoveUpdateDetails)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, LongPressMoveUpdateDetails)>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, LongPressEndDetails)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, LongPressEndDetails)>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, TapDragStartDetails)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, TapDragStartDetails)>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, TapDragUpdateDetails)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, TapDragUpdateDetails)>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, TapDragEndDetails)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, TapDragEndDetails)>>: UnsafeUnpin,
*const RcInner<dyn Widget> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Widget>>: UnsafeUnpin,
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<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<W> IntoWidget<StatefulKind> for Wwhere
W: StatefulWidget,
impl<W> IntoWidget<StatefulKind> for Wwhere
W: StatefulWidget,
Source§fn into_widget(self) -> Rc<dyn Widget>
fn into_widget(self) -> Rc<dyn Widget>
creation_location.