DrawerPage
struct · ferroui-controls · v0.5.0
struct DrawerPage
A page that provides a drawer pattern.
Members
TYPEto_refdrawer_propertycontent_propertyis_open_propertydrawer_length_propertycompact_drawer_length_propertydrawer_breakpoint_length_propertyis_gesture_enabled_propertydrawer_behavior_propertydrawer_layout_behavior_propertydrawer_placement_propertydrawer_header_propertydrawer_footer_propertydrawer_header_template_propertydrawer_footer_template_propertydrawer_icon_propertydrawer_icon_template_propertydrawer_template_propertycontent_template_propertydrawer_background_propertydrawer_header_background_propertydrawer_header_foreground_propertydrawer_footer_background_propertydrawer_footer_foreground_propertybackdrop_brush_propertyhorizontal_content_alignment_propertyvertical_content_alignment_propertydisplay_mode_propertyopened_eventclosing_eventclosed_eventconstructnewopenedclosingcloseddrawerset_drawercontentset_contentis_openset_is_opendrawer_lengthset_drawer_lengthcompact_drawer_lengthset_compact_drawer_lengthdrawer_breakpoint_lengthset_drawer_breakpoint_lengthis_gesture_enabledset_is_gesture_enableddrawer_behaviorset_drawer_behaviordrawer_layout_behaviorset_drawer_layout_behaviordrawer_placementset_drawer_placementdrawer_headerset_drawer_headerdrawer_footerset_drawer_footerdrawer_header_templateset_drawer_header_templatedrawer_footer_templateset_drawer_footer_templatedrawer_iconset_drawer_icondrawer_icon_templateset_drawer_icon_templatedrawer_templateset_drawer_templatecontent_templateset_content_templatedrawer_backgroundset_drawer_backgrounddrawer_header_backgroundset_drawer_header_backgrounddrawer_header_foregroundset_drawer_header_foregrounddrawer_footer_backgroundset_drawer_footer_backgrounddrawer_footer_foregroundset_drawer_footer_foregroundbackdrop_brushset_backdrop_brushhorizontal_content_alignmentset_horizontal_content_alignmentvertical_content_alignmentset_vertical_content_alignmentdisplay_modeset_display_mode
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<DrawerPage>
Returns a strong reference to this object.
drawer_property
fn drawer_property() -> &'static StyledProperty<Option<BoxedValue>>
Defines the Drawer property.
content_property
fn content_property() -> &'static StyledProperty<Option<BoxedValue>>
Defines the Content property.
is_open_property
fn is_open_property() -> &'static StyledProperty<bool>
Defines the IsOpen property.
drawer_length_property
fn drawer_length_property() -> &'static StyledProperty<f64>
Defines the DrawerLength property.
compact_drawer_length_property
fn compact_drawer_length_property() -> &'static StyledProperty<f64>
Defines the CompactDrawerLength property.
drawer_breakpoint_length_property
fn drawer_breakpoint_length_property() -> &'static StyledProperty<f64>
Defines the DrawerBreakpointLength property.
is_gesture_enabled_property
fn is_gesture_enabled_property() -> &'static StyledProperty<bool>
Defines the IsGestureEnabled property.
drawer_behavior_property
fn drawer_behavior_property() -> &'static StyledProperty<DrawerBehavior>
Defines the DrawerBehavior property.
drawer_layout_behavior_property
fn drawer_layout_behavior_property() -> &'static StyledProperty<DrawerLayoutBehavior>
Defines the DrawerLayoutBehavior property.
drawer_placement_property
fn drawer_placement_property() -> &'static StyledProperty<DrawerPlacement>
Defines the DrawerPlacement property.
drawer_header_property
fn drawer_header_property() -> &'static StyledProperty<Option<BoxedValue>>
Defines the DrawerHeader property.
drawer_footer_property
fn drawer_footer_property() -> &'static StyledProperty<Option<BoxedValue>>
Defines the DrawerFooter property.
drawer_header_template_property
fn drawer_header_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
Defines the DrawerHeaderTemplate property.
drawer_footer_template_property
fn drawer_footer_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
Defines the DrawerFooterTemplate property.
drawer_icon_property
fn drawer_icon_property() -> &'static StyledProperty<Option<BoxedValue>>
Defines the DrawerIcon property.
drawer_icon_template_property
fn drawer_icon_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
Defines the DrawerIconTemplate property.
drawer_template_property
fn drawer_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
Defines the DrawerTemplate property.
content_template_property
fn content_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
Defines the ContentTemplate property.
drawer_background_property
fn drawer_background_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
Defines the DrawerBackground property.
drawer_header_background_property
fn drawer_header_background_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
Defines the DrawerHeaderBackground property.
drawer_header_foreground_property
fn drawer_header_foreground_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
Defines the DrawerHeaderForeground property.
drawer_footer_background_property
fn drawer_footer_background_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
Defines the DrawerFooterBackground property.
drawer_footer_foreground_property
fn drawer_footer_foreground_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
Defines the DrawerFooterForeground property.
backdrop_brush_property
fn backdrop_brush_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
Defines the BackdropBrush 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.
display_mode_property
fn display_mode_property() -> &'static StyledProperty<SplitViewDisplayMode>
Defines the DisplayMode property.
opened_event
fn opened_event() -> &'static RoutedEvent<RoutedEventArgs>
Defines the Opened routed event.
closing_event
fn closing_event() -> &'static RoutedEvent<DrawerClosingEventArgs>
Defines the Closing routed event.
closed_event
fn closed_event() -> &'static RoutedEvent<RoutedEventArgs>
Defines the Closed routed event.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Initializes a new instance of the DrawerPage class.
opened
fn opened(self: &Self, handler: impl Fn(&Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when IsOpen changes to true.
closing
fn closing(self: &Self, handler: impl Fn(&Interactive, &DrawerClosingEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the drawer is about to close.
closed
fn closed(self: &Self, handler: impl Fn(&Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when IsOpen changes to false and closing is not cancelled.
drawer
fn drawer(self: &Self) -> Option<BoxedValue>
Gets or sets the drawer pane content.
set_drawer
fn set_drawer(self: &Self, value: Option<BoxedValue>)
content
fn content(self: &Self) -> Option<BoxedValue>
Gets or sets the main content.
set_content
fn set_content(self: &Self, value: Option<BoxedValue>)
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.
set_is_open
fn set_is_open(self: &Self, value: bool)
drawer_length
fn drawer_length(self: &Self) -> f64
Gets or sets the width of the drawer pane.
set_drawer_length
fn set_drawer_length(self: &Self, value: f64)
compact_drawer_length
fn compact_drawer_length(self: &Self) -> f64
Gets or sets the compact drawer width.
set_compact_drawer_length
fn set_compact_drawer_length(self: &Self, value: f64)
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.
set_drawer_breakpoint_length
fn set_drawer_breakpoint_length(self: &Self, value: f64)
is_gesture_enabled
fn is_gesture_enabled(self: &Self) -> bool
Gets or sets whether swipe gestures can open or close the drawer.
set_is_gesture_enabled
fn set_is_gesture_enabled(self: &Self, value: bool)
drawer_behavior
fn drawer_behavior(self: &Self) -> DrawerBehavior
Gets or sets the open/close behavior of the drawer pane.
set_drawer_behavior
fn set_drawer_behavior(self: &Self, value: DrawerBehavior)
drawer_layout_behavior
fn drawer_layout_behavior(self: &Self) -> DrawerLayoutBehavior
Gets or sets the layout behavior of the drawer.
set_drawer_layout_behavior
fn set_drawer_layout_behavior(self: &Self, value: DrawerLayoutBehavior)
drawer_placement
fn drawer_placement(self: &Self) -> DrawerPlacement
Gets or sets which edge of the control the drawer appears from.
set_drawer_placement
fn set_drawer_placement(self: &Self, value: DrawerPlacement)
drawer_header
fn drawer_header(self: &Self) -> Option<BoxedValue>
Gets or sets the header content displayed at the top of the drawer pane.
set_drawer_header
fn set_drawer_header(self: &Self, value: Option<BoxedValue>)
drawer_footer
fn drawer_footer(self: &Self) -> Option<BoxedValue>
Gets or sets the footer content displayed at the bottom of the drawer pane.
set_drawer_footer
fn set_drawer_footer(self: &Self, value: Option<BoxedValue>)
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.
set_drawer_header_template
fn set_drawer_header_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
drawer_footer_template
fn drawer_footer_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
Gets or sets the data template used to display the drawer footer.
set_drawer_footer_template
fn set_drawer_footer_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
drawer_icon
fn drawer_icon(self: &Self) -> Option<BoxedValue>
Gets or sets the icon displayed in the drawer toggle button.
set_drawer_icon
fn set_drawer_icon(self: &Self, value: Option<BoxedValue>)
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.
set_drawer_icon_template
fn set_drawer_icon_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
drawer_template
fn drawer_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
Gets or sets the data template used to display the drawer content.
set_drawer_template
fn set_drawer_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
content_template
fn content_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
Gets or sets the data template used to display the content.
set_content_template
fn set_content_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
drawer_background
fn drawer_background(self: &Self) -> Option<Rc<dyn IBrush>>
Gets or sets the background brush of the drawer pane.
set_drawer_background
fn set_drawer_background(self: &Self, value: Option<Rc<dyn IBrush>>)
drawer_header_background
fn drawer_header_background(self: &Self) -> Option<Rc<dyn IBrush>>
Gets or sets the background brush of the drawer header area.
set_drawer_header_background
fn set_drawer_header_background(self: &Self, value: Option<Rc<dyn IBrush>>)
drawer_header_foreground
fn drawer_header_foreground(self: &Self) -> Option<Rc<dyn IBrush>>
Gets or sets the foreground brush of the drawer header area.
set_drawer_header_foreground
fn set_drawer_header_foreground(self: &Self, value: Option<Rc<dyn IBrush>>)
drawer_footer_background
fn drawer_footer_background(self: &Self) -> Option<Rc<dyn IBrush>>
Gets or sets the background brush of the drawer footer area.
set_drawer_footer_background
fn set_drawer_footer_background(self: &Self, value: Option<Rc<dyn IBrush>>)
drawer_footer_foreground
fn drawer_footer_foreground(self: &Self) -> Option<Rc<dyn IBrush>>
Gets or sets the foreground brush of the drawer footer area.
set_drawer_footer_foreground
fn set_drawer_footer_foreground(self: &Self, value: Option<Rc<dyn IBrush>>)
backdrop_brush
fn backdrop_brush(self: &Self) -> Option<Rc<dyn IBrush>>
Gets or sets the backdrop brush for overlay mode.
set_backdrop_brush
fn set_backdrop_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
horizontal_content_alignment
fn horizontal_content_alignment(self: &Self) -> HorizontalAlignment
Gets or sets the horizontal alignment of the detail content.
set_horizontal_content_alignment
fn set_horizontal_content_alignment(self: &Self, value: HorizontalAlignment)
vertical_content_alignment
fn vertical_content_alignment(self: &Self) -> VerticalAlignment
Gets or sets the vertical alignment of the detail content.
set_vertical_content_alignment
fn set_vertical_content_alignment(self: &Self, value: VerticalAlignment)
display_mode
fn display_mode(self: &Self) -> SplitViewDisplayMode
Gets or sets the display mode of the split view.
set_display_mode
fn set_display_mode(self: &Self, value: SplitViewDisplayMode)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtControlImplExtPageImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<DrawerPage>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleLayoutableImplInteractiveImplFerroObjectImplStyledElementImplVisualImplInputElementImplControlImplTemplatedControlImplPageImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.