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: Key
controller: TextEditingController
focus_node: FocusNode
decoration: InputDecoration
keyboard_type: TextInputType
style: TextStyle
text_align: TextAlign
text_direction: TextDirection
read_only: bool
show_cursor: bool
autofocus: bool
obscuring_character: String
obscure_text: bool
autocorrect: bool
enable_suggestions: bool
max_lines: i32
min_lines: i32
expands: bool
max_length: i32
max_length_enforced: bool
on_changed: Option<ValueChanged<String>>
on_editing_complete: Option<VoidCallback>
on_submitted: Option<ValueChanged<String>>
enabled: bool
cursor_width: f32
cursor_height: f32
cursor_radius: Radius
cursor_color: Color
selection_height_style: BoxHeightStyle
selection_width_style: BoxWidthStyle
keyboard_appearance: Brightness
drag_start_behavior: DragStartBehavior
enable_interactive_selection: bool
mouse_cursor: MouseCursor
autofill_hints: Vec<String>
restoration_id: String
enable_ime_personalized_learning: bool
Trait 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
.