Skip to main content

MaterialTextSelectionHandleControls

Struct MaterialTextSelectionHandleControls 

Source
pub struct MaterialTextSelectionHandleControls;
๐Ÿ‘ŽDeprecated:

Use MaterialTextSelectionControls. This feature was deprecated after v3.3.0-0.5.pre.

Expand description

Android Material styled text selection handle controls.

Specifically does not manage the toolbar, which is left to EditableText.contextMenuBuilder.

Trait Implementationsยง

Sourceยง

impl Debug for MaterialTextSelectionHandleControls

Sourceยง

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

Formats the value using the given formatter. Read more
Sourceยง

impl Default for MaterialTextSelectionHandleControls

Sourceยง

fn default() -> Self

Returns the โ€œdefault valueโ€ for a type. Read more
Sourceยง

impl TextSelectionControls for MaterialTextSelectionHandleControls

Sourceยง

fn as_text_selection_handle_controls( &self, ) -> Option<&dyn TextSelectionHandleControls>

These controls as TextSelectionHandleControls when they mix it in: Dartโ€™s selectionControls is TextSelectionHandleControls. Read more
Sourceยง

fn get_handle_size(&self, text_line_height: f64) -> Size

Returns the size of the selection handle.
Sourceยง

fn build_toolbar( &self, app: &mut App, context: BuildContext, global_editable_region: Rect, text_line_height: f64, selection_midpoint: Offset, endpoints: &[TextSelectionPoint], delegate: AnyTextSelectionDelegate, clipboard_status: Option<Ref<ClipboardStatusNotifier>>, last_secondary_tap_down_position: Option<Offset>, ) -> WidgetRef

๐Ÿ‘ŽDeprecated:

Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.

Builds a toolbar near a text selection. Read more
Sourceยง

fn build_handle( &self, app: &mut App, context: BuildContext, handle_type: TextSelectionHandleType, text_line_height: f64, on_tap: Option<Listener>, ) -> WidgetRef

Builds a selection handle of the given handle_type. Read more
Sourceยง

fn get_handle_anchor( &self, handle_type: TextSelectionHandleType, text_line_height: f64, ) -> Offset

Get the anchor point of the handle relative to itself. The anchor point is the point that is aligned with a specific point in the text. A handle often visually โ€œpoints toโ€ that location.
Sourceยง

fn can_cut(&self, app: &App, delegate: AnyTextSelectionDelegate) -> bool

๐Ÿ‘ŽDeprecated:

Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.

Whether the current selection of the text field managed by the given delegate can be removed from the text field and placed into the Clipboard. Read more
Sourceยง

fn can_copy(&self, app: &App, delegate: AnyTextSelectionDelegate) -> bool

๐Ÿ‘ŽDeprecated:

Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.

Whether the current selection of the text field managed by the given delegate can be copied to the Clipboard. Read more
Sourceยง

fn can_paste(&self, app: &App, delegate: AnyTextSelectionDelegate) -> bool

๐Ÿ‘ŽDeprecated:

Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.

Whether the text field managed by the given delegate supports pasting from the clipboard. Read more
Sourceยง

fn can_select_all(&self, app: &App, delegate: AnyTextSelectionDelegate) -> bool

๐Ÿ‘ŽDeprecated:

Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.

Whether the current selection of the text field managed by the given delegate can be extended to include the entire content of the text field. Read more
Sourceยง

fn handle_cut(&self, app: &mut App, delegate: AnyTextSelectionDelegate)

๐Ÿ‘ŽDeprecated:

Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.

Call AnyTextSelectionDelegate::cut_selection to cut current selection. Read more
Sourceยง

fn handle_copy(&self, app: &mut App, delegate: AnyTextSelectionDelegate)

๐Ÿ‘ŽDeprecated:

Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.

Call AnyTextSelectionDelegate::copy_selection to copy current selection. Read more
Sourceยง

fn handle_paste( &self, app: &mut App, delegate: AnyTextSelectionDelegate, ) -> Task<()> โ“˜

๐Ÿ‘ŽDeprecated:

Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.

Sourceยง

fn handle_select_all(&self, app: &mut App, delegate: AnyTextSelectionDelegate)

๐Ÿ‘ŽDeprecated:

Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.

Call AnyTextSelectionDelegate::select_all to set the current selection to contain the entire text value. Read more
Sourceยง

impl TextSelectionHandleControls for MaterialTextSelectionHandleControls

Sourceยง

fn build_toolbar( &self, app: &mut App, context: AnyElement, global_editable_region: Rect, text_line_height: f64, selection_midpoint: Offset, endpoints: &[TextSelectionPoint], delegate: AnyTextSelectionDelegate, clipboard_status: Option<Retained<Handle<ClipboardStatusNotifier>>>, last_secondary_tap_down_position: Option<Offset>, ) -> Rc<dyn Widget>

๐Ÿ‘ŽDeprecated:

Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.

Dartโ€™s mixin buildToolbar; unused once contextMenuBuilder owns the menu.
Sourceยง

fn can_cut(&self, app: &App, delegate: AnyTextSelectionDelegate) -> bool

๐Ÿ‘ŽDeprecated:

Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.

Sourceยง

fn can_copy(&self, app: &App, delegate: AnyTextSelectionDelegate) -> bool

๐Ÿ‘ŽDeprecated:

Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.

Sourceยง

fn can_paste(&self, app: &App, delegate: AnyTextSelectionDelegate) -> bool

๐Ÿ‘ŽDeprecated:

Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.

Sourceยง

fn can_select_all(&self, app: &App, delegate: AnyTextSelectionDelegate) -> bool

๐Ÿ‘ŽDeprecated:

Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.

Sourceยง

fn handle_cut( &self, app: &mut App, delegate: AnyTextSelectionDelegate, clipboard_status: Option<Handle<ClipboardStatusNotifier>>, )

๐Ÿ‘ŽDeprecated:

Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.

Sourceยง

fn handle_copy( &self, app: &mut App, delegate: AnyTextSelectionDelegate, clipboard_status: Option<Handle<ClipboardStatusNotifier>>, )

๐Ÿ‘ŽDeprecated:

Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.

Sourceยง

fn handle_paste( &self, app: &mut App, delegate: AnyTextSelectionDelegate, ) -> Task<()> โ“˜

๐Ÿ‘ŽDeprecated:

Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.

Sourceยง

fn handle_select_all(&self, app: &mut App, delegate: AnyTextSelectionDelegate)

๐Ÿ‘ŽDeprecated:

Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.

Auto Trait Implementationsยง

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> Downcast<T> for 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<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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ยง

impl<T> WasmNotSend for T
where T: Send,

Sourceยง

impl<T> WasmNotSendSync for T

Sourceยง

impl<T> WasmNotSync for T
where T: Sync,