pub struct MaterialTextSelectionHandleControls;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 TextSelectionControls for MaterialTextSelectionHandleControls
impl TextSelectionControls for MaterialTextSelectionHandleControls
Sourceยงfn as_text_selection_handle_controls(
&self,
) -> Option<&dyn TextSelectionHandleControls>
fn as_text_selection_handle_controls( &self, ) -> Option<&dyn TextSelectionHandleControls>
TextSelectionHandleControls when they mix it in: Dartโs
selectionControls is TextSelectionHandleControls. Read moreSourceยงfn get_handle_size(&self, text_line_height: f64) -> Size
fn get_handle_size(&self, text_line_height: f64) -> Size
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
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
Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.
Sourceยงfn build_handle(
&self,
app: &mut App,
context: BuildContext,
handle_type: TextSelectionHandleType,
text_line_height: f64,
on_tap: Option<Listener>,
) -> WidgetRef
fn build_handle( &self, app: &mut App, context: BuildContext, handle_type: TextSelectionHandleType, text_line_height: f64, on_tap: Option<Listener>, ) -> WidgetRef
handle_type. Read moreSourceยงfn get_handle_anchor(
&self,
handle_type: TextSelectionHandleType,
text_line_height: f64,
) -> Offset
fn get_handle_anchor( &self, handle_type: TextSelectionHandleType, text_line_height: f64, ) -> Offset
Sourceยงfn can_cut(&self, app: &App, delegate: AnyTextSelectionDelegate) -> bool
fn can_cut(&self, app: &App, delegate: AnyTextSelectionDelegate) -> bool
Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.
Sourceยงfn can_copy(&self, app: &App, delegate: AnyTextSelectionDelegate) -> bool
fn can_copy(&self, app: &App, delegate: AnyTextSelectionDelegate) -> bool
Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.
Sourceยงfn can_paste(&self, app: &App, delegate: AnyTextSelectionDelegate) -> bool
fn can_paste(&self, app: &App, delegate: AnyTextSelectionDelegate) -> bool
Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.
delegate supports pasting
from the clipboard. Read moreSourceยงfn can_select_all(&self, app: &App, delegate: AnyTextSelectionDelegate) -> bool
fn can_select_all(&self, app: &App, delegate: AnyTextSelectionDelegate) -> bool
Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.
delegate can be extended to include the entire content of the text
field. Read moreSourceยงfn handle_cut(&self, app: &mut App, delegate: AnyTextSelectionDelegate)
fn handle_cut(&self, app: &mut App, delegate: AnyTextSelectionDelegate)
Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.
AnyTextSelectionDelegate::cut_selection to cut current selection. Read moreSourceยงfn handle_copy(&self, app: &mut App, delegate: AnyTextSelectionDelegate)
fn handle_copy(&self, app: &mut App, delegate: AnyTextSelectionDelegate)
Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.
AnyTextSelectionDelegate::copy_selection to copy current selection. Read moreSourceยงfn handle_paste(
&self,
app: &mut App,
delegate: AnyTextSelectionDelegate,
) -> Task<()> โ
fn handle_paste( &self, app: &mut App, delegate: AnyTextSelectionDelegate, ) -> Task<()> โ
Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.
AnyTextSelectionDelegate::paste_text to paste text. Read moreSourceยงfn handle_select_all(&self, app: &mut App, delegate: AnyTextSelectionDelegate)
fn handle_select_all(&self, app: &mut App, delegate: AnyTextSelectionDelegate)
Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.
AnyTextSelectionDelegate::select_all to set the current selection to
contain the entire text value. Read moreSourceยงimpl TextSelectionHandleControls for MaterialTextSelectionHandleControls
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>
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>
Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.
buildToolbar; unused once contextMenuBuilder owns the menu.Sourceยงfn can_cut(&self, app: &App, delegate: AnyTextSelectionDelegate) -> bool
fn can_cut(&self, app: &App, delegate: AnyTextSelectionDelegate) -> bool
Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.
Sourceยงfn can_copy(&self, app: &App, delegate: AnyTextSelectionDelegate) -> bool
fn can_copy(&self, app: &App, delegate: AnyTextSelectionDelegate) -> bool
Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.
Sourceยงfn can_paste(&self, app: &App, delegate: AnyTextSelectionDelegate) -> bool
fn can_paste(&self, app: &App, delegate: AnyTextSelectionDelegate) -> bool
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
fn can_select_all(&self, app: &App, delegate: AnyTextSelectionDelegate) -> bool
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>>,
)
fn handle_cut( &self, app: &mut App, delegate: AnyTextSelectionDelegate, clipboard_status: Option<Handle<ClipboardStatusNotifier>>, )
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>>,
)
fn handle_copy( &self, app: &mut App, delegate: AnyTextSelectionDelegate, clipboard_status: Option<Handle<ClipboardStatusNotifier>>, )
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<()> โ
fn handle_paste( &self, app: &mut App, delegate: AnyTextSelectionDelegate, ) -> Task<()> โ
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)
fn handle_select_all(&self, app: &mut App, delegate: AnyTextSelectionDelegate)
Use contextMenuBuilder instead. This feature was deprecated after v3.3.0-0.5.pre.