FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextBoxProps

    trait · ferroui-view · v0.5.0

    trait TextBoxProps: ElementBuilder
    

    The properties and routed events of TextBox.

    View source

    Members

    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.

    Source

    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.

    Source

    accepts_return

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

    Sets TextBox::accepts_return_property.

    Source

    accepts_tab

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

    Sets TextBox::accepts_tab_property.

    Source

    caret_index

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

    Sets TextBox::caret_index_property.

    Source

    is_read_only

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

    Sets TextBox::is_read_only_property.

    Source

    password_char

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

    Sets TextBox::password_char_property.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    fn caret_blink_interval<M>(self: Self, value: impl IntoProp<std::time::Duration, M>) -> Self
    

    Sets TextBox::caret_blink_interval_property.

    Source

    selection_start

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

    Sets TextBox::selection_start_property.

    Source

    selection_end

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

    Sets TextBox::selection_end_property.

    Source

    max_length

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

    Sets TextBox::max_length_property.

    Source

    max_lines

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

    Sets TextBox::max_lines_property.

    Source

    min_lines

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

    Sets TextBox::min_lines_property.

    Source

    text

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

    Sets TextBox::text_property.

    Source

    text_alignment

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

    Sets TextBox::text_alignment_property.

    Source

    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.

    Source

    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.

    Source

    text_wrapping

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

    Sets TextBox::text_wrapping_property.

    Source

    line_height

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

    Sets TextBox::line_height_property.

    Source

    placeholder_text

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

    Sets TextBox::placeholder_text_property.

    Source

    use_floating_placeholder

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

    Sets TextBox::use_floating_placeholder_property.

    Source

    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.

    Source

    new_line

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

    Sets TextBox::new_line_property.

    Source

    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.

    Source

    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.

    Source

    reveal_password

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

    Sets TextBox::reveal_password_property.

    Source

    is_undo_enabled

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

    Sets TextBox::is_undo_enabled_property.

    Source

    undo_limit

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

    Sets TextBox::undo_limit_property.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    on_text_changed

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

    Handles TextBox::text_changed_event.

    Source

    on_text_changing

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

    Handles TextBox::text_changing_event.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.