Struct biji_ui::components::menubar::context::RootContext
source · pub struct RootContext {
pub item_focus: RwSignal<Option<usize>>,
pub items: RwSignal<HashMap<usize, MenuContext>>,
pub allow_menu_loop: bool,
pub allow_item_loop: bool,
}Fields§
§item_focus: RwSignal<Option<usize>>§items: RwSignal<HashMap<usize, MenuContext>>§allow_item_loop: boolImplementations§
source§impl RootContext
impl RootContext
pub fn upsert_item(&self, index: usize, item: MenuContext)
pub fn remove_item(&self, index: usize)
pub fn close_all(&self)
pub fn next_index(&self) -> usize
pub fn focus_active_item(&self) -> bool
Trait Implementations§
source§impl Clone for RootContext
impl Clone for RootContext
source§fn clone(&self) -> RootContext
fn clone(&self) -> RootContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for RootContext
impl Default for RootContext
source§impl FilterActiveItems<MenuContext> for RootContext
impl FilterActiveItems<MenuContext> for RootContext
fn filter_active_items(&self) -> Vec<MenuContext>
source§impl ManageFocus for RootContext
impl ManageFocus for RootContext
impl Copy for RootContext
Auto Trait Implementations§
impl Freeze for RootContext
impl !RefUnwindSafe for RootContext
impl !Send for RootContext
impl !Sync for RootContext
impl Unpin for RootContext
impl !UnwindSafe for RootContext
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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