FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RichTextBlockProps

    trait · ferroui-view · v0.5.0

    trait RichTextBlockProps: ElementBuilder
    

    The properties and routed events of RichTextBlock.

    View source

    Members

    rich_document

    fn rich_document<M>(self: Self, value: impl IntoProp<ferroui_controls::documents::RichTextDocument, M>) -> Self
    

    Sets RichTextBlock::rich_document_property.

    Source

    selection_start

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

    Sets RichTextBlock::selection_start_property.

    Source

    selection_end

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

    Sets RichTextBlock::selection_end_property.

    Source

    is_text_selection_enabled

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

    Sets RichTextBlock::is_text_selection_enabled_property.

    Source

    selection_highlight_color

    fn selection_highlight_color<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
    

    Sets RichTextBlock::selection_highlight_color_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 RichTextBlock::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 RichTextBlock::caret_brush_property.

    Source

    background

    fn background<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
    

    Sets RichTextBlock::background_property.

    Source

    padding

    fn padding<M>(self: Self, value: impl IntoProp<ferroui_base::Thickness, M>) -> Self
    

    Sets RichTextBlock::padding_property.

    Source

    font_family

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

    Sets RichTextBlock::font_family_property.

    Source

    font_size

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

    Sets RichTextBlock::font_size_property.

    Source

    font_style

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

    Sets RichTextBlock::font_style_property.

    Source

    font_weight

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

    Sets RichTextBlock::font_weight_property.

    Source

    font_stretch

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

    Sets RichTextBlock::font_stretch_property.

    Source

    font_features

    fn font_features<M>(self: Self, value: impl IntoProp<Option<ferroui_base::media::FontFeatureCollection>, M>) -> Self
    

    Sets RichTextBlock::font_features_property.

    Source

    foreground

    fn foreground<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
    

    Sets RichTextBlock::foreground_property.

    Source

    letter_spacing

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

    Sets RichTextBlock::letter_spacing_property.

    Source

    text_alignment

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

    Sets RichTextBlock::text_alignment_property.

    Source

    line_height

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

    Sets RichTextBlock::line_height_property.

    Source

    text_indent

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

    Sets RichTextBlock::text_indent_property.

    Source

    line_stacking_strategy

    fn line_stacking_strategy<M>(self: Self, value: impl IntoProp<ferroui_controls::documents::LineStackingStrategy, M>) -> Self
    

    Sets RichTextBlock::line_stacking_strategy_property.

    Source

    text_line_bounds

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

    Sets RichTextBlock::text_line_bounds_property.

    Source

    text_decorations

    fn text_decorations<M>(self: Self, value: impl IntoProp<Option<ferroui_base::media::TextDecorationCollection>, M>) -> Self
    

    Sets RichTextBlock::text_decorations_property.

    Source

    text_trimming

    fn text_trimming<M>(self: Self, value: impl IntoProp<std::rc::Rc<dyn ferroui_base::media::TextTrimming>, M>) -> Self
    

    Sets RichTextBlock::text_trimming_property.

    Source

    text_wrapping

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

    Sets RichTextBlock::text_wrapping_property.

    Source

    max_lines

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

    Sets RichTextBlock::max_lines_property.

    Source

    on_selection_changed

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

    Handles RichTextBlock::selection_changed_event.

    Source

    on_is_text_trimmed_changed

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

    Handles RichTextBlock::is_text_trimmed_changed_event.

    Source

    on_context_menu_opening

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

    Handles RichTextBlock::context_menu_opening_event.

    Source

    Trait implementations

    Availability

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