RichTextBlockProps
trait · ferroui-view · v0.5.0
trait RichTextBlockProps: ElementBuilder
The properties and routed events of RichTextBlock.
Members
rich_documentselection_startselection_endis_text_selection_enabledselection_highlight_colorselection_foreground_brushcaret_brushbackgroundpaddingfont_familyfont_sizefont_stylefont_weightfont_stretchfont_featuresforegroundletter_spacingtext_alignmentline_heighttext_indentline_stacking_strategytext_line_boundstext_decorationstext_trimmingtext_wrappingmax_lineson_selection_changedon_is_text_trimmed_changedon_context_menu_opening
rich_document
fn rich_document<M>(self: Self, value: impl IntoProp<ferroui_controls::documents::RichTextDocument, M>) -> Self
Sets RichTextBlock::rich_document_property.
selection_start
fn selection_start<M>(self: Self, value: impl IntoProp<i32, M>) -> Self
Sets RichTextBlock::selection_start_property.
selection_end
fn selection_end<M>(self: Self, value: impl IntoProp<i32, M>) -> Self
Sets RichTextBlock::selection_end_property.
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.
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.
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.
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.
background
fn background<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
Sets RichTextBlock::background_property.
padding
fn padding<M>(self: Self, value: impl IntoProp<ferroui_base::Thickness, M>) -> Self
Sets RichTextBlock::padding_property.
font_family
fn font_family<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontFamily, M>) -> Self
Sets RichTextBlock::font_family_property.
font_size
fn font_size<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
Sets RichTextBlock::font_size_property.
font_style
fn font_style<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontStyle, M>) -> Self
Sets RichTextBlock::font_style_property.
font_weight
fn font_weight<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontWeight, M>) -> Self
Sets RichTextBlock::font_weight_property.
font_stretch
fn font_stretch<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontStretch, M>) -> Self
Sets RichTextBlock::font_stretch_property.
font_features
fn font_features<M>(self: Self, value: impl IntoProp<Option<ferroui_base::media::FontFeatureCollection>, M>) -> Self
Sets RichTextBlock::font_features_property.
foreground
fn foreground<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
Sets RichTextBlock::foreground_property.
letter_spacing
fn letter_spacing<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
Sets RichTextBlock::letter_spacing_property.
text_alignment
fn text_alignment<M>(self: Self, value: impl IntoProp<ferroui_base::media::TextAlignment, M>) -> Self
Sets RichTextBlock::text_alignment_property.
line_height
fn line_height<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
Sets RichTextBlock::line_height_property.
text_indent
fn text_indent<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
Sets RichTextBlock::text_indent_property.
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.
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.
text_decorations
fn text_decorations<M>(self: Self, value: impl IntoProp<Option<ferroui_base::media::TextDecorationCollection>, M>) -> Self
Sets RichTextBlock::text_decorations_property.
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.
text_wrapping
fn text_wrapping<M>(self: Self, value: impl IntoProp<ferroui_base::media::TextWrapping, M>) -> Self
Sets RichTextBlock::text_wrapping_property.
max_lines
fn max_lines<M>(self: Self, value: impl IntoProp<i32, M>) -> Self
Sets RichTextBlock::max_lines_property.
on_selection_changed
fn on_selection_changed(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
Handles RichTextBlock::selection_changed_event.
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.
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.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.