Paragraph
struct · ferroui-controls · v0.5.0
struct Paragraph
A paragraph of structured inline content, including styled spans and embedded controls.
Members
TYPEto_reftab_stops_propertydefault_tab_stop_propertytext_indent_propertyline_spacing_rule_propertyline_spacing_propertyleft_indent_propertyright_indent_propertyconstructnewwith_textinlinesadd_childadd_child_textadd_child_controltab_stopsset_tab_stopsdefault_tab_stopset_default_tab_stoptext_indentset_text_indentline_spacing_ruleset_line_spacing_ruleline_spacingset_line_spacingleft_indentset_left_indentright_indentset_right_indentas_add_child_of_inlineas_add_child_of_controlas_add_child_of_string
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Paragraph>
Returns a strong reference to this object.
tab_stops_property
fn tab_stops_property() -> &'static StyledProperty<TextTabStops>
default_tab_stop_property
fn default_tab_stop_property() -> &'static StyledProperty<f64>
text_indent_property
fn text_indent_property() -> &'static StyledProperty<f64>
line_spacing_rule_property
fn line_spacing_rule_property() -> &'static StyledProperty<LineSpacingRule>
line_spacing_property
fn line_spacing_property() -> &'static StyledProperty<f64>
left_indent_property
fn left_indent_property() -> &'static StyledProperty<f64>
right_indent_property
fn right_indent_property() -> &'static StyledProperty<f64>
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
with_text
fn with_text(text: &str) -> Ref<Self>
inlines
fn inlines(self: &Self) -> InlineCollection
add_child
fn add_child(self: &Self, child: impl IntoRef<Inline>)
add_child_text
fn add_child_text(self: &Self, text: &str)
add_child_control
fn add_child_control(self: &Self, child: impl IntoRef<Control>)
tab_stops
fn tab_stops(self: &Self) -> TextTabStops
Immutable explicit stops, in layout units from the paragraph's leading page edge.
set_tab_stops
fn set_tab_stops(self: &Self, value: TextTabStops)
default_tab_stop
fn default_tab_stop(self: &Self) -> f64
Spacing of implicit stops after the explicit configuration, in layout units.
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.
text_indent
fn text_indent(self: &Self) -> f64
set_text_indent
fn set_text_indent(self: &Self, value: f64)
line_spacing_rule
fn line_spacing_rule(self: &Self) -> LineSpacingRule
set_line_spacing_rule
fn set_line_spacing_rule(self: &Self, value: LineSpacingRule)
line_spacing
fn line_spacing(self: &Self) -> f64
set_line_spacing
fn set_line_spacing(self: &Self, value: f64)
left_indent
fn left_indent(self: &Self) -> f64
set_left_indent
fn set_left_indent(self: &Self, value: f64)
right_indent
fn right_indent(self: &Self) -> f64
set_right_indent
fn set_right_indent(self: &Self, value: f64)
as_add_child_of_inline
fn as_add_child_of_inline(this: Ref<Self>) -> Rc<dyn IAddChild<Ref<Inline>>>
as_add_child_of_control
fn as_add_child_of_control(this: Ref<Self>) -> Rc<dyn IAddChild<Ref<Control>>>
as_add_child_of_string
fn as_add_child_of_string(this: Ref<Self>) -> Rc<dyn IAddChild<String>>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBlockImplExtTextElementImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<Paragraph>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplFerroObjectImplTextElementImplBlockImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.