Struct xpcom::interfaces::nsIDOMMouseEvent
[−]
[src]
#[repr(C)]pub struct nsIDOMMouseEvent { /* fields omitted */ }
interface nsIDOMMouseEvent : nsIDOMUIEvent
/**
* The nsIDOMMouseEvent interface is the datatype for all mouse events
* in the Document Object Model.
*
* For more information on this interface please see
* http://www.w3.org/TR/DOM-Level-2-Events/
*/
Methods
impl nsIDOMMouseEvent
[src]
pub fn coerce<T: nsIDOMMouseEventCoerce>(&self) -> &T
[src]
Cast this nsIDOMMouseEvent
to one of its base interfaces.
impl nsIDOMMouseEvent
[src]
pub const MOZ_SOURCE_UNKNOWN: i64
MOZ_SOURCE_UNKNOWN: i64 = 0
pub const MOZ_SOURCE_MOUSE: i64
MOZ_SOURCE_MOUSE: i64 = 1
pub const MOZ_SOURCE_PEN: i64
MOZ_SOURCE_PEN: i64 = 2
pub const MOZ_SOURCE_ERASER: i64
MOZ_SOURCE_ERASER: i64 = 3
pub const MOZ_SOURCE_CURSOR: i64
MOZ_SOURCE_CURSOR: i64 = 4
pub const MOZ_SOURCE_TOUCH: i64
MOZ_SOURCE_TOUCH: i64 = 5
pub const MOZ_SOURCE_KEYBOARD: i64
MOZ_SOURCE_KEYBOARD: i64 = 6
pub unsafe fn GetScreenX(&self, aScreenX: *mut int32_t) -> nsresult
[src]
readonly attribute long screenX;
pub unsafe fn GetScreenY(&self, aScreenY: *mut int32_t) -> nsresult
[src]
readonly attribute long screenY;
pub unsafe fn GetMozMovementX(&self, aMozMovementX: *mut int32_t) -> nsresult
[src]
readonly attribute long mozMovementX;
pub unsafe fn GetMozMovementY(&self, aMozMovementY: *mut int32_t) -> nsresult
[src]
readonly attribute long mozMovementY;
pub unsafe fn GetClientX(&self, aClientX: *mut int32_t) -> nsresult
[src]
readonly attribute long clientX;
pub unsafe fn GetClientY(&self, aClientY: *mut int32_t) -> nsresult
[src]
readonly attribute long clientY;
pub unsafe fn GetCtrlKey(&self, aCtrlKey: *mut bool) -> nsresult
[src]
readonly attribute boolean ctrlKey;
pub unsafe fn GetShiftKey(&self, aShiftKey: *mut bool) -> nsresult
[src]
readonly attribute boolean shiftKey;
pub unsafe fn GetAltKey(&self, aAltKey: *mut bool) -> nsresult
[src]
readonly attribute boolean altKey;
pub unsafe fn GetMetaKey(&self, aMetaKey: *mut bool) -> nsresult
[src]
readonly attribute boolean metaKey;
pub unsafe fn GetButton(&self, aButton: *mut int16_t) -> nsresult
[src]
readonly attribute short button;
pub unsafe fn GetButtons(&self, aButtons: *mut uint16_t) -> nsresult
[src]
readonly attribute unsigned short buttons;
pub unsafe fn GetRelatedTarget(
&self,
aRelatedTarget: *mut *const nsIDOMEventTarget
) -> nsresult
[src]
&self,
aRelatedTarget: *mut *const nsIDOMEventTarget
) -> nsresult
readonly attribute nsIDOMEventTarget relatedTarget;
pub unsafe fn InitMouseEvent(
&self,
typeArg: &nsAString,
canBubbleArg: bool,
cancelableArg: bool,
viewArg: *const mozIDOMWindow,
detailArg: int32_t,
screenXArg: int32_t,
screenYArg: int32_t,
clientXArg: int32_t,
clientYArg: int32_t,
ctrlKeyArg: bool,
altKeyArg: bool,
shiftKeyArg: bool,
metaKeyArg: bool,
buttonArg: uint16_t,
relatedTargetArg: *const nsIDOMEventTarget
) -> nsresult
[src]
&self,
typeArg: &nsAString,
canBubbleArg: bool,
cancelableArg: bool,
viewArg: *const mozIDOMWindow,
detailArg: int32_t,
screenXArg: int32_t,
screenYArg: int32_t,
clientXArg: int32_t,
clientYArg: int32_t,
ctrlKeyArg: bool,
altKeyArg: bool,
shiftKeyArg: bool,
metaKeyArg: bool,
buttonArg: uint16_t,
relatedTargetArg: *const nsIDOMEventTarget
) -> nsresult
void initMouseEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in mozIDOMWindow viewArg, in long detailArg, in long screenXArg, in long screenYArg, in long clientXArg, in long clientYArg, in boolean ctrlKeyArg, in boolean altKeyArg, in boolean shiftKeyArg, in boolean metaKeyArg, in unsigned short buttonArg, in nsIDOMEventTarget relatedTargetArg);
pub unsafe fn GetMozPressure(&self, aMozPressure: *mut c_float) -> nsresult
[src]
readonly attribute float mozPressure;
pub unsafe fn GetMozInputSource(
&self,
aMozInputSource: *mut uint16_t
) -> nsresult
[src]
&self,
aMozInputSource: *mut uint16_t
) -> nsresult
readonly attribute unsigned short mozInputSource;
pub unsafe fn GetModifierState(
&self,
keyArg: &nsAString,
_retval: *mut bool
) -> nsresult
[src]
&self,
keyArg: &nsAString,
_retval: *mut bool
) -> nsresult
bool getModifierState (in DOMString keyArg);
Methods from Deref<Target = nsIDOMUIEvent>
pub fn coerce<T: nsIDOMUIEventCoerce>(&self) -> &T
[src]
Cast this nsIDOMUIEvent
to one of its base interfaces.
pub const SCROLL_PAGE_UP: i64
pub const SCROLL_PAGE_DOWN: i64
pub unsafe fn GetView(&self, aView: *mut *const mozIDOMWindowProxy) -> nsresult
[src]
readonly attribute mozIDOMWindowProxy view;
pub unsafe fn GetDetail(&self, aDetail: *mut int32_t) -> nsresult
[src]
readonly attribute long detail;
pub unsafe fn InitUIEvent(
&self,
typeArg: &nsAString,
canBubbleArg: bool,
cancelableArg: bool,
viewArg: *const mozIDOMWindow,
detailArg: int32_t
) -> nsresult
[src]
&self,
typeArg: &nsAString,
canBubbleArg: bool,
cancelableArg: bool,
viewArg: *const mozIDOMWindow,
detailArg: int32_t
) -> nsresult
void initUIEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in mozIDOMWindow viewArg, in long detailArg);
pub unsafe fn GetLayerX(&self, aLayerX: *mut int32_t) -> nsresult
[src]
readonly attribute long layerX;
pub unsafe fn GetLayerY(&self, aLayerY: *mut int32_t) -> nsresult
[src]
readonly attribute long layerY;
pub unsafe fn GetPageX(&self, aPageX: *mut int32_t) -> nsresult
[src]
readonly attribute long pageX;
pub unsafe fn GetPageY(&self, aPageY: *mut int32_t) -> nsresult
[src]
readonly attribute long pageY;
pub unsafe fn GetWhich(&self, aWhich: *mut uint32_t) -> nsresult
[src]
readonly attribute unsigned long which;
pub unsafe fn GetRangeParent(
&self,
aRangeParent: *mut *const nsIDOMNode
) -> nsresult
[src]
&self,
aRangeParent: *mut *const nsIDOMNode
) -> nsresult
readonly attribute nsIDOMNode rangeParent;
pub unsafe fn GetRangeOffset(&self, aRangeOffset: *mut int32_t) -> nsresult
[src]
readonly attribute long rangeOffset;
Trait Implementations
impl XpCom for nsIDOMMouseEvent
[src]
const IID: nsIID
IID: nsIID = nsID(1541060824, 31027, 19548, [182, 209, 171, 52, 72, 18, 55, 247])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsIDOMMouseEvent
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIDOMMouseEvent
[src]
type Target = nsIDOMUIEvent
The resulting type after dereferencing.
fn deref(&self) -> &nsIDOMUIEvent
[src]
Dereferences the value.