ContentControl
struct · ferroui-controls · v0.5.0
struct ContentControl
Displays content according to an IDataTemplate.
Members
TYPEto_refregister_content_presenterTEMPLATE_PARTSPSEUDO_CLASSEScontent_propertycontent_template_propertyhorizontal_content_alignment_propertyvertical_content_alignment_propertyconstructnewcontentset_contentcontent_templateset_content_templatepresenterhorizontal_content_alignmentset_horizontal_content_alignmentvertical_content_alignmentset_vertical_content_alignment
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ContentControl>
Returns a strong reference to this object.
register_content_presenter
fn register_content_presenter(self: &Self, presenter: &ContentPresenter) -> bool
Called when a content presenter whose templated parent is this control is created. Returns true if the presenter was registered as a presenter of the control.
TEMPLATE_PARTS
const TEMPLATE_PARTS: &'static [TemplatePartAttribute]
The named parts expected in the control template.
PSEUDO_CLASSES
const PSEUDO_CLASSES: PseudoClassesAttribute
The pseudoclasses set by the class.
content_property
fn content_property() -> &'static StyledProperty<Option<BoxedValue>>
Defines the Content property.
content_template_property
fn content_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
Defines the ContentTemplate property.
horizontal_content_alignment_property
fn horizontal_content_alignment_property() -> &'static StyledProperty<HorizontalAlignment>
Defines the HorizontalContentAlignment property.
vertical_content_alignment_property
fn vertical_content_alignment_property() -> &'static StyledProperty<VerticalAlignment>
Defines the VerticalContentAlignment property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
content
fn content(self: &Self) -> Option<BoxedValue>
The content to display.
set_content
fn set_content(self: &Self, value: Option<BoxedValue>)
content_template
fn content_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
The data template used to display the content of the control.
set_content_template
fn set_content_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
presenter
fn presenter(self: &Self) -> Option<Ref<ContentPresenter>>
The presenter from the control's template.
horizontal_content_alignment
fn horizontal_content_alignment(self: &Self) -> HorizontalAlignment
The horizontal alignment of the content within the control.
set_horizontal_content_alignment
fn set_horizontal_content_alignment(self: &Self, value: HorizontalAlignment)
vertical_content_alignment
fn vertical_content_alignment(self: &Self) -> VerticalAlignment
The vertical alignment of the content within the control.
set_vertical_content_alignment
fn set_vertical_content_alignment(self: &Self, value: VerticalAlignment)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtContentControlImplExtControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<ContentControl>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplLayoutableImplInteractiveImplInputElementImplControlImplTemplatedControlImplFerroObjectImplContentControlImplIContentPresenterHostIContentControl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.