FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<ContentPage>
    

    Returns a strong reference to this object.

    Source

    content_property

    fn content_property() -> &'static StyledProperty<Option<BoxedValue>>
    

    Defines the Content property.

    Source

    content_template_property

    fn content_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
    

    Defines the ContentTemplate property.

    Source

    automatically_apply_safe_area_padding_property

    fn automatically_apply_safe_area_padding_property() -> &'static StyledProperty<bool>
    

    Defines the AutomaticallyApplySafeAreaPadding property.

    Source

    top_command_bar_property

    fn top_command_bar_property() -> &'static StyledProperty<Option<BoxedValue>>
    

    Defines the TopCommandBar property.

    Source

    bottom_command_bar_property

    fn bottom_command_bar_property() -> &'static StyledProperty<Option<BoxedValue>>
    

    Defines the BottomCommandBar property.

    Source

    horizontal_content_alignment_property

    fn horizontal_content_alignment_property() -> &'static StyledProperty<HorizontalAlignment>
    

    Defines the HorizontalContentAlignment property.

    Source

    vertical_content_alignment_property

    fn vertical_content_alignment_property() -> &'static StyledProperty<VerticalAlignment>
    

    Defines the VerticalContentAlignment property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    horizontal_content_alignment

    fn horizontal_content_alignment(self: &Self) -> HorizontalAlignment
    

    The horizontal alignment of the content within the page.

    Source

    set_horizontal_content_alignment

    fn set_horizontal_content_alignment(self: &Self, value: HorizontalAlignment)
    

    Source

    vertical_content_alignment

    fn vertical_content_alignment(self: &Self) -> VerticalAlignment
    

    The vertical alignment of the content within the page.

    Source

    set_vertical_content_alignment

    fn set_vertical_content_alignment(self: &Self, value: VerticalAlignment)
    

    Source

    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.

    Source

    set_content

    fn set_content(self: &Self, value: Option<BoxedValue>)
    

    Sets the page content.

    Panics

    Panics when the assigned value is a page.

    Source

    content_template

    fn content_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
    

    The data template used to display the content.

    Source

    set_content_template

    fn set_content_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
    

    Source

    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.

    Source

    set_automatically_apply_safe_area_padding

    fn set_automatically_apply_safe_area_padding(self: &Self, value: bool)
    

    Source

    top_command_bar

    fn top_command_bar(self: &Self) -> Option<BoxedValue>
    

    The content displayed in the top command bar area.

    Source

    set_top_command_bar

    fn set_top_command_bar(self: &Self, value: Option<BoxedValue>)
    

    Source

    bottom_command_bar

    fn bottom_command_bar(self: &Self) -> Option<BoxedValue>
    

    The content displayed in the bottom command bar area.

    Source

    set_bottom_command_bar

    fn set_bottom_command_bar(self: &Self, value: Option<BoxedValue>)
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.