ContentPage
struct · ferroui-controls · v0.5.0
struct ContentPage
A page that displays a single piece of content with optional top and bottom command bars.
Members
TYPEto_refcontent_propertycontent_template_propertyautomatically_apply_safe_area_padding_propertytop_command_bar_propertybottom_command_bar_propertyhorizontal_content_alignment_propertyvertical_content_alignment_propertyconstructnewhorizontal_content_alignmentset_horizontal_content_alignmentvertical_content_alignmentset_vertical_content_alignmentcontentset_contentcontent_templateset_content_templateautomatically_apply_safe_area_paddingset_automatically_apply_safe_area_paddingtop_command_barset_top_command_barbottom_command_barset_bottom_command_bar
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ContentPage>
Returns a strong reference to this object.
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.
automatically_apply_safe_area_padding_property
fn automatically_apply_safe_area_padding_property() -> &'static StyledProperty<bool>
Defines the AutomaticallyApplySafeAreaPadding property.
top_command_bar_property
fn top_command_bar_property() -> &'static StyledProperty<Option<BoxedValue>>
Defines the TopCommandBar property.
bottom_command_bar_property
fn bottom_command_bar_property() -> &'static StyledProperty<Option<BoxedValue>>
Defines the BottomCommandBar 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>
horizontal_content_alignment
fn horizontal_content_alignment(self: &Self) -> HorizontalAlignment
The horizontal alignment of the content within the page.
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 page.
set_vertical_content_alignment
fn set_vertical_content_alignment(self: &Self, value: VerticalAlignment)
content
fn content(self: &Self) -> Option<BoxedValue>
The page content.
The content must not be another page. Use a page that hosts child pages (a navigation page, tabbed page, drawer page or carousel page) for that.
set_content
fn set_content(self: &Self, value: Option<BoxedValue>)
Sets the page content.
Panics
Panics when the assigned value is a page.
content_template
fn content_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
The data template used to display the content.
set_content_template
fn set_content_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
automatically_apply_safe_area_padding
fn automatically_apply_safe_area_padding(self: &Self) -> bool
Whether safe-area padding is automatically applied to the content presenter.
set_automatically_apply_safe_area_padding
fn set_automatically_apply_safe_area_padding(self: &Self, value: bool)
top_command_bar
fn top_command_bar(self: &Self) -> Option<BoxedValue>
The content displayed in the top command bar area.
set_top_command_bar
fn set_top_command_bar(self: &Self, value: Option<BoxedValue>)
bottom_command_bar
fn bottom_command_bar(self: &Self) -> Option<BoxedValue>
The content displayed in the bottom command bar area.
set_bottom_command_bar
fn set_bottom_command_bar(self: &Self, value: Option<BoxedValue>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtControlImplExtPageImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<ContentPage>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleVisualImplLayoutableImplInteractiveImplInputElementImplFerroObjectImplStyledElementImplTemplatedControlImplPageImplControlImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.