SplitView
struct · ferroui-controls · v0.5.0
struct SplitView
A control with two views: a collapsible pane and an area for content.
Members
TYPEto_refon_pane_openingon_pane_openedon_pane_closingon_pane_closedon_coerce_is_pane_opencompact_pane_length_propertydisplay_mode_propertyis_pane_open_propertyopen_pane_length_propertypane_background_propertypane_placement_propertypane_propertypane_template_propertyuse_light_dismiss_overlay_mode_propertytemplate_settings_propertypane_closed_eventpane_closing_eventpane_opened_eventpane_opening_eventconstructnewcompact_pane_lengthset_compact_pane_lengthdisplay_modeset_display_modeis_pane_openset_is_pane_openopen_pane_lengthset_open_pane_lengthpane_backgroundset_pane_backgroundpane_placementset_pane_placementpaneset_panepane_templateset_pane_templateuse_light_dismiss_overlay_modeset_use_light_dismiss_overlay_modetemplate_settingspane_closedpane_closingpane_openedpane_opening
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<SplitView>
Returns a strong reference to this object.
on_pane_opening
fn on_pane_opening(self: &Self, args: &CancelRoutedEventArgs)
Raises the PaneOpening event.
on_pane_opened
fn on_pane_opened(self: &Self, args: &RoutedEventArgs)
Raises the PaneOpened event.
on_pane_closing
fn on_pane_closing(self: &Self, args: &CancelRoutedEventArgs)
Raises the PaneClosing event.
on_pane_closed
fn on_pane_closed(self: &Self, args: &RoutedEventArgs)
Raises the PaneClosed event.
on_coerce_is_pane_open
fn on_coerce_is_pane_open(self: &Self, value: bool) -> bool
Called when the IsPaneOpen property has to be coerced.
compact_pane_length_property
fn compact_pane_length_property() -> &'static StyledProperty<f64>
Defines the CompactPaneLength property.
display_mode_property
fn display_mode_property() -> &'static StyledProperty<SplitViewDisplayMode>
Defines the DisplayMode property.
is_pane_open_property
fn is_pane_open_property() -> &'static StyledProperty<bool>
Defines the IsPaneOpen property.
open_pane_length_property
fn open_pane_length_property() -> &'static StyledProperty<f64>
Defines the OpenPaneLength property.
pane_background_property
fn pane_background_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
Defines the PaneBackground property.
pane_placement_property
fn pane_placement_property() -> &'static StyledProperty<SplitViewPanePlacement>
Defines the PanePlacement property.
pane_property
fn pane_property() -> &'static StyledProperty<Option<BoxedValue>>
Defines the Pane property.
pane_template_property
fn pane_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
Defines the PaneTemplate property.
use_light_dismiss_overlay_mode_property
fn use_light_dismiss_overlay_mode_property() -> &'static StyledProperty<bool>
Defines the UseLightDismissOverlayMode property.
template_settings_property
fn template_settings_property() -> &'static DirectProperty<SplitView, Ref<SplitViewTemplateSettings>>
Defines the TemplateSettings property.
pane_closed_event
fn pane_closed_event() -> &'static RoutedEvent<RoutedEventArgs>
Defines the PaneClosed event.
pane_closing_event
fn pane_closing_event() -> &'static RoutedEvent<CancelRoutedEventArgs>
Defines the PaneClosing event.
pane_opened_event
fn pane_opened_event() -> &'static RoutedEvent<RoutedEventArgs>
Defines the PaneOpened event.
pane_opening_event
fn pane_opening_event() -> &'static RoutedEvent<CancelRoutedEventArgs>
Defines the PaneOpening event.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
compact_pane_length
fn compact_pane_length(self: &Self) -> f64
The length of the pane when in the compact overlay or the compact inline mode.
set_compact_pane_length
fn set_compact_pane_length(self: &Self, value: f64)
display_mode
fn display_mode(self: &Self) -> SplitViewDisplayMode
The display mode of the split view.
set_display_mode
fn set_display_mode(self: &Self, value: SplitViewDisplayMode)
is_pane_open
fn is_pane_open(self: &Self) -> bool
Whether the pane is open or closed.
set_is_pane_open
fn set_is_pane_open(self: &Self, value: bool)
open_pane_length
fn open_pane_length(self: &Self) -> f64
The length of the pane when open.
set_open_pane_length
fn set_open_pane_length(self: &Self, value: f64)
pane_background
fn pane_background(self: &Self) -> Option<Rc<dyn IBrush>>
The background of the pane.
set_pane_background
fn set_pane_background(self: &Self, value: Option<Rc<dyn IBrush>>)
pane_placement
fn pane_placement(self: &Self) -> SplitViewPanePlacement
The placement of the pane.
set_pane_placement
fn set_pane_placement(self: &Self, value: SplitViewPanePlacement)
pane
fn pane(self: &Self) -> Option<BoxedValue>
The pane of the split view.
set_pane
fn set_pane(self: &Self, value: Option<BoxedValue>)
pane_template
fn pane_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
The data template used to display the pane content of the control.
set_pane_template
fn set_pane_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
use_light_dismiss_overlay_mode
fn use_light_dismiss_overlay_mode(self: &Self) -> bool
Whether the light dismiss overlay mode is enabled.
When enabled, and the pane is open in the overlay or the compact overlay mode, the contents of the split view are darkened to visually separate the open pane and the rest of the split view.
set_use_light_dismiss_overlay_mode
fn set_use_light_dismiss_overlay_mode(self: &Self, value: bool)
template_settings
fn template_settings(self: &Self) -> Ref<SplitViewTemplateSettings>
The template settings of the split view.
pane_closed
fn pane_closed(self: &Self, handler: impl Fn(&Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Fired when the pane is closed.
pane_closing
fn pane_closing(self: &Self, handler: impl Fn(&Interactive, &CancelRoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Fired when the pane is closing.
The cancel property of the event args may be set to true to cancel
the event and keep the pane open.
pane_opened
fn pane_opened(self: &Self, handler: impl Fn(&Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Fired when the pane is opened.
pane_opening
fn pane_opening(self: &Self, handler: impl Fn(&Interactive, &CancelRoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Fired when the pane is opening.
The cancel property of the event args may be set to true to cancel
the event and keep the pane closed.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtContentControlImplExtControlImplExtSplitViewImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<SplitView>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplLayoutableImplInteractiveImplControlImplFerroObjectImplVisualImplInputElementImplTemplatedControlImplContentControlImplSplitViewImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.