pub struct NavigationSuiteDestination {
pub icon: WidgetRef,
pub selected_icon: Option<WidgetRef>,
pub label: String,
pub enabled: bool,
}Expand description
One destination in a navigation suite.
Fields§
§icon: WidgetRefThe icon shown when the destination is not selected.
selected_icon: Option<WidgetRef>The icon shown when it is selected.
label: StringIts label.
enabled: boolWhether it can be selected.
Implementations§
Sourcepub fn new<K>(
icon: impl IntoWidget<K>,
label: impl Into<String>,
) -> NavigationSuiteDestination
pub fn new<K>( icon: impl IntoWidget<K>, label: impl Into<String>, ) -> NavigationSuiteDestination
Creates a destination with an icon and a label.
Sourcepub fn selected_icon<K>(
self,
selected_icon: impl IntoWidget<K>,
) -> NavigationSuiteDestination
pub fn selected_icon<K>( self, selected_icon: impl IntoWidget<K>, ) -> NavigationSuiteDestination
The icon shown when the destination is selected.
Sourcepub fn enabled(self, enabled: bool) -> NavigationSuiteDestination
pub fn enabled(self, enabled: bool) -> NavigationSuiteDestination
Whether the destination can be selected. Defaults to true.
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more