pub fn event(
        &mut self,
        queue: &mut CommandQueue,
        window: Option<WindowId>,
        id: MenuItemId,
        data: &mut T,
        env: &Env,
    ) {
        if let Some(m) = &mut self.menu {
            let mut ctx = MenuEventCtx { window, queue };
            m.activate(&mut ctx, id, data, env);
        }
    }
/// Called when a menu event is received from the system.
Called when a menu event is received from the system.
Called when a menu event is received from the system .
pub fn event(
        &mut self,
        queue: &mut CommandQueue,
        window: Option<WindowId>,
        id: MenuItemId,
        data: &mut T,
        env: &Env,
    ) {
        if let Some(m) = &mut self.menu {
            let mut ctx = MenuEventCtx { window, queue };
            m.activate(&mut ctx, id, data, env);
        }
    }
pub fn event ( & mut self , queue : & mut CommandQueue , window : Option < WindowId > , id : MenuItemId , data : & mut T , env : & Env , ) { if let Some ( m ) = & mut self . menu { let mut ctx = MenuEventCtx { window , queue } ; m . activate ( & mut ctx , id , data , env ) ; } }
Called when a menu event is received from the system.
Called when a menu event is received from the system .
&mut self
queue
&mut CommandQueue
window
Option<WindowId>
id
MenuItemId
data
&mut T
env
&Env
&mut self
queue
&mut CommandQueue
window
Option<WindowId>
id
MenuItemId
data
&mut T
env
&Env