pub struct ContextMenu { /* private fields */ }Implementations§
Source§impl ContextMenu
impl ContextMenu
pub fn prevent_default(&self)
pub fn stop_propagation(&self)
pub fn stop_immediate_propagation(&self)
pub fn target(&self) -> Option<EventTarget>
pub fn dyn_target<A>(&self) -> Option<A>where
A: JsCast,
Source§impl ContextMenu
impl ContextMenu
pub fn x(&self) -> i32
pub fn y(&self) -> i32
pub fn movement_x(&self) -> i32
pub fn movement_y(&self) -> i32
pub fn offset_x(&self) -> i32
pub fn offset_y(&self) -> i32
pub fn page_x(&self) -> i32
pub fn page_y(&self) -> i32
pub fn screen_x(&self) -> i32
pub fn screen_y(&self) -> i32
pub fn ctrl_key(&self) -> bool
pub fn shift_key(&self) -> bool
pub fn alt_key(&self) -> bool
pub fn mouse_x(&self) -> i32
pub fn mouse_y(&self) -> i32
Trait Implementations§
Source§impl Debug for ContextMenu
impl Debug for ContextMenu
Source§impl StaticEvent for ContextMenu
impl StaticEvent for ContextMenu
const EVENT_TYPE: &'static str = "contextmenu"
fn unchecked_from_event(event: Event) -> Self
Auto Trait Implementations§
impl Freeze for ContextMenu
impl RefUnwindSafe for ContextMenu
impl !Send for ContextMenu
impl !Sync for ContextMenu
impl Unpin for ContextMenu
impl UnwindSafe for ContextMenu
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