Trait MouseEventMethods

Source
pub(crate) trait MouseEventMethods<D>
where D: DomTypes,
{
Show 22 methods // Required methods fn ScreenX(&self) -> i32; fn ScreenY(&self) -> i32; fn ClientX(&self) -> i32; fn ClientY(&self) -> i32; fn PageX(&self) -> i32; fn PageY(&self) -> i32; fn X(&self) -> i32; fn Y(&self) -> i32; fn OffsetX(&self) -> i32; fn OffsetY(&self) -> i32; fn CtrlKey(&self) -> bool; fn ShiftKey(&self) -> bool; fn AltKey(&self) -> bool; fn MetaKey(&self) -> bool; fn Button(&self) -> i16; fn GetRelatedTarget( &self, ) -> Option<Root<Dom<<D as DomTypes>::EventTarget>>>; fn Buttons(&self) -> u16; fn GetModifierState(&self, keyArg: DOMString) -> bool; fn Which(&self) -> i32; fn InitMouseEvent( &self, typeArg: DOMString, bubblesArg: bool, cancelableArg: bool, viewArg: Option<&<D as DomTypes>::Window>, detailArg: i32, screenXArg: i32, screenYArg: i32, clientXArg: i32, clientYArg: i32, ctrlKeyArg: bool, altKeyArg: bool, shiftKeyArg: bool, metaKeyArg: bool, buttonArg: i16, relatedTargetArg: Option<&<D as DomTypes>::EventTarget>, ); fn IsTrusted(&self) -> bool; fn Constructor( global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, typeArg: DOMString, mouseEventInitDict: &MouseEventInit<D>, ) -> Result<Root<Dom<<D as DomTypes>::MouseEvent>>, Error>;
}

Required Methods§

Source

fn ScreenX(&self) -> i32

Source

fn ScreenY(&self) -> i32

Source

fn ClientX(&self) -> i32

Source

fn ClientY(&self) -> i32

Source

fn PageX(&self) -> i32

Source

fn PageY(&self) -> i32

Source

fn X(&self) -> i32

Source

fn Y(&self) -> i32

Source

fn OffsetX(&self) -> i32

Source

fn OffsetY(&self) -> i32

Source

fn CtrlKey(&self) -> bool

Source

fn ShiftKey(&self) -> bool

Source

fn AltKey(&self) -> bool

Source

fn MetaKey(&self) -> bool

Source

fn Button(&self) -> i16

Source

fn GetRelatedTarget(&self) -> Option<Root<Dom<<D as DomTypes>::EventTarget>>>

Source

fn Buttons(&self) -> u16

Source

fn GetModifierState(&self, keyArg: DOMString) -> bool

Source

fn Which(&self) -> i32

Source

fn InitMouseEvent( &self, typeArg: DOMString, bubblesArg: bool, cancelableArg: bool, viewArg: Option<&<D as DomTypes>::Window>, detailArg: i32, screenXArg: i32, screenYArg: i32, clientXArg: i32, clientYArg: i32, ctrlKeyArg: bool, altKeyArg: bool, shiftKeyArg: bool, metaKeyArg: bool, buttonArg: i16, relatedTargetArg: Option<&<D as DomTypes>::EventTarget>, )

Source

fn IsTrusted(&self) -> bool

Source

fn Constructor( global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, typeArg: DOMString, mouseEventInitDict: &MouseEventInit<D>, ) -> Result<Root<Dom<<D as DomTypes>::MouseEvent>>, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§