Skip to main content

EditableText

Struct EditableText 

Source
pub struct EditableText {
Show 76 fields pub key: Option<KeyRef>, pub controller: TextEditingControllerRef, pub focus_node: FocusNodeRef, pub read_only: bool, pub obscuring_character: String, pub obscure_text: bool, pub autocorrect: Option<bool>, pub smart_dashes_type: Option<SmartDashesType>, pub smart_quotes_type: Option<SmartQuotesType>, pub enable_suggestions: bool, pub style: TextStyle, pub cursor_color: Color, pub background_cursor_color: Color, pub text_align: TextAlign, pub text_direction: Option<TextDirection>, pub locale: Option<Locale>, pub text_scale_factor: Option<f64>, pub text_scaler: Option<TextScaler>, pub max_lines: Option<i32>, pub min_lines: Option<i32>, pub expands: bool, pub force_line: bool, pub text_height_behavior: Option<TextHeightBehavior>, pub text_width_basis: TextWidthBasis, pub autofocus: bool, pub show_cursor: Option<bool>, pub show_selection_handles: bool, pub selection_color: Option<Color>, pub selection_controls: Option<Rc<dyn TextSelectionControls>>, pub keyboard_type: Option<TextInputType>, pub text_input_action: Option<TextInputAction>, pub text_capitalization: TextCapitalization, pub on_changed: Option<Rc<dyn Fn(&mut App, String)>>, pub on_editing_complete: Option<Rc<dyn Fn(&mut App)>>, pub on_submitted: Option<Rc<dyn Fn(&mut App, String)>>, pub on_app_private_command: Option<AppPrivateCommandCallback>, pub on_selection_changed: Option<SelectionChangedCallback>, pub on_selection_handle_tapped: Option<Listener>, pub group_id: TypeId, pub on_tap_outside: Option<Rc<dyn Fn(&mut App, PointerDownEvent)>>, pub on_tap_up_outside: Option<Rc<dyn Fn(&mut App, PointerUpEvent)>>, pub input_formatters: Option<Vec<TextInputFormatterRef>>, pub mouse_cursor: Option<MouseCursorRef>, pub renderer_ignores_pointer: bool, pub cursor_width: f64, pub cursor_height: Option<f64>, pub cursor_radius: Option<Radius>, pub cursor_opacity_animates: bool, pub cursor_offset: Option<Offset>, pub paint_cursor_above_text: bool, pub selection_height_style: BoxHeightStyle, pub selection_width_style: BoxWidthStyle, pub scroll_padding: EdgeInsets, pub keyboard_appearance: Brightness, pub drag_start_behavior: DragStartBehavior, pub enable_interactive_selection: Option<bool>, pub select_all_on_focus: Option<bool>, pub scroll_controller: Option<ScrollControllerRef>, pub scroll_physics: Option<ScrollPhysicsRef>, pub autocorrection_text_rect_color: Option<Color>, pub toolbar_options: Option<ToolbarOptions>, pub autofill_hints: Vec<String>, pub autofill_client: Option<AnyAutofillClient>, pub clip_behavior: Clip, pub restoration_id: Option<String>, pub scroll_behavior: Option<ScrollBehaviorRef>, pub scribble_enabled: bool, pub stylus_handwriting_enabled: bool, pub enable_ime_personalized_learning: bool, pub content_insertion_configuration: Option<ContentInsertionConfiguration>, pub context_menu_builder: Option<EditableTextContextMenuBuilder>, pub spell_check_configuration: Option<SpellCheckConfiguration>, pub magnifier_configuration: TextMagnifierConfiguration, pub undo_controller: Option<Ref<UndoHistoryController>>, pub hint_locales: Option<Vec<Locale>>, pub enable_inline_prediction: Option<bool>, /* private fields */
}
Expand description

A basic text input field.

This is the raw editing widget: it draws and edits text but takes no pointer gestures itself, so taps, drags and the selection menu come from a field’s gesture detector around it. Use a text field such as Material’s TextField or WinUI’s TextBox for the gestures.

Fields§

§key: Option<KeyRef>§controller: TextEditingControllerRef

Controls the text being edited.

§focus_node: FocusNodeRef

Controls whether this widget has keyboard focus.

§read_only: bool§obscuring_character: String§obscure_text: bool§autocorrect: Option<bool>§smart_dashes_type: Option<SmartDashesType>§smart_quotes_type: Option<SmartQuotesType>§enable_suggestions: bool§style: TextStyle§cursor_color: Color§background_cursor_color: Color§text_align: TextAlign§text_direction: Option<TextDirection>§locale: Option<Locale>§text_scale_factor: Option<f64>§text_scaler: Option<TextScaler>§max_lines: Option<i32>§min_lines: Option<i32>§expands: bool§force_line: bool§text_height_behavior: Option<TextHeightBehavior>§text_width_basis: TextWidthBasis§autofocus: bool§show_cursor: Option<bool>§show_selection_handles: bool§selection_color: Option<Color>§selection_controls: Option<Rc<dyn TextSelectionControls>>§keyboard_type: Option<TextInputType>§text_input_action: Option<TextInputAction>§text_capitalization: TextCapitalization§on_changed: Option<Rc<dyn Fn(&mut App, String)>>§on_editing_complete: Option<Rc<dyn Fn(&mut App)>>§on_submitted: Option<Rc<dyn Fn(&mut App, String)>>§on_app_private_command: Option<AppPrivateCommandCallback>§on_selection_changed: Option<SelectionChangedCallback>§on_selection_handle_tapped: Option<Listener>§group_id: TypeId§on_tap_outside: Option<Rc<dyn Fn(&mut App, PointerDownEvent)>>§on_tap_up_outside: Option<Rc<dyn Fn(&mut App, PointerUpEvent)>>§input_formatters: Option<Vec<TextInputFormatterRef>>§mouse_cursor: Option<MouseCursorRef>§renderer_ignores_pointer: bool§cursor_width: f64§cursor_height: Option<f64>§cursor_radius: Option<Radius>§cursor_opacity_animates: bool§cursor_offset: Option<Offset>§paint_cursor_above_text: bool§selection_height_style: BoxHeightStyle§selection_width_style: BoxWidthStyle§scroll_padding: EdgeInsets§keyboard_appearance: Brightness§drag_start_behavior: DragStartBehavior§enable_interactive_selection: Option<bool>§select_all_on_focus: Option<bool>§scroll_controller: Option<ScrollControllerRef>§scroll_physics: Option<ScrollPhysicsRef>§autocorrection_text_rect_color: Option<Color>§toolbar_options: Option<ToolbarOptions>§autofill_hints: Vec<String>§autofill_client: Option<AnyAutofillClient>§clip_behavior: Clip§restoration_id: Option<String>§scroll_behavior: Option<ScrollBehaviorRef>§scribble_enabled: bool§stylus_handwriting_enabled: bool§enable_ime_personalized_learning: bool§content_insertion_configuration: Option<ContentInsertionConfiguration>§context_menu_builder: Option<EditableTextContextMenuBuilder>§spell_check_configuration: Option<SpellCheckConfiguration>§magnifier_configuration: TextMagnifierConfiguration§undo_controller: Option<Ref<UndoHistoryController>>§hint_locales: Option<Vec<Locale>>§enable_inline_prediction: Option<bool>

Implementations§

Source§

impl EditableText

Source

pub const DEFAULT_STYLUS_HANDWRITING_ENABLED: bool = true

The default value for stylus_handwriting_enabled.

Source

pub fn default_selection_height_style() -> BoxHeightStyle

The default value for selection_height_style.

Source

pub fn default_selection_width_style() -> BoxWidthStyle

The default value for selection_width_style.

Source

pub fn debug_deterministic_cursor(app: &App) -> bool

Whether the blinking cursor should be drawn as always-on for tests: Dart’s static EditableText.debugDeterministicCursor, kept on the App (see App::debug_flag).

Source

pub fn set_debug_deterministic_cursor(app: &mut App, value: bool)

Dart’s EditableText.debugDeterministicCursor setter, for this app.

Source

pub fn new( controller: TextEditingControllerRef, focus_node: FocusNodeRef, style: TextStyle, cursor_color: Color, background_cursor_color: Color, ) -> EditableText

Creates a basic text input field.

Source

pub fn effective_strut_style(&self) -> StrutStyle

Dart EditableText.strutStyle: the strut this editable lays its lines out with.

With no explicit strut, one is derived from style with StrutStyle::force_strut_height set; an explicit one inherits its unset values from the style.

Source

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

Dart EditableText(key:).

Source

pub fn read_only(self, read_only: bool) -> Self

Dart EditableText(readOnly:).

Source

pub fn obscuring_character(self, obscuring_character: impl Into<String>) -> Self

Dart EditableText(obscuringCharacter:).

Source

pub fn obscure_text(self, obscure_text: bool) -> Self

Dart EditableText(obscureText:).

Source

pub fn autocorrect(self, autocorrect: bool) -> Self

Dart EditableText(autocorrect:).

Source

pub fn smart_dashes_type(self, smart_dashes_type: SmartDashesType) -> Self

Dart EditableText(smartDashesType:).

Source

pub fn smart_quotes_type(self, smart_quotes_type: SmartQuotesType) -> Self

Dart EditableText(smartQuotesType:).

Source

pub fn enable_suggestions(self, enable_suggestions: bool) -> Self

Dart EditableText(enableSuggestions:).

Source

pub fn strut_style(self, strut_style: StrutStyle) -> Self

Dart EditableText(strutStyle:).

Source

pub fn text_align(self, text_align: TextAlign) -> Self

Dart EditableText(textAlign:).

Source

pub fn text_direction(self, text_direction: TextDirection) -> Self

Dart EditableText(textDirection:).

Source

pub fn locale(self, locale: Locale) -> Self

Dart EditableText(locale:).

Source

pub fn text_scale_factor(self, text_scale_factor: f64) -> Self

Dart EditableText(textScaleFactor:).

Source

pub fn text_scaler(self, text_scaler: TextScaler) -> Self

Dart EditableText(textScaler:).

Source

pub fn max_lines(self, max_lines: Option<i32>) -> Self

Dart EditableText(maxLines:).

Source

pub fn min_lines(self, min_lines: i32) -> Self

Dart EditableText(minLines:).

Source

pub fn expands(self, expands: bool) -> Self

Dart EditableText(expands:).

Source

pub fn force_line(self, force_line: bool) -> Self

Dart EditableText(forceLine:).

Source

pub fn text_height_behavior( self, text_height_behavior: TextHeightBehavior, ) -> Self

Dart EditableText(textHeightBehavior:).

Source

pub fn text_width_basis(self, text_width_basis: TextWidthBasis) -> Self

Dart EditableText(textWidthBasis:).

Source

pub fn autofocus(self, autofocus: bool) -> Self

Dart EditableText(autofocus:).

Source

pub fn show_cursor(self, show_cursor: bool) -> Self

Dart EditableText(showCursor:).

Source

pub fn show_selection_handles(self, show_selection_handles: bool) -> Self

Dart EditableText(showSelectionHandles:).

Source

pub fn selection_color(self, selection_color: Color) -> Self

Dart EditableText(selectionColor:).

Source

pub fn selection_controls( self, selection_controls: Rc<dyn TextSelectionControls>, ) -> Self

Dart EditableText(selectionControls:).

Source

pub fn keyboard_type(self, keyboard_type: TextInputType) -> Self

Dart EditableText(keyboardType:).

Source

pub fn text_input_action(self, text_input_action: TextInputAction) -> Self

Dart EditableText(textInputAction:).

Source

pub fn text_capitalization( self, text_capitalization: TextCapitalization, ) -> Self

Dart EditableText(textCapitalization:).

Source

pub fn on_changed(self, on_changed: impl Fn(&mut App, String) + 'static) -> Self

Dart EditableText(onChanged:).

Source

pub fn on_editing_complete( self, on_editing_complete: impl Fn(&mut App) + 'static, ) -> Self

Dart EditableText(onEditingComplete:).

Source

pub fn on_submitted( self, on_submitted: impl Fn(&mut App, String) + 'static, ) -> Self

Dart EditableText(onSubmitted:).

Source

pub fn on_app_private_command( self, on_app_private_command: impl Fn(&mut App, &str) + 'static, ) -> Self

Dart EditableText(onAppPrivateCommand:).

Source

pub fn on_selection_changed( self, on_selection_changed: impl Fn(&mut App, TextSelection, Option<SelectionChangedCause>) + 'static, ) -> Self

Dart EditableText(onSelectionChanged:).

Source

pub fn on_selection_handle_tapped( self, on_selection_handle_tapped: Listener, ) -> Self

Dart EditableText(onSelectionHandleTapped:).

Source

pub fn group_id(self, group_id: TypeId) -> Self

Dart EditableText(groupId:).

Source

pub fn on_tap_outside( self, on_tap_outside: impl Fn(&mut App, PointerDownEvent) + 'static, ) -> Self

Dart EditableText(onTapOutside:).

Source

pub fn on_tap_up_outside( self, on_tap_up_outside: impl Fn(&mut App, PointerUpEvent) + 'static, ) -> Self

Dart EditableText(onTapUpOutside:).

Source

pub fn input_formatters( self, input_formatters: Vec<TextInputFormatterRef>, ) -> Self

Dart EditableText(inputFormatters:).

Source

pub fn mouse_cursor(self, mouse_cursor: MouseCursorRef) -> Self

Dart EditableText(mouseCursor:).

Source

pub fn renderer_ignores_pointer(self, renderer_ignores_pointer: bool) -> Self

Dart EditableText(rendererIgnoresPointer:).

Source

pub fn cursor_width(self, cursor_width: f64) -> Self

Dart EditableText(cursorWidth:).

Source

pub fn cursor_height(self, cursor_height: f64) -> Self

Dart EditableText(cursorHeight:).

Source

pub fn cursor_radius(self, cursor_radius: Radius) -> Self

Dart EditableText(cursorRadius:).

Source

pub fn cursor_opacity_animates(self, cursor_opacity_animates: bool) -> Self

Dart EditableText(cursorOpacityAnimates:).

Source

pub fn cursor_offset(self, cursor_offset: Offset) -> Self

Dart EditableText(cursorOffset:).

Source

pub fn paint_cursor_above_text(self, paint_cursor_above_text: bool) -> Self

Dart EditableText(paintCursorAboveText:).

Source

pub fn selection_height_style( self, selection_height_style: BoxHeightStyle, ) -> Self

Dart EditableText(selectionHeightStyle:).

Source

pub fn selection_width_style(self, selection_width_style: BoxWidthStyle) -> Self

Dart EditableText(selectionWidthStyle:).

Source

pub fn scroll_padding(self, scroll_padding: EdgeInsets) -> Self

Dart EditableText(scrollPadding:).

Source

pub fn keyboard_appearance(self, keyboard_appearance: Brightness) -> Self

Dart EditableText(keyboardAppearance:).

Source

pub fn drag_start_behavior(self, drag_start_behavior: DragStartBehavior) -> Self

Dart EditableText(dragStartBehavior:).

Source

pub fn enable_interactive_selection( self, enable_interactive_selection: bool, ) -> Self

Dart EditableText(enableInteractiveSelection:).

Source

pub fn select_all_on_focus(self, select_all_on_focus: bool) -> Self

Dart EditableText(selectAllOnFocus:).

Source

pub fn scroll_controller(self, scroll_controller: ScrollControllerRef) -> Self

Dart EditableText(scrollController:).

Source

pub fn scroll_physics(self, scroll_physics: ScrollPhysicsRef) -> Self

Dart EditableText(scrollPhysics:).

Source

pub fn autocorrection_text_rect_color( self, autocorrection_text_rect_color: Color, ) -> Self

Dart EditableText(autocorrectionTextRectColor:).

Source

pub fn toolbar_options(self, toolbar_options: ToolbarOptions) -> Self

Dart EditableText(toolbarOptions:).

Source

pub fn autofill_hints(self, autofill_hints: Vec<String>) -> Self

Dart EditableText(autofillHints:).

Source

pub fn autofill_client(self, autofill_client: AnyAutofillClient) -> Self

Dart EditableText(autofillClient:).

Source

pub fn clip_behavior(self, clip_behavior: Clip) -> Self

Dart EditableText(clipBehavior:).

Source

pub fn restoration_id(self, restoration_id: impl Into<String>) -> Self

Dart EditableText(restorationId:).

Source

pub fn scroll_behavior(self, scroll_behavior: ScrollBehaviorRef) -> Self

Dart EditableText(scrollBehavior:).

Source

pub fn scribble_enabled(self, scribble_enabled: bool) -> Self

Dart EditableText(scribbleEnabled:).

Source

pub fn stylus_handwriting_enabled( self, stylus_handwriting_enabled: bool, ) -> Self

Dart EditableText(stylusHandwritingEnabled:).

Source

pub fn enable_ime_personalized_learning( self, enable_ime_personalized_learning: bool, ) -> Self

Dart EditableText(enableIMEPersonalizedLearning:).

Source

pub fn content_insertion_configuration( self, content_insertion_configuration: ContentInsertionConfiguration, ) -> Self

Dart EditableText(contentInsertionConfiguration:).

Source

pub fn context_menu_builder( self, context_menu_builder: EditableTextContextMenuBuilder, ) -> Self

Dart EditableText(contextMenuBuilder:).

Source

pub fn spell_check_configuration( self, spell_check_configuration: SpellCheckConfiguration, ) -> Self

Dart EditableText(spellCheckConfiguration:).

Source

pub fn magnifier_configuration( self, magnifier_configuration: TextMagnifierConfiguration, ) -> Self

Dart EditableText(magnifierConfiguration:).

Source

pub fn undo_controller( self, undo_controller: Ref<UndoHistoryController>, ) -> Self

Dart EditableText(undoController:).

Source

pub fn hint_locales(self, hint_locales: Vec<Locale>) -> Self

Dart EditableText(hintLocales:).

Source

pub fn enable_inline_prediction(self, enable_inline_prediction: bool) -> Self

Dart EditableText(enableInlinePrediction:).

Source

pub fn get_editable_button_items( clipboard_status: Option<ClipboardStatus>, on_copy: Option<Listener>, on_cut: Option<Listener>, on_paste: Option<Listener>, on_select_all: Option<Listener>, on_look_up: Option<Listener>, on_search_web: Option<Listener>, on_share: Option<Listener>, on_live_text_input: Option<Listener>, target_platform: TargetPlatform, ) -> Vec<ContextMenuButtonItem>

Returns the ContextMenuButtonItems representing the buttons in this platform’s default selection menu by default.

Source

pub fn effective_autocorrect(&self, app: &App) -> bool

Dart’s autocorrect field, as its constructor fills it.

Source

pub fn effective_smart_dashes_type(&self) -> SmartDashesType

Dart’s smartDashesType field, as its constructor fills it.

Source

pub fn effective_smart_quotes_type(&self) -> SmartQuotesType

Dart’s smartQuotesType field, as its constructor fills it.

Source

pub fn effective_enable_interactive_selection(&self) -> bool

Dart’s enableInteractiveSelection field, as its constructor fills it.

Source

pub fn effective_select_all_on_focus(&self, app: &App) -> bool

Dart’s selectAllOnFocus field, as its constructor fills it.

Source

pub fn effective_toolbar_options(&self) -> ToolbarOptions

Dart’s toolbarOptions field, as its constructor fills it.

Source

pub fn effective_keyboard_type(&self, app: &App) -> TextInputType

Dart’s keyboardType field, as its constructor fills it.

Source

pub fn effective_input_formatters(&self) -> Vec<TextInputFormatterRef>

Dart’s inputFormatters field, as its constructor fills it.

Source

pub fn effective_show_cursor(&self) -> bool

Dart’s showCursor field, as its constructor fills it.

Trait Implementations§

Source§

impl Debug for EditableText

Source§

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

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

impl StatefulWidget for EditableText

Source§

type State = EditableTextState

The state this widget creates.
Source§

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

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 create_state(&self) -> EditableTextState

Creates the mutable state for this widget at a given location in the tree. Read more
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 EditableText

§

impl !Send for EditableText

§

impl !Sync for EditableText

§

impl !UnwindSafe for EditableText

§

impl Forget for EditableText

§

impl Freeze for EditableText
where *const RcInner<dyn Key> is !null: Freeze, PhantomData<RcInner<dyn Key>>: Freeze, NonZero<u32>: Freeze, &'static TextEditingControllerVTable: Freeze, *const RcInner<Keep> is !null: Freeze, PhantomData<RcInner<Keep>>: Freeze, &'static FocusNodeVTable: Freeze, *const u8 is !null: Freeze, PhantomData<u8>: Freeze, &'static dyn ColorExtension: Freeze, *const RcInner<dyn ColorExtension> is !null: Freeze, PhantomData<RcInner<dyn ColorExtension>>: Freeze, PhantomData<String>: Freeze, *const RcInner<Paint> is !null: Freeze, PhantomData<RcInner<Paint>>: Freeze, PhantomData<Shadow>: Freeze, PhantomData<FontFeature>: Freeze, PhantomData<FontVariation>: Freeze, *const TextScaler is !null: Freeze, PhantomData<TextScaler>: Freeze, *const RcInner<dyn TextSelectionControls> is !null: Freeze, PhantomData<RcInner<dyn TextSelectionControls>>: Freeze, *const RcInner<dyn Fn(&mut App, String)> is !null: Freeze, PhantomData<RcInner<dyn Fn(&mut App, String)>>: Freeze, *const RcInner<dyn Fn(&mut App)> is !null: Freeze, PhantomData<RcInner<dyn Fn(&mut App)>>: Freeze, *const RcInner<dyn Fn(&mut App, &str)> is !null: Freeze, PhantomData<RcInner<dyn Fn(&mut App, &str)>>: Freeze, *const RcInner<dyn Fn(&mut App, TextSelection, Option<SelectionChangedCause>)> is !null: Freeze, PhantomData<RcInner<dyn Fn(&mut App, TextSelection, Option<SelectionChangedCause>)>>: Freeze, *const (): Freeze, *const RcInner<dyn Fn(&mut App, PointerDownEvent)> is !null: Freeze, PhantomData<RcInner<dyn Fn(&mut App, PointerDownEvent)>>: Freeze, *const RcInner<dyn Fn(&mut App, PointerUpEvent)> is !null: Freeze, PhantomData<RcInner<dyn Fn(&mut App, PointerUpEvent)>>: Freeze, PhantomData<TextInputFormatterRef>: Freeze, *const RcInner<dyn MouseCursor> is !null: Freeze, PhantomData<RcInner<dyn MouseCursor>>: Freeze, &'static ScrollControllerVTable: Freeze, *const RcInner<dyn ScrollPhysics> is !null: Freeze, PhantomData<RcInner<dyn ScrollPhysics>>: Freeze, &'static AutofillClientVTable: Freeze, *const RcInner<dyn ScrollBehavior> is !null: Freeze, PhantomData<RcInner<dyn ScrollBehavior>>: Freeze, *const RcInner<dyn Fn(&mut App, KeyboardInsertedContent)> is !null: Freeze, PhantomData<RcInner<dyn Fn(&mut App, KeyboardInsertedContent)>>: Freeze, *const RcInner<dyn Fn(&mut App, AnyElement, Handle<EditableTextState>) -> Rc<dyn Widget>> is !null: Freeze, PhantomData<RcInner<dyn Fn(&mut App, AnyElement, Handle<EditableTextState>) -> Rc<dyn Widget>>>: Freeze, *const RcInner<dyn SpellCheckService> is !null: Freeze, PhantomData<RcInner<dyn SpellCheckService>>: Freeze, *const RcInner<dyn Fn(&mut App, AnyElement, Retained<Handle<MagnifierController>>, Retained<Handle<ValueNotifier<MagnifierInfo>>>) -> Option<Rc<dyn Widget>>> is !null: Freeze, PhantomData<RcInner<dyn Fn(&mut App, AnyElement, Retained<Handle<MagnifierController>>, Retained<Handle<ValueNotifier<MagnifierInfo>>>) -> Option<Rc<dyn Widget>>>>: Freeze, PhantomData<fn() -> UndoHistoryController>: Freeze, PhantomData<Locale>: Freeze,

§

impl Move for EditableText

§

impl Unpin for EditableText
where Rc<dyn Key>: Unpin, NonZero<u32>: Unpin, &'static TextEditingControllerVTable: Unpin, Rc<Keep>: Unpin, &'static FocusNodeVTable: Unpin, *const u8 is !null: Unpin, &'static dyn ColorExtension: Unpin, Rc<dyn ColorExtension>: Unpin, Rc<Paint>: Unpin, Box<TextScaler>: Unpin, Rc<dyn TextSelectionControls>: Unpin, Rc<dyn Fn(&mut App, String)>: Unpin, Rc<dyn Fn(&mut App)>: Unpin, Rc<dyn Fn(&mut App, &str)>: Unpin, Rc<dyn Fn(&mut App, TextSelection, Option<SelectionChangedCause>)>: Unpin, *const (): Unpin, Rc<dyn Fn(&mut App, PointerDownEvent)>: Unpin, Rc<dyn Fn(&mut App, PointerUpEvent)>: Unpin, Rc<dyn TextInputFormatter>: Unpin, Rc<dyn MouseCursor>: Unpin, &'static ScrollControllerVTable: Unpin, Rc<dyn ScrollPhysics>: Unpin, &'static AutofillClientVTable: Unpin, Rc<dyn ScrollBehavior>: Unpin, Rc<dyn Fn(&mut App, KeyboardInsertedContent)>: Unpin, Rc<dyn Fn(&mut App, AnyElement, Handle<EditableTextState>) -> Rc<dyn Widget>>: Unpin, Rc<dyn SpellCheckService>: Unpin, Rc<dyn Fn(&mut App, AnyElement, Retained<Handle<MagnifierController>>, Retained<Handle<ValueNotifier<MagnifierInfo>>>) -> Option<Rc<dyn Widget>>>: Unpin,

§

impl UnsafeUnpin for EditableText
where *const RcInner<dyn Key> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Key>>: UnsafeUnpin, NonZeroU32Inner: UnsafeUnpin, &'static TextEditingControllerVTable: UnsafeUnpin, *const RcInner<Keep> is !null: UnsafeUnpin, PhantomData<RcInner<Keep>>: UnsafeUnpin, &'static FocusNodeVTable: UnsafeUnpin, *const u8 is !null: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, &'static dyn ColorExtension: UnsafeUnpin, *const RcInner<dyn ColorExtension> is !null: UnsafeUnpin, PhantomData<RcInner<dyn ColorExtension>>: UnsafeUnpin, PhantomData<String>: UnsafeUnpin, *const RcInner<Paint> is !null: UnsafeUnpin, PhantomData<RcInner<Paint>>: UnsafeUnpin, PhantomData<Shadow>: UnsafeUnpin, PhantomData<FontFeature>: UnsafeUnpin, PhantomData<FontVariation>: UnsafeUnpin, *const TextScaler is !null: UnsafeUnpin, PhantomData<TextScaler>: UnsafeUnpin, *const RcInner<dyn TextSelectionControls> is !null: UnsafeUnpin, PhantomData<RcInner<dyn TextSelectionControls>>: UnsafeUnpin, *const RcInner<dyn Fn(&mut App, String)> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Fn(&mut App, String)>>: UnsafeUnpin, *const RcInner<dyn Fn(&mut App)> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Fn(&mut App)>>: UnsafeUnpin, *const RcInner<dyn Fn(&mut App, &str)> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Fn(&mut App, &str)>>: UnsafeUnpin, *const RcInner<dyn Fn(&mut App, TextSelection, Option<SelectionChangedCause>)> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Fn(&mut App, TextSelection, Option<SelectionChangedCause>)>>: UnsafeUnpin, *const (): UnsafeUnpin, *const RcInner<dyn Fn(&mut App, PointerDownEvent)> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Fn(&mut App, PointerDownEvent)>>: UnsafeUnpin, *const RcInner<dyn Fn(&mut App, PointerUpEvent)> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Fn(&mut App, PointerUpEvent)>>: UnsafeUnpin, PhantomData<TextInputFormatterRef>: UnsafeUnpin, *const RcInner<dyn MouseCursor> is !null: UnsafeUnpin, PhantomData<RcInner<dyn MouseCursor>>: UnsafeUnpin, &'static ScrollControllerVTable: UnsafeUnpin, *const RcInner<dyn ScrollPhysics> is !null: UnsafeUnpin, PhantomData<RcInner<dyn ScrollPhysics>>: UnsafeUnpin, &'static AutofillClientVTable: UnsafeUnpin, *const RcInner<dyn ScrollBehavior> is !null: UnsafeUnpin, PhantomData<RcInner<dyn ScrollBehavior>>: UnsafeUnpin, *const RcInner<dyn Fn(&mut App, KeyboardInsertedContent)> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Fn(&mut App, KeyboardInsertedContent)>>: UnsafeUnpin, *const RcInner<dyn Fn(&mut App, AnyElement, Handle<EditableTextState>) -> Rc<dyn Widget>> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Fn(&mut App, AnyElement, Handle<EditableTextState>) -> Rc<dyn Widget>>>: UnsafeUnpin, *const RcInner<dyn SpellCheckService> is !null: UnsafeUnpin, PhantomData<RcInner<dyn SpellCheckService>>: UnsafeUnpin, *const RcInner<dyn Fn(&mut App, AnyElement, Retained<Handle<MagnifierController>>, Retained<Handle<ValueNotifier<MagnifierInfo>>>) -> Option<Rc<dyn Widget>>> is !null: UnsafeUnpin, PhantomData<RcInner<dyn Fn(&mut App, AnyElement, Retained<Handle<MagnifierController>>, Retained<Handle<ValueNotifier<MagnifierInfo>>>) -> Option<Rc<dyn Widget>>>>: UnsafeUnpin, PhantomData<fn() -> UndoHistoryController>: UnsafeUnpin, PhantomData<Locale>: 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> 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, 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>