Struct rat_widget::menubar::MenuBar
source · pub struct MenuBar<'a> { /* private fields */ }Expand description
MenuBar widget.
This is only half of the widget. For popup rendering there is the separate MenuPopup.
Implementations§
source§impl<'a> MenuBar<'a>
impl<'a> MenuBar<'a>
pub fn new() -> Self
Menu-Structure
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 MenuBar<'a>
impl<'a> StatefulWidget for MenuBar<'a>
source§impl<'a> StatefulWidgetRef for MenuBar<'a>
impl<'a> StatefulWidgetRef for MenuBar<'a>
§type State = MenuBarState
type State = MenuBarState
State associated with the stateful widget. Read more
Auto Trait Implementations§
impl<'a> Freeze for MenuBar<'a>
impl<'a> RefUnwindSafe for MenuBar<'a>
impl<'a> Send for MenuBar<'a>
impl<'a> Sync for MenuBar<'a>
impl<'a> Unpin for MenuBar<'a>
impl<'a> UnwindSafe for MenuBar<'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