FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    DrawerPage

    struct · ferroui-controls · v0.5.0

    struct DrawerPage
    

    A page that provides a drawer pattern.

    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<DrawerPage>
    

    Returns a strong reference to this object.

    Source

    drawer_property

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

    Defines the Drawer property.

    Source

    content_property

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

    Defines the Content property.

    Source

    is_open_property

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

    Defines the IsOpen property.

    Source

    drawer_length_property

    fn drawer_length_property() -> &'static StyledProperty<f64>
    

    Defines the DrawerLength property.

    Source

    compact_drawer_length_property

    fn compact_drawer_length_property() -> &'static StyledProperty<f64>
    

    Defines the CompactDrawerLength property.

    Source

    drawer_breakpoint_length_property

    fn drawer_breakpoint_length_property() -> &'static StyledProperty<f64>
    

    Defines the DrawerBreakpointLength property.

    Source

    is_gesture_enabled_property

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

    Defines the IsGestureEnabled property.

    Source

    drawer_behavior_property

    fn drawer_behavior_property() -> &'static StyledProperty<DrawerBehavior>
    

    Defines the DrawerBehavior property.

    Source

    drawer_layout_behavior_property

    fn drawer_layout_behavior_property() -> &'static StyledProperty<DrawerLayoutBehavior>
    

    Defines the DrawerLayoutBehavior property.

    Source

    drawer_placement_property

    fn drawer_placement_property() -> &'static StyledProperty<DrawerPlacement>
    

    Defines the DrawerPlacement property.

    Source

    drawer_header_property

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

    Defines the DrawerHeader property.

    Source

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

    Defines the DrawerFooter property.

    Source

    drawer_header_template_property

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

    Defines the DrawerHeaderTemplate property.

    Source

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

    Defines the DrawerFooterTemplate property.

    Source

    drawer_icon_property

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

    Defines the DrawerIcon property.

    Source

    drawer_icon_template_property

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

    Defines the DrawerIconTemplate property.

    Source

    drawer_template_property

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

    Defines the DrawerTemplate property.

    Source

    content_template_property

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

    Defines the ContentTemplate property.

    Source

    drawer_background_property

    fn drawer_background_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
    

    Defines the DrawerBackground property.

    Source

    drawer_header_background_property

    fn drawer_header_background_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
    

    Defines the DrawerHeaderBackground property.

    Source

    drawer_header_foreground_property

    fn drawer_header_foreground_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
    

    Defines the DrawerHeaderForeground property.

    Source

    fn drawer_footer_background_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
    

    Defines the DrawerFooterBackground property.

    Source

    fn drawer_footer_foreground_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
    

    Defines the DrawerFooterForeground property.

    Source

    backdrop_brush_property

    fn backdrop_brush_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
    

    Defines the BackdropBrush 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

    display_mode_property

    fn display_mode_property() -> &'static StyledProperty<SplitViewDisplayMode>
    

    Defines the DisplayMode property.

    Source

    opened_event

    fn opened_event() -> &'static RoutedEvent<RoutedEventArgs>
    

    Defines the Opened routed event.

    Source

    closing_event

    fn closing_event() -> &'static RoutedEvent<DrawerClosingEventArgs>
    

    Defines the Closing routed event.

    Source

    closed_event

    fn closed_event() -> &'static RoutedEvent<RoutedEventArgs>
    

    Defines the Closed routed event.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Initializes a new instance of the DrawerPage class.

    Source

    opened

    fn opened(self: &Self, handler: impl Fn(&Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Occurs when IsOpen changes to true.

    Source

    closing

    fn closing(self: &Self, handler: impl Fn(&Interactive, &DrawerClosingEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Occurs when the drawer is about to close.

    Source

    closed

    fn closed(self: &Self, handler: impl Fn(&Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Occurs when IsOpen changes to false and closing is not cancelled.

    Source

    drawer

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

    Gets or sets the drawer pane content.

    Source

    set_drawer

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

    Source

    content

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

    Gets or sets the main content.

    Source

    set_content

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

    Source

    is_open

    fn is_open(self: &Self) -> bool
    

    Gets or sets whether the drawer pane is currently open.

    Setting this property to true while the drawer behavior is DrawerBehavior::Disabled is a no-op; the value is coerced back to false. When closing programmatically, the Closing event is raised and can be cancelled; if cancelled, the property reverts to true. The Closing event is not raised when the drawer is forced closed because the drawer behavior is set to DrawerBehavior::Disabled.

    Source

    set_is_open

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

    Source

    drawer_length

    fn drawer_length(self: &Self) -> f64
    

    Gets or sets the width of the drawer pane.

    Source

    set_drawer_length

    fn set_drawer_length(self: &Self, value: f64)
    

    Source

    compact_drawer_length

    fn compact_drawer_length(self: &Self) -> f64
    

    Gets or sets the compact drawer width.

    Source

    set_compact_drawer_length

    fn set_compact_drawer_length(self: &Self, value: f64)
    

    Source

    drawer_breakpoint_length

    fn drawer_breakpoint_length(self: &Self) -> f64
    

    Gets or sets the size threshold for switching to overlay mode. Set to 0 to disable.

    Source

    set_drawer_breakpoint_length

    fn set_drawer_breakpoint_length(self: &Self, value: f64)
    

    Source

    is_gesture_enabled

    fn is_gesture_enabled(self: &Self) -> bool
    

    Gets or sets whether swipe gestures can open or close the drawer.

    Source

    set_is_gesture_enabled

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

    Source

    drawer_behavior

    fn drawer_behavior(self: &Self) -> DrawerBehavior
    

    Gets or sets the open/close behavior of the drawer pane.

    Source

    set_drawer_behavior

    fn set_drawer_behavior(self: &Self, value: DrawerBehavior)
    

    Source

    drawer_layout_behavior

    fn drawer_layout_behavior(self: &Self) -> DrawerLayoutBehavior
    

    Gets or sets the layout behavior of the drawer.

    Source

    set_drawer_layout_behavior

    fn set_drawer_layout_behavior(self: &Self, value: DrawerLayoutBehavior)
    

    Source

    drawer_placement

    fn drawer_placement(self: &Self) -> DrawerPlacement
    

    Gets or sets which edge of the control the drawer appears from.

    Source

    set_drawer_placement

    fn set_drawer_placement(self: &Self, value: DrawerPlacement)
    

    Source

    drawer_header

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

    Gets or sets the header content displayed at the top of the drawer pane.

    Source

    set_drawer_header

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

    Source

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

    Gets or sets the footer content displayed at the bottom of the drawer pane.

    Source

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

    Source

    drawer_header_template

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

    Gets or sets the data template used to display the drawer header.

    Source

    set_drawer_header_template

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

    Source

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

    Gets or sets the data template used to display the drawer footer.

    Source

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

    Source

    drawer_icon

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

    Gets or sets the icon displayed in the drawer toggle button.

    Source

    set_drawer_icon

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

    Source

    drawer_icon_template

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

    Gets or sets the data template used to display the drawer icon.

    Source

    set_drawer_icon_template

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

    Source

    drawer_template

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

    Gets or sets the data template used to display the drawer content.

    Source

    set_drawer_template

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

    Source

    content_template

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

    Gets or sets the data template used to display the content.

    Source

    set_content_template

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

    Source

    drawer_background

    fn drawer_background(self: &Self) -> Option<Rc<dyn IBrush>>
    

    Gets or sets the background brush of the drawer pane.

    Source

    set_drawer_background

    fn set_drawer_background(self: &Self, value: Option<Rc<dyn IBrush>>)
    

    Source

    drawer_header_background

    fn drawer_header_background(self: &Self) -> Option<Rc<dyn IBrush>>
    

    Gets or sets the background brush of the drawer header area.

    Source

    set_drawer_header_background

    fn set_drawer_header_background(self: &Self, value: Option<Rc<dyn IBrush>>)
    

    Source

    drawer_header_foreground

    fn drawer_header_foreground(self: &Self) -> Option<Rc<dyn IBrush>>
    

    Gets or sets the foreground brush of the drawer header area.

    Source

    set_drawer_header_foreground

    fn set_drawer_header_foreground(self: &Self, value: Option<Rc<dyn IBrush>>)
    

    Source

    fn drawer_footer_background(self: &Self) -> Option<Rc<dyn IBrush>>
    

    Gets or sets the background brush of the drawer footer area.

    Source

    fn set_drawer_footer_background(self: &Self, value: Option<Rc<dyn IBrush>>)
    

    Source

    fn drawer_footer_foreground(self: &Self) -> Option<Rc<dyn IBrush>>
    

    Gets or sets the foreground brush of the drawer footer area.

    Source

    fn set_drawer_footer_foreground(self: &Self, value: Option<Rc<dyn IBrush>>)
    

    Source

    backdrop_brush

    fn backdrop_brush(self: &Self) -> Option<Rc<dyn IBrush>>
    

    Gets or sets the backdrop brush for overlay mode.

    Source

    set_backdrop_brush

    fn set_backdrop_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
    

    Source

    horizontal_content_alignment

    fn horizontal_content_alignment(self: &Self) -> HorizontalAlignment
    

    Gets or sets the horizontal alignment of the detail content.

    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
    

    Gets or sets the vertical alignment of the detail content.

    Source

    set_vertical_content_alignment

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

    Source

    display_mode

    fn display_mode(self: &Self) -> SplitViewDisplayMode
    

    Gets or sets the display mode of the split view.

    Source

    set_display_mode

    fn set_display_mode(self: &Self, value: SplitViewDisplayMode)
    

    Source

    Trait implementations

    Availability

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