Struct components::material::TextField
source · [−]pub struct TextField {Show 37 fields
pub key: Key,
pub controller: TextEditingController,
pub focus_node: FocusNode,
pub decoration: InputDecoration,
pub keyboard_type: TextInputType,
pub style: TextStyle,
pub text_align: TextAlign,
pub text_direction: TextDirection,
pub read_only: bool,
pub show_cursor: bool,
pub autofocus: bool,
pub obscuring_character: String,
pub obscure_text: bool,
pub autocorrect: bool,
pub enable_suggestions: bool,
pub max_lines: i32,
pub min_lines: i32,
pub expands: bool,
pub max_length: i32,
pub max_length_enforced: bool,
pub on_changed: Option<ValueChanged<String>>,
pub on_editing_complete: Option<VoidCallback>,
pub on_submitted: Option<ValueChanged<String>>,
pub enabled: bool,
pub cursor_width: f32,
pub cursor_height: f32,
pub cursor_radius: Radius,
pub cursor_color: Color,
pub selection_height_style: BoxHeightStyle,
pub selection_width_style: BoxWidthStyle,
pub keyboard_appearance: Brightness,
pub drag_start_behavior: DragStartBehavior,
pub enable_interactive_selection: bool,
pub mouse_cursor: MouseCursor,
pub autofill_hints: Vec<String>,
pub restoration_id: String,
pub enable_ime_personalized_learning: bool,
}Fields
key: Keycontroller: TextEditingControllerfocus_node: FocusNodedecoration: InputDecorationkeyboard_type: TextInputTypestyle: TextStyletext_align: TextAligntext_direction: TextDirectionread_only: boolshow_cursor: boolautofocus: boolobscuring_character: Stringobscure_text: boolautocorrect: boolenable_suggestions: boolmax_lines: i32min_lines: i32expands: boolmax_length: i32max_length_enforced: boolon_changed: Option<ValueChanged<String>>on_editing_complete: Option<VoidCallback>on_submitted: Option<ValueChanged<String>>enabled: boolcursor_width: f32cursor_height: f32cursor_radius: Radiuscursor_color: Colorselection_height_style: BoxHeightStyleselection_width_style: BoxWidthStylekeyboard_appearance: Brightnessdrag_start_behavior: DragStartBehaviorenable_interactive_selection: boolmouse_cursor: MouseCursorautofill_hints: Vec<String>restoration_id: Stringenable_ime_personalized_learning: boolTrait Implementations
sourceimpl WidgetProperties for TextField
impl WidgetProperties for TextField
sourcefn mouse_input(&self) -> bool
fn mouse_input(&self) -> bool
Whether or not the control responds to mouse input
sourcefn renderable(&self) -> bool
fn renderable(&self) -> bool
Whether or not the control emits render signals from the canvas render call
sourcefn internal_visible(&self) -> bool
fn internal_visible(&self) -> bool
Internal. Internal parent visibility for creating sub controls.
Auto Trait Implementations
impl !RefUnwindSafe for TextField
impl !Send for TextField
impl !Sync for TextField
impl Unpin for TextField
impl !UnwindSafe for TextField
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value as a parameter of self.