TextBoxProps
trait · ferroui-view · v0.5.0
trait TextBoxProps: ElementBuilder
The properties and routed events of TextBox.
Members
is_inactive_selection_highlight_enabledclear_selection_on_lost_focusaccepts_returnaccepts_tabcaret_indexis_read_onlypassword_charselection_brushselection_foreground_brushcaret_brushcaret_blink_intervalselection_startselection_endmax_lengthmax_linesmin_linestexttext_alignmenthorizontal_content_alignmentvertical_content_alignmenttext_wrappingline_heightplaceholder_textuse_floating_placeholderplaceholder_foregroundnew_lineinner_left_contentinner_right_contentreveal_passwordis_undo_enabledundo_limiton_copying_to_clipboardon_cutting_to_clipboardon_pasting_from_clipboardon_text_changedon_text_changing
is_inactive_selection_highlight_enabled
fn is_inactive_selection_highlight_enabled<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
Sets TextBox::is_inactive_selection_highlight_enabled_property.
clear_selection_on_lost_focus
fn clear_selection_on_lost_focus<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
Sets TextBox::clear_selection_on_lost_focus_property.
accepts_return
fn accepts_return<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
Sets TextBox::accepts_return_property.
accepts_tab
fn accepts_tab<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
Sets TextBox::accepts_tab_property.
caret_index
fn caret_index<M>(self: Self, value: impl IntoProp<i32, M>) -> Self
Sets TextBox::caret_index_property.
is_read_only
fn is_read_only<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
Sets TextBox::is_read_only_property.
password_char
fn password_char<M>(self: Self, value: impl IntoProp<char, M>) -> Self
Sets TextBox::password_char_property.
selection_brush
fn selection_brush<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
Sets TextBox::selection_brush_property.
selection_foreground_brush
fn selection_foreground_brush<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
Sets TextBox::selection_foreground_brush_property.
caret_brush
fn caret_brush<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
Sets TextBox::caret_brush_property.
caret_blink_interval
fn caret_blink_interval<M>(self: Self, value: impl IntoProp<std::time::Duration, M>) -> Self
Sets TextBox::caret_blink_interval_property.
selection_start
fn selection_start<M>(self: Self, value: impl IntoProp<i32, M>) -> Self
Sets TextBox::selection_start_property.
selection_end
fn selection_end<M>(self: Self, value: impl IntoProp<i32, M>) -> Self
Sets TextBox::selection_end_property.
max_length
fn max_length<M>(self: Self, value: impl IntoProp<i32, M>) -> Self
Sets TextBox::max_length_property.
max_lines
fn max_lines<M>(self: Self, value: impl IntoProp<i32, M>) -> Self
Sets TextBox::max_lines_property.
min_lines
fn min_lines<M>(self: Self, value: impl IntoProp<i32, M>) -> Self
Sets TextBox::min_lines_property.
text
fn text<M>(self: Self, value: impl IntoProp<Option<String>, M>) -> Self
Sets TextBox::text_property.
text_alignment
fn text_alignment<M>(self: Self, value: impl IntoProp<ferroui_base::media::TextAlignment, M>) -> Self
Sets TextBox::text_alignment_property.
horizontal_content_alignment
fn horizontal_content_alignment<M>(self: Self, value: impl IntoProp<ferroui_base::layout::HorizontalAlignment, M>) -> Self
Sets TextBox::horizontal_content_alignment_property.
vertical_content_alignment
fn vertical_content_alignment<M>(self: Self, value: impl IntoProp<ferroui_base::layout::VerticalAlignment, M>) -> Self
Sets TextBox::vertical_content_alignment_property.
text_wrapping
fn text_wrapping<M>(self: Self, value: impl IntoProp<ferroui_base::media::TextWrapping, M>) -> Self
Sets TextBox::text_wrapping_property.
line_height
fn line_height<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
Sets TextBox::line_height_property.
placeholder_text
fn placeholder_text<M>(self: Self, value: impl IntoProp<Option<String>, M>) -> Self
Sets TextBox::placeholder_text_property.
use_floating_placeholder
fn use_floating_placeholder<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
Sets TextBox::use_floating_placeholder_property.
placeholder_foreground
fn placeholder_foreground<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
Sets TextBox::placeholder_foreground_property.
new_line
fn new_line<M>(self: Self, value: impl IntoProp<String, M>) -> Self
Sets TextBox::new_line_property.
inner_left_content
fn inner_left_content<M>(self: Self, value: impl IntoProp<Option<ferroui_base::BoxedValue>, M>) -> Self
Sets TextBox::inner_left_content_property.
inner_right_content
fn inner_right_content<M>(self: Self, value: impl IntoProp<Option<ferroui_base::BoxedValue>, M>) -> Self
Sets TextBox::inner_right_content_property.
reveal_password
fn reveal_password<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
Sets TextBox::reveal_password_property.
is_undo_enabled
fn is_undo_enabled<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
Sets TextBox::is_undo_enabled_property.
undo_limit
fn undo_limit<M>(self: Self, value: impl IntoProp<i32, M>) -> Self
Sets TextBox::undo_limit_property.
on_copying_to_clipboard
fn on_copying_to_clipboard(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
Handles TextBox::copying_to_clipboard_event.
on_cutting_to_clipboard
fn on_cutting_to_clipboard(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
Handles TextBox::cutting_to_clipboard_event.
on_pasting_from_clipboard
fn on_pasting_from_clipboard(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
Handles TextBox::pasting_from_clipboard_event.
on_text_changed
fn on_text_changed(self: Self, handler: impl Fn(&ferroui_controls::TextChangedEventArgs) -> () + 'static) -> Self
Handles TextBox::text_changed_event.
on_text_changing
fn on_text_changing(self: Self, handler: impl Fn(&ferroui_controls::TextChangingEventArgs) -> () + 'static) -> Self
Handles TextBox::text_changing_event.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.