NavigationViewTemplateSettings
struct · ferroui-controls · v0.5.0
struct NavigationViewTemplateSettings
The values the template of a NavigationView binds to
(TemplateSettings), which the navigation view sets. Each navigation view has its own.
WinUI's Visibility values are bools here (true is Visible), as the IsVisible they are
bound to.
Members
TYPEto_reftop_padding_propertyoverflow_button_visibility_propertypane_toggle_button_visibility_propertyback_button_visibility_propertytop_pane_visibility_propertyleft_pane_visibility_propertysingle_selection_follows_focus_propertypane_toggle_button_width_propertysmaller_pane_toggle_button_width_propertyopen_pane_length_propertyconstructnewtop_paddingoverflow_button_visibilitypane_toggle_button_visibilityback_button_visibilitytop_pane_visibilityleft_pane_visibilitysingle_selection_follows_focuspane_toggle_button_widthsmaller_pane_toggle_button_widthopen_pane_length
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<NavigationViewTemplateSettings>
Returns a strong reference to this object.
top_padding_property
fn top_padding_property() -> &'static StyledProperty<f64>
Defines the TopPadding property: the height above the pane and the content (the title
bar of WinUI's window when the content extends into it; 0 in FerroUI).
overflow_button_visibility_property
fn overflow_button_visibility_property() -> &'static StyledProperty<bool>
Defines the OverflowButtonVisibility property: whether the overflow button of the top pane
is shown (always false: the overflow of the top pane is not ported).
pane_toggle_button_visibility_property
fn pane_toggle_button_visibility_property() -> &'static StyledProperty<bool>
Defines the PaneToggleButtonVisibility property: whether the pane toggle button is shown.
back_button_visibility_property
fn back_button_visibility_property() -> &'static StyledProperty<bool>
Defines the BackButtonVisibility property: whether the back button is shown.
top_pane_visibility_property
fn top_pane_visibility_property() -> &'static StyledProperty<bool>
Defines the TopPaneVisibility property: whether the top pane is shown.
left_pane_visibility_property
fn left_pane_visibility_property() -> &'static StyledProperty<bool>
Defines the LeftPaneVisibility property: whether the left pane is shown.
single_selection_follows_focus_property
fn single_selection_follows_focus_property() -> &'static StyledProperty<bool>
Defines the SingleSelectionFollowsFocus property: whether the selection follows the
focus.
pane_toggle_button_width_property
fn pane_toggle_button_width_property() -> &'static StyledProperty<f64>
Defines the PaneToggleButtonWidth property: the width of the pane toggle button, the
compact pane length.
smaller_pane_toggle_button_width_property
fn smaller_pane_toggle_button_width_property() -> &'static StyledProperty<f64>
Defines the SmallerPaneToggleButtonWidth property: the compact pane length less 8, the width
of the back button and of the icon column of the items.
open_pane_length_property
fn open_pane_length_property() -> &'static StyledProperty<f64>
Defines the OpenPaneLength property: the open pane length, at most the width of the
navigation view.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates the settings of a navigation view.
top_padding
fn top_padding(self: &Self) -> f64
Gets the height above the pane and the content.
overflow_button_visibility
fn overflow_button_visibility(self: &Self) -> bool
Gets whether the overflow button of the top pane is shown.
pane_toggle_button_visibility
fn pane_toggle_button_visibility(self: &Self) -> bool
Gets whether the pane toggle button is shown.
back_button_visibility
fn back_button_visibility(self: &Self) -> bool
Gets whether the back button is shown.
top_pane_visibility
fn top_pane_visibility(self: &Self) -> bool
Gets whether the top pane is shown.
left_pane_visibility
fn left_pane_visibility(self: &Self) -> bool
Gets whether the left pane is shown.
single_selection_follows_focus
fn single_selection_follows_focus(self: &Self) -> bool
Gets whether the selection follows the focus.
pane_toggle_button_width
fn pane_toggle_button_width(self: &Self) -> f64
Gets the width of the pane toggle button.
smaller_pane_toggle_button_width
fn smaller_pane_toggle_button_width(self: &Self) -> f64
Gets the compact pane length less 8.
open_pane_length
fn open_pane_length(self: &Self) -> f64
Gets the open pane length, at most the width of the navigation view.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<NavigationViewTemplateSettings>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.