pub(crate) trait MouseEventMethods<D: DomTypes> {
Show 21 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, _can_gc: CanGc) -> i32; fn OffsetY(&self, _can_gc: CanGc) -> 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<DomRoot<D::EventTarget>>; fn Buttons(&self) -> u16; fn Which(&self) -> i32; fn InitMouseEvent( &self, typeArg: DOMString, bubblesArg: bool, cancelableArg: bool, viewArg: Option<&D::Window>, detailArg: i32, screenXArg: i32, screenYArg: i32, clientXArg: i32, clientYArg: i32, ctrlKeyArg: bool, altKeyArg: bool, shiftKeyArg: bool, metaKeyArg: bool, buttonArg: i16, relatedTargetArg: Option<&D::EventTarget>, ); fn IsTrusted(&self) -> bool; fn Constructor( global: &D::Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, typeArg: DOMString, mouseEventInitDict: &MouseEventInit<D>, ) -> Fallible<DomRoot<D::MouseEvent>>;
}

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, _can_gc: CanGc) -> i32

Source

fn OffsetY(&self, _can_gc: CanGc) -> 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<DomRoot<D::EventTarget>>

Source

fn Buttons(&self) -> u16

Source

fn Which(&self) -> i32

Source

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

Source

fn IsTrusted(&self) -> bool

Source

fn Constructor( global: &D::Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, typeArg: DOMString, mouseEventInitDict: &MouseEventInit<D>, ) -> Fallible<DomRoot<D::MouseEvent>>

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§