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§
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>
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.