Struct xpcom::interfaces::nsIDOMXULCommandEvent
[−]
[src]
#[repr(C)]pub struct nsIDOMXULCommandEvent { /* fields omitted */ }
interface nsIDOMXULCommandEvent : nsIDOMUIEvent
Methods
impl nsIDOMXULCommandEvent
[src]
pub fn coerce<T: nsIDOMXULCommandEventCoerce>(&self) -> &T
[src]
Cast this nsIDOMXULCommandEvent
to one of its base interfaces.
impl nsIDOMXULCommandEvent
[src]
pub unsafe fn GetCtrlKey(&self, aCtrlKey: *mut bool) -> nsresult
[src]
/**
* Command events support the same set of modifier keys as mouse and key
* events.
*/
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 GetInputSource(&self, aInputSource: *mut uint16_t) -> nsresult
[src]
/**
* The input source, if this event was triggered by a mouse event.
*/
readonly attribute unsigned short inputSource;
pub unsafe fn GetSourceEvent(
&self,
aSourceEvent: *mut *const nsIDOMEvent
) -> nsresult
[src]
&self,
aSourceEvent: *mut *const nsIDOMEvent
) -> nsresult
/**
* If the command event was redispatched because of a command= attribute
* on the original target, sourceEvent will be set to the original DOM Event.
* Otherwise, sourceEvent is null.
*/
readonly attribute nsIDOMEvent sourceEvent;
pub unsafe fn InitCommandEvent(
&self,
typeArg: &nsAString,
canBubbleArg: bool,
cancelableArg: bool,
viewArg: *const mozIDOMWindow,
detailArg: int32_t,
ctrlKeyArg: bool,
altKeyArg: bool,
shiftKeyArg: bool,
metaKeyArg: bool,
sourceEvent: *const nsIDOMEvent,
inputSource: uint16_t
) -> nsresult
[src]
&self,
typeArg: &nsAString,
canBubbleArg: bool,
cancelableArg: bool,
viewArg: *const mozIDOMWindow,
detailArg: int32_t,
ctrlKeyArg: bool,
altKeyArg: bool,
shiftKeyArg: bool,
metaKeyArg: bool,
sourceEvent: *const nsIDOMEvent,
inputSource: uint16_t
) -> nsresult
/**
* Creates a new command event with the given attributes.
*/
void initCommandEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in mozIDOMWindow viewArg, in long detailArg, in boolean ctrlKeyArg, in boolean altKeyArg, in boolean shiftKeyArg, in boolean metaKeyArg, in nsIDOMEvent sourceEvent, in unsigned short inputSource);
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 nsIDOMXULCommandEvent
[src]
const IID: nsIID
IID: nsIID = nsID(1447335604, 4468, 18668, [146, 125, 237, 235, 102, 184, 103, 87])
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 nsIDOMXULCommandEvent
[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 nsIDOMXULCommandEvent
[src]
type Target = nsIDOMUIEvent
The resulting type after dereferencing.
fn deref(&self) -> &nsIDOMUIEvent
[src]
Dereferences the value.