Struct rat_widget::menuline::MenuLine
source · pub struct MenuLine<'a> { /* private fields */ }Expand description
One line menu widget.
Implementations§
source§impl<'a> MenuLine<'a>
impl<'a> MenuLine<'a>
sourcepub fn add(self, item: Line<'a>, navchar: Option<char>) -> Self
pub fn add(self, item: Line<'a>, navchar: Option<char>) -> Self
Add a formatted item. The navchar is optional, any markup for it is your problem.
sourcepub fn title_style(self, style: Style) -> Self
pub fn title_style(self, style: Style) -> Self
Menu-title style.
sourcepub fn select_style(self, style: Style) -> Self
pub fn select_style(self, style: Style) -> Self
Selection
sourcepub fn focus_style(self, style: Style) -> Self
pub fn focus_style(self, style: Style) -> Self
Selection + Focus
Trait Implementations§
source§impl<'a> StatefulWidget for MenuLine<'a>
impl<'a> StatefulWidget for MenuLine<'a>
source§impl<'a> StatefulWidgetRef for MenuLine<'a>
impl<'a> StatefulWidgetRef for MenuLine<'a>
§type State = MenuLineState
type State = MenuLineState
State associated with the stateful widget. Read more
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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