TreeDataGridTextCell
struct · ferroui-controls-treedatagrid · v0.5.0
struct TreeDataGridTextCell
A cell that shows the text of an ITextCell model.
Members
TYPEto_reftext_trimming_propertytext_wrapping_propertyvalue_propertytext_alignment_propertyconstructnewtext_trimmingset_text_trimmingtext_wrappingset_text_wrappingvalueset_valuetext_alignmentset_text_alignment
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<TreeDataGridTextCell>
Returns a strong reference to this object.
text_trimming_property
fn text_trimming_property() -> &'static DirectProperty<TreeDataGridTextCell, Rc<dyn TextTrimming>>
Defines the TextTrimming property.
text_wrapping_property
fn text_wrapping_property() -> &'static DirectProperty<TreeDataGridTextCell, TextWrapping>
Defines the TextWrapping property.
value_property
fn value_property() -> &'static DirectProperty<TreeDataGridTextCell, Option<String>>
Defines the Value property.
text_alignment_property
fn text_alignment_property() -> &'static DirectProperty<TreeDataGridTextCell, TextAlignment>
Defines the TextAlignment property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
text_trimming
fn text_trimming(self: &Self) -> Rc<dyn TextTrimming>
How the text is trimmed when it overflows the cell.
set_text_trimming
fn set_text_trimming(self: &Self, value: Rc<dyn TextTrimming>)
text_wrapping
fn text_wrapping(self: &Self) -> TextWrapping
How the text wraps.
set_text_wrapping
fn set_text_wrapping(self: &Self, value: TextWrapping)
value
fn value(self: &Self) -> Option<String>
The text of the cell. Setting it writes the text to the model.
set_value
fn set_value(self: &Self, value: Option<String>)
text_alignment
fn text_alignment(self: &Self) -> TextAlignment
How the text is aligned.
set_text_alignment
fn set_text_alignment(self: &Self, value: TextAlignment)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTreeDataGridCellImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherTemplatedControlImplExtControlImplExtDerefUpcast<T>Upcast<TreeDataGridTextCell>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplVisualImplLayoutableImplInteractiveImplInputElementImplControlImplTemplatedControlImplTreeDataGridCellImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.