FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Paragraph

    struct · ferroui-controls · v0.5.0

    struct Paragraph
    

    A paragraph of structured inline content, including styled spans and embedded controls.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<Paragraph>
    

    Returns a strong reference to this object.

    Source

    tab_stops_property

    fn tab_stops_property() -> &'static StyledProperty<TextTabStops>
    

    Source

    default_tab_stop_property

    fn default_tab_stop_property() -> &'static StyledProperty<f64>
    

    Source

    text_indent_property

    fn text_indent_property() -> &'static StyledProperty<f64>
    

    Source

    line_spacing_rule_property

    fn line_spacing_rule_property() -> &'static StyledProperty<LineSpacingRule>
    

    Source

    line_spacing_property

    fn line_spacing_property() -> &'static StyledProperty<f64>
    

    Source

    left_indent_property

    fn left_indent_property() -> &'static StyledProperty<f64>
    

    Source

    right_indent_property

    fn right_indent_property() -> &'static StyledProperty<f64>
    

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    with_text

    fn with_text(text: &str) -> Ref<Self>
    

    Source

    inlines

    fn inlines(self: &Self) -> InlineCollection
    

    Source

    add_child

    fn add_child(self: &Self, child: impl IntoRef<Inline>)
    

    Source

    add_child_text

    fn add_child_text(self: &Self, text: &str)
    

    Source

    add_child_control

    fn add_child_control(self: &Self, child: impl IntoRef<Control>)
    

    Source

    tab_stops

    fn tab_stops(self: &Self) -> TextTabStops
    

    Immutable explicit stops, in layout units from the paragraph's leading page edge.

    Source

    set_tab_stops

    fn set_tab_stops(self: &Self, value: TextTabStops)
    

    Source

    default_tab_stop

    fn default_tab_stop(self: &Self) -> f64
    

    Spacing of implicit stops after the explicit configuration, in layout units.

    Source

    set_default_tab_stop

    fn set_default_tab_stop(self: &Self, value: f64)
    

    Assigns an explicit interval in DIPs. When unassigned, the layout host supplies the interval: four paragraph ems in RichTextBlock, or the editable document's default (initially 48 DIPs / 36 points) in RichEditBox.

    Source

    text_indent

    fn text_indent(self: &Self) -> f64
    

    Source

    set_text_indent

    fn set_text_indent(self: &Self, value: f64)
    

    Source

    line_spacing_rule

    fn line_spacing_rule(self: &Self) -> LineSpacingRule
    

    Source

    set_line_spacing_rule

    fn set_line_spacing_rule(self: &Self, value: LineSpacingRule)
    

    Source

    line_spacing

    fn line_spacing(self: &Self) -> f64
    

    Source

    set_line_spacing

    fn set_line_spacing(self: &Self, value: f64)
    

    Source

    left_indent

    fn left_indent(self: &Self) -> f64
    

    Source

    set_left_indent

    fn set_left_indent(self: &Self, value: f64)
    

    Source

    right_indent

    fn right_indent(self: &Self) -> f64
    

    Source

    set_right_indent

    fn set_right_indent(self: &Self, value: f64)
    

    Source

    as_add_child_of_inline

    fn as_add_child_of_inline(this: Ref<Self>) -> Rc<dyn IAddChild<Ref<Inline>>>
    

    Source

    as_add_child_of_control

    fn as_add_child_of_control(this: Ref<Self>) -> Rc<dyn IAddChild<Ref<Control>>>
    

    Source

    as_add_child_of_string

    fn as_add_child_of_string(this: Ref<Self>) -> Rc<dyn IAddChild<String>>
    

    Source

    Trait implementations

    Availability

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