Skip to main content

TextBoxProps

Trait TextBoxProps 

Source
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§

Source

fn is_inactive_selection_highlight_enabled<M>( self, value: impl IntoProp<bool, M>, ) -> Self

Source

fn clear_selection_on_lost_focus<M>(self, value: impl IntoProp<bool, M>) -> Self

Source

fn accepts_return<M>(self, value: impl IntoProp<bool, M>) -> Self

Source

fn accepts_tab<M>(self, value: impl IntoProp<bool, M>) -> Self

Source

fn caret_index<M>(self, value: impl IntoProp<i32, M>) -> Self

Source

fn is_read_only<M>(self, value: impl IntoProp<bool, M>) -> Self

Source

fn password_char<M>(self, value: impl IntoProp<char, M>) -> Self

Source

fn selection_brush<M>( self, value: impl IntoProp<Option<Rc<dyn IBrush>>, M>, ) -> Self

Source

fn selection_foreground_brush<M>( self, value: impl IntoProp<Option<Rc<dyn IBrush>>, M>, ) -> Self

Source

fn caret_brush<M>(self, value: impl IntoProp<Option<Rc<dyn IBrush>>, M>) -> Self

Source

fn selection_start<M>(self, value: impl IntoProp<i32, M>) -> Self

Source

fn selection_end<M>(self, value: impl IntoProp<i32, M>) -> Self

Source

fn max_length<M>(self, value: impl IntoProp<i32, M>) -> Self

Source

fn max_lines<M>(self, value: impl IntoProp<i32, M>) -> Self

Source

fn min_lines<M>(self, value: impl IntoProp<i32, M>) -> Self

Source

fn text<M>(self, value: impl IntoProp<Option<String>, M>) -> Self

Source

fn text_alignment<M>(self, value: impl IntoProp<TextAlignment, M>) -> Self

Source

fn horizontal_content_alignment<M>( self, value: impl IntoProp<HorizontalAlignment, M>, ) -> Self

Source

fn vertical_content_alignment<M>( self, value: impl IntoProp<VerticalAlignment, M>, ) -> Self

Source

fn text_wrapping<M>(self, value: impl IntoProp<TextWrapping, M>) -> Self

Source

fn line_height<M>(self, value: impl IntoProp<f64, M>) -> Self

Source

fn placeholder_text<M>(self, value: impl IntoProp<Option<String>, M>) -> Self

Source

fn use_floating_placeholder<M>(self, value: impl IntoProp<bool, M>) -> Self

Source

fn placeholder_foreground<M>( self, value: impl IntoProp<Option<Rc<dyn IBrush>>, M>, ) -> Self

Source

fn new_line<M>(self, value: impl IntoProp<String, M>) -> Self

Source

fn inner_left_content<M>( self, value: impl IntoProp<Option<BoxedValue>, M>, ) -> Self

Source

fn inner_right_content<M>( self, value: impl IntoProp<Option<BoxedValue>, M>, ) -> Self

Source

fn reveal_password<M>(self, value: impl IntoProp<bool, M>) -> Self

Source

fn is_undo_enabled<M>(self, value: impl IntoProp<bool, M>) -> Self

Source

fn undo_limit<M>(self, value: impl IntoProp<i32, M>) -> Self

Source

fn on_copying_to_clipboard( self, handler: impl Fn(&RoutedEventArgs) + 'static, ) -> Self

Source

fn on_cutting_to_clipboard( self, handler: impl Fn(&RoutedEventArgs) + 'static, ) -> Self

Source

fn on_pasting_from_clipboard( self, handler: impl Fn(&RoutedEventArgs) + 'static, ) -> Self

Source

fn on_text_changed( self, handler: impl Fn(&TextChangedEventArgs) + 'static, ) -> Self

Source

fn on_text_changing( self, handler: impl Fn(&TextChangingEventArgs) + 'static, ) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§