pub struct MenuContext { /* private fields */ }Expand description
Menu state context — provides named boolean states for menu item conditions.
Both when conditions (controlling enabled/disabled state) and checkbox
states (controlling checkmark display) look up values here. The editor
computes these values each frame from its internal state and exposes the
context to the GUI layer via the GuiApplication trait so that
platform-native menus can reflect the same state as the TUI menu bar.
Implementations§
Trait Implementations§
Source§impl Clone for MenuContext
impl Clone for MenuContext
Source§fn clone(&self) -> MenuContext
fn clone(&self) -> MenuContext
Returns a duplicate 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 Debug for MenuContext
impl Debug for MenuContext
Source§impl Default for MenuContext
impl Default for MenuContext
Source§fn default() -> MenuContext
fn default() -> MenuContext
Returns the “default value” for a type. Read more
Source§impl PartialEq for MenuContext
impl PartialEq for MenuContext
impl StructuralPartialEq for MenuContext
Auto Trait Implementations§
impl Freeze for MenuContext
impl RefUnwindSafe for MenuContext
impl Send for MenuContext
impl Sync for MenuContext
impl Unpin for MenuContext
impl UnsafeUnpin for MenuContext
impl UnwindSafe for MenuContext
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