Skip to main content

TextSelectionGestureDetector

Struct TextSelectionGestureDetector 

Source
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: WidgetRef

Implementations§

Source§

impl TextSelectionGestureDetector

Source

pub fn new<K>(child: impl IntoWidget<K>) -> TextSelectionGestureDetector

Source

pub fn key(self, key: KeyRef) -> TextSelectionGestureDetector

Dart TextSelectionGestureDetector(key:).

Source

pub fn on_tap_track_start( self, callback: Listener, ) -> TextSelectionGestureDetector

Dart TextSelectionGestureDetector(onTapTrackStart:).

Source

pub fn on_tap_track_reset( self, callback: Listener, ) -> TextSelectionGestureDetector

Dart TextSelectionGestureDetector(onTapTrackReset:).

Source

pub fn on_tap_down( self, callback: GestureTapDragDownCallback, ) -> TextSelectionGestureDetector

Dart TextSelectionGestureDetector(onTapDown:).

Source

pub fn on_force_press_start( self, callback: GestureForcePressStartCallback, ) -> TextSelectionGestureDetector

Dart TextSelectionGestureDetector(onForcePressStart:).

Source

pub fn on_force_press_end( self, callback: GestureForcePressEndCallback, ) -> TextSelectionGestureDetector

Dart TextSelectionGestureDetector(onForcePressEnd:).

Source

pub fn on_secondary_tap( self, callback: GestureTapCallback, ) -> TextSelectionGestureDetector

Dart TextSelectionGestureDetector(onSecondaryTap:).

Source

pub fn on_secondary_tap_down( self, callback: GestureTapDownCallback, ) -> TextSelectionGestureDetector

Dart TextSelectionGestureDetector(onSecondaryTapDown:).

Source

pub fn on_single_tap_up( self, callback: GestureTapDragUpCallback, ) -> TextSelectionGestureDetector

Dart TextSelectionGestureDetector(onSingleTapUp:).

Source

pub fn on_single_tap_cancel( self, callback: GestureCancelCallback, ) -> TextSelectionGestureDetector

Dart TextSelectionGestureDetector(onSingleTapCancel:).

Source

pub fn on_user_tap( self, callback: GestureTapCallback, ) -> TextSelectionGestureDetector

Dart TextSelectionGestureDetector(onUserTap:).

Source

pub fn on_single_long_tap_start( self, callback: GestureLongPressStartCallback, ) -> TextSelectionGestureDetector

Dart TextSelectionGestureDetector(onSingleLongTapStart:).

Source

pub fn on_single_long_tap_move_update( self, callback: GestureLongPressMoveUpdateCallback, ) -> TextSelectionGestureDetector

Dart TextSelectionGestureDetector(onSingleLongTapMoveUpdate:).

Source

pub fn on_single_long_tap_end( self, callback: GestureLongPressEndCallback, ) -> TextSelectionGestureDetector

Dart TextSelectionGestureDetector(onSingleLongTapEnd:).

Source

pub fn on_single_long_tap_cancel( self, callback: GestureLongPressCancelCallback, ) -> TextSelectionGestureDetector

Dart TextSelectionGestureDetector(onSingleLongTapCancel:).

Source

pub fn on_double_tap_down( self, callback: GestureTapDragDownCallback, ) -> TextSelectionGestureDetector

Dart TextSelectionGestureDetector(onDoubleTapDown:).

Source

pub fn on_triple_tap_down( self, callback: GestureTapDragDownCallback, ) -> TextSelectionGestureDetector

Dart TextSelectionGestureDetector(onTripleTapDown:).

Source

pub fn on_drag_selection_start( self, callback: GestureTapDragStartCallback, ) -> TextSelectionGestureDetector

Dart TextSelectionGestureDetector(onDragSelectionStart:).

Source

pub fn on_drag_selection_update( self, callback: GestureTapDragUpdateCallback, ) -> TextSelectionGestureDetector

Dart TextSelectionGestureDetector(onDragSelectionUpdate:).

Source

pub fn on_drag_selection_end( self, callback: GestureTapDragEndCallback, ) -> TextSelectionGestureDetector

Dart TextSelectionGestureDetector(onDragSelectionEnd:).

Source

pub fn on_user_tap_always_called( self, value: bool, ) -> TextSelectionGestureDetector

Dart TextSelectionGestureDetector(onUserTapAlwaysCalled:).

Source

pub fn behavior(self, behavior: HitTestBehavior) -> TextSelectionGestureDetector

Dart TextSelectionGestureDetector(behavior:).

Trait Implementations§

Source§

impl Clone for TextSelectionGestureDetector

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TextSelectionGestureDetector

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl StatefulWidget for TextSelectionGestureDetector

Source§

type State = TextSelectionGestureDetectorState

The state this widget creates.
Source§

fn key(&self) -> Option<&KeyRef>

Source§

fn create_state(&self) -> TextSelectionGestureDetectorState

Creates the mutable state for this widget at a given location in the tree. Read more
Source§

fn debug_fill_properties( &self, _app: &App, properties: &mut DiagnosticPropertiesBuilder, )

Dart’s 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 debug_check_constructor(&self)

Source§

fn as_preferred_size_widget(&self) -> Option<&dyn PreferredSizeWidget>

Source§

fn type_name(&self) -> &'static str

See 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 TextSelectionGestureDetector
where *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 TextSelectionGestureDetector

§

impl UnsafeUnpin for TextSelectionGestureDetector
where *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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<W> IntoWidget<StatefulKind> for W
where W: StatefulWidget,

Source§

fn into_widget(self) -> Rc<dyn Widget>

The widget as a tree node, made where this is called: its creation_location.
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>