Struct rat_widget::menuline::RMenuLine
source · pub struct RMenuLine<'a> { /* private fields */ }Expand description
Menu widget.
If the text exceeds the area width it wraps around.
Implementations§
source§impl<'a> RMenuLine<'a>
impl<'a> RMenuLine<'a>
sourcepub fn title_style(self, style: impl Into<Style>) -> Self
pub fn title_style(self, style: impl Into<Style>) -> Self
Menu-title style.
sourcepub fn select_style(self, style: impl Into<Style>) -> Self
pub fn select_style(self, style: impl Into<Style>) -> Self
Selection
sourcepub fn select_style_focus(self, style: impl Into<Style>) -> Self
pub fn select_style_focus(self, style: impl Into<Style>) -> Self
Selection + Focus
Trait Implementations§
source§impl<'a> StatefulWidget for RMenuLine<'a>
impl<'a> StatefulWidget for RMenuLine<'a>
source§impl<'a> StatefulWidgetRef for RMenuLine<'a>
impl<'a> StatefulWidgetRef for RMenuLine<'a>
§type State = RMenuLineState
type State = RMenuLineState
State associated with the stateful widget. Read more
Auto Trait Implementations§
impl<'a> Freeze for RMenuLine<'a>
impl<'a> RefUnwindSafe for RMenuLine<'a>
impl<'a> Send for RMenuLine<'a>
impl<'a> Sync for RMenuLine<'a>
impl<'a> Unpin for RMenuLine<'a>
impl<'a> UnwindSafe for RMenuLine<'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> 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