Inline
struct · ferroui-controls · v0.5.0
struct Inline
Inline is the base class for inline text elements.
This class is abstract.
Members
TYPEto_reftext_decorations_propertybaseline_alignment_propertyconstructtext_decorationsset_text_decorationsbaseline_alignmentset_baseline_alignmentget_text_decorationsset_text_decorations_oncreate_text_run_properties
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Inline>
Returns a strong reference to this object.
text_decorations_property
fn text_decorations_property() -> &'static AttachedProperty<Option<TextDecorationCollection>>
AttachedProperty for the TextDecorations property.
baseline_alignment_property
fn baseline_alignment_property() -> &'static StyledProperty<BaselineAlignment>
StyledProperty for the BaselineAlignment property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
text_decorations
fn text_decorations(self: &Self) -> Option<TextDecorationCollection>
The TextDecorations property specifies decorations that are added
to the text of an element.
set_text_decorations
fn set_text_decorations(self: &Self, value: Option<TextDecorationCollection>)
baseline_alignment
fn baseline_alignment(self: &Self) -> BaselineAlignment
Describes how the baseline for a text-based element is positioned on the vertical axis, relative to the established baseline for text.
set_baseline_alignment
fn set_baseline_alignment(self: &Self, value: BaselineAlignment)
get_text_decorations
fn get_text_decorations(control: &Control) -> Option<TextDecorationCollection>
Gets the value of the attached TextDecorations property on a
control.
set_text_decorations_on
fn set_text_decorations_on(control: &Control, value: Option<TextDecorationCollection>)
Sets the value of the attached TextDecorations property on a
control.
create_text_run_properties
fn create_text_run_properties(self: &Self) -> Rc<dyn TextRunProperties>
Creates the run properties of the text of the inline.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeInlineImplExtTextElementImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<Inline>StaticTypeObjectTypeSubclassable<T>StyledElementImplTextElementImplFerroObjectImplInlineImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.