Struct xpcom::interfaces::nsIDOMDragEvent
[−]
[src]
#[repr(C)]pub struct nsIDOMDragEvent { /* fields omitted */ }
interface nsIDOMDragEvent : nsIDOMMouseEvent
Methods
impl nsIDOMDragEvent
[src]
pub fn coerce<T: nsIDOMDragEventCoerce>(&self) -> &T
[src]
Cast this nsIDOMDragEvent
to one of its base interfaces.
impl nsIDOMDragEvent
[src]
pub unsafe fn GetDataTransfer(
&self,
aDataTransfer: *mut *const nsIDOMDataTransfer
) -> nsresult
[src]
&self,
aDataTransfer: *mut *const nsIDOMDataTransfer
) -> nsresult
readonly attribute nsIDOMDataTransfer dataTransfer;
Methods from Deref<Target = nsIDOMMouseEvent>
pub fn coerce<T: nsIDOMMouseEventCoerce>(&self) -> &T
[src]
Cast this nsIDOMMouseEvent
to one of its base interfaces.
pub const MOZ_SOURCE_UNKNOWN: i64
pub const MOZ_SOURCE_MOUSE: i64
pub const MOZ_SOURCE_PEN: i64
pub const MOZ_SOURCE_ERASER: i64
pub const MOZ_SOURCE_CURSOR: i64
pub const MOZ_SOURCE_TOUCH: i64
pub const MOZ_SOURCE_KEYBOARD: i64
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);
Trait Implementations
impl XpCom for nsIDOMDragEvent
[src]
const IID: nsIID
IID: nsIID = nsID(3586184386, 50758, 19275, [131, 110, 72, 64, 139, 156, 123, 128])
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 nsIDOMDragEvent
[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 nsIDOMDragEvent
[src]
type Target = nsIDOMMouseEvent
The resulting type after dereferencing.
fn deref(&self) -> &nsIDOMMouseEvent
[src]
Dereferences the value.