[]Struct moxie_dom::prelude::event::ContextMenu

pub struct ContextMenu(_);

The right button of the mouse is clicked (before the context menu is displayed). MDN documentation

Methods from Deref<Target = MouseEvent>

pub fn screen_x(&self) -> i32[src]

Getter for the screenX field of this object.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent

pub fn screen_y(&self) -> i32[src]

Getter for the screenY field of this object.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent

pub fn client_x(&self) -> i32[src]

Getter for the clientX field of this object.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent

pub fn client_y(&self) -> i32[src]

Getter for the clientY field of this object.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent

pub fn x(&self) -> i32[src]

Getter for the x field of this object.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent

pub fn y(&self) -> i32[src]

Getter for the y field of this object.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent

pub fn offset_x(&self) -> i32[src]

Getter for the offsetX field of this object.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent

pub fn offset_y(&self) -> i32[src]

Getter for the offsetY field of this object.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent

pub fn ctrl_key(&self) -> bool[src]

Getter for the ctrlKey field of this object.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent

pub fn shift_key(&self) -> bool[src]

Getter for the shiftKey field of this object.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent

pub fn alt_key(&self) -> bool[src]

Getter for the altKey field of this object.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent

pub fn meta_key(&self) -> bool[src]

Getter for the metaKey field of this object.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent

pub fn button(&self) -> i16[src]

Getter for the button field of this object.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent

pub fn buttons(&self) -> u16[src]

Getter for the buttons field of this object.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent

pub fn related_target(&self) -> Option<EventTarget>[src]

Getter for the relatedTarget field of this object.

MDN Documentation

This API requires the following crate features to be activated: EventTarget, MouseEvent

pub fn region(&self) -> Option<String>[src]

Getter for the region field of this object.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent

pub fn movement_x(&self) -> i32[src]

Getter for the movementX field of this object.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent

pub fn movement_y(&self) -> i32[src]

Getter for the movementY field of this object.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent

pub fn get_modifier_state(&self, key_arg: &str) -> bool[src]

The getModifierState() method.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent

pub fn init_mouse_event(&self, type_arg: &str)[src]

The initMouseEvent() method.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent

pub fn init_mouse_event_with_can_bubble_arg(
    &self,
    type_arg: &str,
    can_bubble_arg: bool
)
[src]

The initMouseEvent() method.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent

pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg(
    &self,
    type_arg: &str,
    can_bubble_arg: bool,
    cancelable_arg: bool
)
[src]

The initMouseEvent() method.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent

pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg(
    &self,
    type_arg: &str,
    can_bubble_arg: bool,
    cancelable_arg: bool,
    view_arg: Option<&Window>
)
[src]

The initMouseEvent() method.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent, Window

pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg(
    &self,
    type_arg: &str,
    can_bubble_arg: bool,
    cancelable_arg: bool,
    view_arg: Option<&Window>,
    detail_arg: i32
)
[src]

The initMouseEvent() method.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent, Window

pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg(
    &self,
    type_arg: &str,
    can_bubble_arg: bool,
    cancelable_arg: bool,
    view_arg: Option<&Window>,
    detail_arg: i32,
    screen_x_arg: i32
)
[src]

The initMouseEvent() method.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent, Window

pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg(
    &self,
    type_arg: &str,
    can_bubble_arg: bool,
    cancelable_arg: bool,
    view_arg: Option<&Window>,
    detail_arg: i32,
    screen_x_arg: i32,
    screen_y_arg: i32
)
[src]

The initMouseEvent() method.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent, Window

pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg(
    &self,
    type_arg: &str,
    can_bubble_arg: bool,
    cancelable_arg: bool,
    view_arg: Option<&Window>,
    detail_arg: i32,
    screen_x_arg: i32,
    screen_y_arg: i32,
    client_x_arg: i32
)
[src]

The initMouseEvent() method.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent, Window

pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg(
    &self,
    type_arg: &str,
    can_bubble_arg: bool,
    cancelable_arg: bool,
    view_arg: Option<&Window>,
    detail_arg: i32,
    screen_x_arg: i32,
    screen_y_arg: i32,
    client_x_arg: i32,
    client_y_arg: i32
)
[src]

The initMouseEvent() method.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent, Window

pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg(
    &self,
    type_arg: &str,
    can_bubble_arg: bool,
    cancelable_arg: bool,
    view_arg: Option<&Window>,
    detail_arg: i32,
    screen_x_arg: i32,
    screen_y_arg: i32,
    client_x_arg: i32,
    client_y_arg: i32,
    ctrl_key_arg: bool
)
[src]

The initMouseEvent() method.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent, Window

pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg(
    &self,
    type_arg: &str,
    can_bubble_arg: bool,
    cancelable_arg: bool,
    view_arg: Option<&Window>,
    detail_arg: i32,
    screen_x_arg: i32,
    screen_y_arg: i32,
    client_x_arg: i32,
    client_y_arg: i32,
    ctrl_key_arg: bool,
    alt_key_arg: bool
)
[src]

The initMouseEvent() method.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent, Window

pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg_and_shift_key_arg(
    &self,
    type_arg: &str,
    can_bubble_arg: bool,
    cancelable_arg: bool,
    view_arg: Option<&Window>,
    detail_arg: i32,
    screen_x_arg: i32,
    screen_y_arg: i32,
    client_x_arg: i32,
    client_y_arg: i32,
    ctrl_key_arg: bool,
    alt_key_arg: bool,
    shift_key_arg: bool
)
[src]

The initMouseEvent() method.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent, Window

pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg_and_shift_key_arg_and_meta_key_arg(
    &self,
    type_arg: &str,
    can_bubble_arg: bool,
    cancelable_arg: bool,
    view_arg: Option<&Window>,
    detail_arg: i32,
    screen_x_arg: i32,
    screen_y_arg: i32,
    client_x_arg: i32,
    client_y_arg: i32,
    ctrl_key_arg: bool,
    alt_key_arg: bool,
    shift_key_arg: bool,
    meta_key_arg: bool
)
[src]

The initMouseEvent() method.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent, Window

pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg_and_shift_key_arg_and_meta_key_arg_and_button_arg(
    &self,
    type_arg: &str,
    can_bubble_arg: bool,
    cancelable_arg: bool,
    view_arg: Option<&Window>,
    detail_arg: i32,
    screen_x_arg: i32,
    screen_y_arg: i32,
    client_x_arg: i32,
    client_y_arg: i32,
    ctrl_key_arg: bool,
    alt_key_arg: bool,
    shift_key_arg: bool,
    meta_key_arg: bool,
    button_arg: i16
)
[src]

The initMouseEvent() method.

MDN Documentation

This API requires the following crate features to be activated: MouseEvent, Window

The initMouseEvent() method.

MDN Documentation

This API requires the following crate features to be activated: EventTarget, MouseEvent, Window

Trait Implementations

impl AsRef<Event> for ContextMenu[src]

impl AsRef<JsValue> for ContextMenu[src]

impl Debug for ContextMenu[src]

impl Deref for ContextMenu[src]

type Target = MouseEvent

The resulting type after dereferencing.

impl Event for ContextMenu[src]

impl From<ContextMenu> for JsValue[src]

impl FromWasmAbi for ContextMenu[src]

type Abi = u32

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl GlobalEvent for ContextMenu[src]

impl IntoWasmAbi for ContextMenu[src]

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for ContextMenu[src]

impl OptionFromWasmAbi for ContextMenu[src]

impl OptionIntoWasmAbi for ContextMenu[src]

impl RefFromWasmAbi for ContextMenu[src]

type Abi = u32

The wasm ABI type references to Self are recovered from.

type Anchor = Ref<'static, ContextMenu>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl RefMutFromWasmAbi for ContextMenu[src]

type Abi = u32

Same as RefFromWasmAbi::Abi

type Anchor = RefMut<'static, ContextMenu>

Same as RefFromWasmAbi::Anchor

Auto Trait Implementations

impl RefUnwindSafe for ContextMenu

impl !Send for ContextMenu

impl !Sync for ContextMenu

impl Unpin for ContextMenu

impl UnwindSafe for ContextMenu

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsContext for T where
    T: Debug + 'static, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pretty for T where
    T: AsRef<JsValue>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.