FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SplitView

    struct · ferroui-controls · v0.5.0

    struct SplitView
    

    A control with two views: a collapsible pane and an area for content.

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

    Returns a strong reference to this object.

    Source

    on_pane_opening

    fn on_pane_opening(self: &Self, args: &CancelRoutedEventArgs)
    

    Raises the PaneOpening event.

    Source

    on_pane_opened

    fn on_pane_opened(self: &Self, args: &RoutedEventArgs)
    

    Raises the PaneOpened event.

    Source

    on_pane_closing

    fn on_pane_closing(self: &Self, args: &CancelRoutedEventArgs)
    

    Raises the PaneClosing event.

    Source

    on_pane_closed

    fn on_pane_closed(self: &Self, args: &RoutedEventArgs)
    

    Raises the PaneClosed event.

    Source

    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.

    Source

    compact_pane_length_property

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

    Defines the CompactPaneLength property.

    Source

    display_mode_property

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

    Defines the DisplayMode property.

    Source

    is_pane_open_property

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

    Defines the IsPaneOpen property.

    Source

    open_pane_length_property

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

    Defines the OpenPaneLength property.

    Source

    pane_background_property

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

    Defines the PaneBackground property.

    Source

    pane_placement_property

    fn pane_placement_property() -> &'static StyledProperty<SplitViewPanePlacement>
    

    Defines the PanePlacement property.

    Source

    pane_property

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

    Defines the Pane property.

    Source

    pane_template_property

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

    Defines the PaneTemplate property.

    Source

    use_light_dismiss_overlay_mode_property

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

    Defines the UseLightDismissOverlayMode property.

    Source

    template_settings_property

    fn template_settings_property() -> &'static DirectProperty<SplitView, Ref<SplitViewTemplateSettings>>
    

    Defines the TemplateSettings property.

    Source

    pane_closed_event

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

    Defines the PaneClosed event.

    Source

    pane_closing_event

    fn pane_closing_event() -> &'static RoutedEvent<CancelRoutedEventArgs>
    

    Defines the PaneClosing event.

    Source

    pane_opened_event

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

    Defines the PaneOpened event.

    Source

    pane_opening_event

    fn pane_opening_event() -> &'static RoutedEvent<CancelRoutedEventArgs>
    

    Defines the PaneOpening event.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    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.

    Source

    set_compact_pane_length

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

    Source

    display_mode

    fn display_mode(self: &Self) -> SplitViewDisplayMode
    

    The display mode of the split view.

    Source

    set_display_mode

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

    Source

    is_pane_open

    fn is_pane_open(self: &Self) -> bool
    

    Whether the pane is open or closed.

    Source

    set_is_pane_open

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

    Source

    open_pane_length

    fn open_pane_length(self: &Self) -> f64
    

    The length of the pane when open.

    Source

    set_open_pane_length

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

    Source

    pane_background

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

    The background of the pane.

    Source

    set_pane_background

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

    Source

    pane_placement

    fn pane_placement(self: &Self) -> SplitViewPanePlacement
    

    The placement of the pane.

    Source

    set_pane_placement

    fn set_pane_placement(self: &Self, value: SplitViewPanePlacement)
    

    Source

    pane

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

    The pane of the split view.

    Source

    set_pane

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

    Source

    pane_template

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

    The data template used to display the pane content of the control.

    Source

    set_pane_template

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

    Source

    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.

    Source

    set_use_light_dismiss_overlay_mode

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

    Source

    template_settings

    fn template_settings(self: &Self) -> Ref<SplitViewTemplateSettings>
    

    The template settings of the split view.

    Source

    pane_closed

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

    Fired when the pane is closed.

    Source

    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.

    Source

    pane_opened

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

    Fired when the pane is opened.

    Source

    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.

    Source

    Trait implementations

    Availability

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