pub trait TextBoxProps: ElementBuilder {
Show 36 methods
// Provided methods
fn is_inactive_selection_highlight_enabled<M>(
self,
value: impl IntoProp<bool, M>,
) -> Self { ... }
fn clear_selection_on_lost_focus<M>(
self,
value: impl IntoProp<bool, M>,
) -> Self { ... }
fn accepts_return<M>(self, value: impl IntoProp<bool, M>) -> Self { ... }
fn accepts_tab<M>(self, value: impl IntoProp<bool, M>) -> Self { ... }
fn caret_index<M>(self, value: impl IntoProp<i32, M>) -> Self { ... }
fn is_read_only<M>(self, value: impl IntoProp<bool, M>) -> Self { ... }
fn password_char<M>(self, value: impl IntoProp<char, M>) -> Self { ... }
fn selection_brush<M>(
self,
value: impl IntoProp<Option<Rc<dyn IBrush>>, M>,
) -> Self { ... }
fn selection_foreground_brush<M>(
self,
value: impl IntoProp<Option<Rc<dyn IBrush>>, M>,
) -> Self { ... }
fn caret_brush<M>(
self,
value: impl IntoProp<Option<Rc<dyn IBrush>>, M>,
) -> Self { ... }
fn caret_blink_interval<M>(self, value: impl IntoProp<TimeSpan, M>) -> Self { ... }
fn selection_start<M>(self, value: impl IntoProp<i32, M>) -> Self { ... }
fn selection_end<M>(self, value: impl IntoProp<i32, M>) -> Self { ... }
fn max_length<M>(self, value: impl IntoProp<i32, M>) -> Self { ... }
fn max_lines<M>(self, value: impl IntoProp<i32, M>) -> Self { ... }
fn min_lines<M>(self, value: impl IntoProp<i32, M>) -> Self { ... }
fn text<M>(self, value: impl IntoProp<Option<String>, M>) -> Self { ... }
fn text_alignment<M>(self, value: impl IntoProp<TextAlignment, M>) -> Self { ... }
fn horizontal_content_alignment<M>(
self,
value: impl IntoProp<HorizontalAlignment, M>,
) -> Self { ... }
fn vertical_content_alignment<M>(
self,
value: impl IntoProp<VerticalAlignment, M>,
) -> Self { ... }
fn text_wrapping<M>(self, value: impl IntoProp<TextWrapping, M>) -> Self { ... }
fn line_height<M>(self, value: impl IntoProp<f64, M>) -> Self { ... }
fn placeholder_text<M>(
self,
value: impl IntoProp<Option<String>, M>,
) -> Self { ... }
fn use_floating_placeholder<M>(self, value: impl IntoProp<bool, M>) -> Self { ... }
fn placeholder_foreground<M>(
self,
value: impl IntoProp<Option<Rc<dyn IBrush>>, M>,
) -> Self { ... }
fn new_line<M>(self, value: impl IntoProp<String, M>) -> Self { ... }
fn inner_left_content<M>(
self,
value: impl IntoProp<Option<BoxedValue>, M>,
) -> Self { ... }
fn inner_right_content<M>(
self,
value: impl IntoProp<Option<BoxedValue>, M>,
) -> Self { ... }
fn reveal_password<M>(self, value: impl IntoProp<bool, M>) -> Self { ... }
fn is_undo_enabled<M>(self, value: impl IntoProp<bool, M>) -> Self { ... }
fn undo_limit<M>(self, value: impl IntoProp<i32, M>) -> Self { ... }
fn on_copying_to_clipboard(
self,
handler: impl Fn(&RoutedEventArgs) + 'static,
) -> Self { ... }
fn on_cutting_to_clipboard(
self,
handler: impl Fn(&RoutedEventArgs) + 'static,
) -> Self { ... }
fn on_pasting_from_clipboard(
self,
handler: impl Fn(&RoutedEventArgs) + 'static,
) -> Self { ... }
fn on_text_changed(
self,
handler: impl Fn(&TextChangedEventArgs) + 'static,
) -> Self { ... }
fn on_text_changing(
self,
handler: impl Fn(&TextChangingEventArgs) + 'static,
) -> Self { ... }
}Expand description
The properties and routed events of TextBox.
Provided Methods§
Sourcefn is_inactive_selection_highlight_enabled<M>(
self,
value: impl IntoProp<bool, M>,
) -> Self
fn is_inactive_selection_highlight_enabled<M>( self, value: impl IntoProp<bool, M>, ) -> Self
Sourcefn clear_selection_on_lost_focus<M>(self, value: impl IntoProp<bool, M>) -> Self
fn clear_selection_on_lost_focus<M>(self, value: impl IntoProp<bool, M>) -> Self
Sourcefn accepts_return<M>(self, value: impl IntoProp<bool, M>) -> Self
fn accepts_return<M>(self, value: impl IntoProp<bool, M>) -> Self
Sourcefn accepts_tab<M>(self, value: impl IntoProp<bool, M>) -> Self
fn accepts_tab<M>(self, value: impl IntoProp<bool, M>) -> Self
Sourcefn caret_index<M>(self, value: impl IntoProp<i32, M>) -> Self
fn caret_index<M>(self, value: impl IntoProp<i32, M>) -> Self
Sourcefn is_read_only<M>(self, value: impl IntoProp<bool, M>) -> Self
fn is_read_only<M>(self, value: impl IntoProp<bool, M>) -> Self
Sourcefn password_char<M>(self, value: impl IntoProp<char, M>) -> Self
fn password_char<M>(self, value: impl IntoProp<char, M>) -> Self
Sourcefn selection_foreground_brush<M>(
self,
value: impl IntoProp<Option<Rc<dyn IBrush>>, M>,
) -> Self
fn selection_foreground_brush<M>( self, value: impl IntoProp<Option<Rc<dyn IBrush>>, M>, ) -> Self
Sourcefn caret_blink_interval<M>(self, value: impl IntoProp<TimeSpan, M>) -> Self
fn caret_blink_interval<M>(self, value: impl IntoProp<TimeSpan, M>) -> Self
Sourcefn selection_start<M>(self, value: impl IntoProp<i32, M>) -> Self
fn selection_start<M>(self, value: impl IntoProp<i32, M>) -> Self
Sourcefn selection_end<M>(self, value: impl IntoProp<i32, M>) -> Self
fn selection_end<M>(self, value: impl IntoProp<i32, M>) -> Self
Sourcefn max_length<M>(self, value: impl IntoProp<i32, M>) -> Self
fn max_length<M>(self, value: impl IntoProp<i32, M>) -> Self
Sourcefn text_alignment<M>(self, value: impl IntoProp<TextAlignment, M>) -> Self
fn text_alignment<M>(self, value: impl IntoProp<TextAlignment, M>) -> Self
Sourcefn horizontal_content_alignment<M>(
self,
value: impl IntoProp<HorizontalAlignment, M>,
) -> Self
fn horizontal_content_alignment<M>( self, value: impl IntoProp<HorizontalAlignment, M>, ) -> Self
Sourcefn vertical_content_alignment<M>(
self,
value: impl IntoProp<VerticalAlignment, M>,
) -> Self
fn vertical_content_alignment<M>( self, value: impl IntoProp<VerticalAlignment, M>, ) -> Self
Sourcefn text_wrapping<M>(self, value: impl IntoProp<TextWrapping, M>) -> Self
fn text_wrapping<M>(self, value: impl IntoProp<TextWrapping, M>) -> Self
Sourcefn line_height<M>(self, value: impl IntoProp<f64, M>) -> Self
fn line_height<M>(self, value: impl IntoProp<f64, M>) -> Self
Sourcefn placeholder_text<M>(self, value: impl IntoProp<Option<String>, M>) -> Self
fn placeholder_text<M>(self, value: impl IntoProp<Option<String>, M>) -> Self
Sourcefn use_floating_placeholder<M>(self, value: impl IntoProp<bool, M>) -> Self
fn use_floating_placeholder<M>(self, value: impl IntoProp<bool, M>) -> Self
Sourcefn placeholder_foreground<M>(
self,
value: impl IntoProp<Option<Rc<dyn IBrush>>, M>,
) -> Self
fn placeholder_foreground<M>( self, value: impl IntoProp<Option<Rc<dyn IBrush>>, M>, ) -> Self
Sourcefn inner_left_content<M>(
self,
value: impl IntoProp<Option<BoxedValue>, M>,
) -> Self
fn inner_left_content<M>( self, value: impl IntoProp<Option<BoxedValue>, M>, ) -> Self
Sourcefn inner_right_content<M>(
self,
value: impl IntoProp<Option<BoxedValue>, M>,
) -> Self
fn inner_right_content<M>( self, value: impl IntoProp<Option<BoxedValue>, M>, ) -> Self
Sourcefn reveal_password<M>(self, value: impl IntoProp<bool, M>) -> Self
fn reveal_password<M>(self, value: impl IntoProp<bool, M>) -> Self
Sourcefn is_undo_enabled<M>(self, value: impl IntoProp<bool, M>) -> Self
fn is_undo_enabled<M>(self, value: impl IntoProp<bool, M>) -> Self
Sourcefn undo_limit<M>(self, value: impl IntoProp<i32, M>) -> Self
fn undo_limit<M>(self, value: impl IntoProp<i32, M>) -> Self
Sourcefn on_copying_to_clipboard(
self,
handler: impl Fn(&RoutedEventArgs) + 'static,
) -> Self
fn on_copying_to_clipboard( self, handler: impl Fn(&RoutedEventArgs) + 'static, ) -> Self
Handles TextBox::copying_to_clipboard_event.
Sourcefn on_cutting_to_clipboard(
self,
handler: impl Fn(&RoutedEventArgs) + 'static,
) -> Self
fn on_cutting_to_clipboard( self, handler: impl Fn(&RoutedEventArgs) + 'static, ) -> Self
Handles TextBox::cutting_to_clipboard_event.
Sourcefn on_pasting_from_clipboard(
self,
handler: impl Fn(&RoutedEventArgs) + 'static,
) -> Self
fn on_pasting_from_clipboard( self, handler: impl Fn(&RoutedEventArgs) + 'static, ) -> Self
Sourcefn on_text_changed(
self,
handler: impl Fn(&TextChangedEventArgs) + 'static,
) -> Self
fn on_text_changed( self, handler: impl Fn(&TextChangedEventArgs) + 'static, ) -> Self
Handles TextBox::text_changed_event.
Sourcefn on_text_changing(
self,
handler: impl Fn(&TextChangingEventArgs) + 'static,
) -> Self
fn on_text_changing( self, handler: impl Fn(&TextChangingEventArgs) + 'static, ) -> Self
Handles TextBox::text_changing_event.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".