pub struct MenuLine<'a> { /* private fields */ }Expand description
Main menu widget.
Implementations§
Source§impl<'a> MenuLine<'a>
impl<'a> MenuLine<'a>
Sourcepub fn item_parsed(self, text: &'a str) -> Self
pub fn item_parsed(self, text: &'a str) -> Self
Sourcepub fn item_string(self, txt: String) -> Self
pub fn item_string(self, txt: String) -> Self
Add an owned text as item.
Sourcepub fn highlight_style(self, style: Style) -> Self
pub fn highlight_style(self, style: Style) -> Self
Shortcut highlight style.
Sourcepub fn highlight_style_opt(self, style: Option<Style>) -> Self
pub fn highlight_style_opt(self, style: Option<Style>) -> Self
Shortcut highlight style.
Sourcepub fn disabled_style(self, style: Style) -> Self
pub fn disabled_style(self, style: Style) -> Self
Disabled item style.
Sourcepub fn disabled_style_opt(self, style: Option<Style>) -> Self
pub fn disabled_style_opt(self, style: Option<Style>) -> Self
Disabled item style.
Sourcepub fn right_style(self, style: Style) -> Self
pub fn right_style(self, style: Style) -> Self
Style for the hotkey.
Sourcepub fn right_style_opt(self, style: Option<Style>) -> Self
pub fn right_style_opt(self, style: Option<Style>) -> Self
Style for the hotkey.
Sourcepub fn title_style(self, style: Style) -> Self
pub fn title_style(self, style: Style) -> Self
Menu-title style.
Sourcepub fn title_style_opt(self, style: Option<Style>) -> Self
pub fn title_style_opt(self, style: Option<Style>) -> Self
Menu-title style.
Sourcepub fn select_style(self, style: Style) -> Self
pub fn select_style(self, style: Style) -> Self
Selection
Sourcepub fn select_style_opt(self, style: Option<Style>) -> Self
pub fn select_style_opt(self, style: Option<Style>) -> Self
Selection
Sourcepub fn focus_style(self, style: Style) -> Self
pub fn focus_style(self, style: Style) -> Self
Selection + Focus
Sourcepub fn focus_style_opt(self, style: Option<Style>) -> Self
pub fn focus_style_opt(self, style: Option<Style>) -> Self
Selection + Focus
Trait Implementations§
Source§impl StatefulWidget for MenuLine<'_>
impl StatefulWidget for MenuLine<'_>
Auto Trait Implementations§
impl<'a> Freeze for MenuLine<'a>
impl<'a> RefUnwindSafe for MenuLine<'a>
impl<'a> Send for MenuLine<'a>
impl<'a> Sync for MenuLine<'a>
impl<'a> Unpin for MenuLine<'a>
impl<'a> UnwindSafe for MenuLine<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more