Run
struct · ferroui-controls · v0.5.0
struct Run
A terminal element in text flow hierarchy - contains a uniformatted run of unicode characters.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Run>
Returns a strong reference to this object.
text_property
fn text_property() -> &'static StyledProperty<Option<String>>
Dependency property backing Text.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Initializes an instance of the Run class.
with_text
fn with_text(text: Option<&str>) -> Ref<Self>
Initializes an instance of the Run class specifying its text
content.
text
fn text(self: &Self) -> Option<String>
The content spanned by this text pointer.
set_text
fn set_text(self: &Self, value: Option<&str>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeInlineImplExtTextElementImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<Run>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplTextElementImplFerroObjectImplInlineImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.