pub struct MenuEventData { /* private fields */ }Expand description
Event data for menu events
Implementations§
Source§impl MenuEventData
impl MenuEventData
Gets the menu ID (for wxEVT_MENU_OPEN, wxEVT_MENU_CLOSE, wxEVT_MENU_HIGHLIGHT)
Sourcepub fn get_context_position(&self) -> Option<Point>
pub fn get_context_position(&self) -> Option<Point>
Gets the context menu position (for wxEVT_CONTEXT_MENU)
Source§impl MenuEventData
Convenience methods for menu event handling
impl MenuEventData
Convenience methods for menu event handling
Sourcepub fn get_event_type_name(&self) -> &'static str
pub fn get_event_type_name(&self) -> &'static str
Gets a string description of the menu event type
Sourcepub fn format_for_logging(&self) -> String
pub fn format_for_logging(&self) -> String
Formats the menu event data for logging
Trait Implementations§
Auto Trait Implementations§
impl !Send for MenuEventData
impl !Sync for MenuEventData
impl Freeze for MenuEventData
impl RefUnwindSafe for MenuEventData
impl Unpin for MenuEventData
impl UnsafeUnpin for MenuEventData
impl UnwindSafe for MenuEventData
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