001: /* ***** BEGIN LICENSE BLOCK *****
002: * Version: MPL 1.1
003: *
004: * The contents of this file are subject to the Mozilla Public License Version
005: * 1.1 (the "License"); you may not use this file except in compliance with
006: * the License. You may obtain a copy of the License at
007: * http://www.mozilla.org/MPL/
008: *
009: * Software distributed under the License is distributed on an "AS IS" basis,
010: * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
011: * for the specific language governing rights and limitations under the
012: * License.
013: *
014: * The Original Code is Mozilla Communicator client code, released March 31, 1998.
015: *
016: * The Initial Developer of the Original Code is
017: * Netscape Communications Corporation.
018: * Portions created by Netscape are Copyright (C) 1998-1999
019: * Netscape Communications Corporation. All Rights Reserved.
020: *
021: * Contributor(s):
022: *
023: * IBM
024: * - Binding to permit interfacing between Mozilla and SWT
025: * - Copyright (C) 2004, 2005 IBM Corp. All Rights Reserved.
026: *
027: * ***** END LICENSE BLOCK ***** */
028: package org.eclipse.swt.internal.mozilla;
029:
030: public class nsIDOMMouseEvent extends nsIDOMUIEvent {
031:
032: static final int LAST_METHOD_ID = nsIDOMUIEvent.LAST_METHOD_ID + 11;
033:
034: public static final String NS_IDOMMOUSEEVENT_IID_STR = "ff751edc-8b02-aae7-0010-8301838a3123";
035:
036: public static final nsID NS_IDOMMOUSEEVENT_IID = new nsID(
037: NS_IDOMMOUSEEVENT_IID_STR);
038:
039: public nsIDOMMouseEvent(int /*long*/address) {
040: super (address);
041: }
042:
043: public int GetScreenX(int[] aScreenX) {
044: return XPCOM.VtblCall(nsIDOMUIEvent.LAST_METHOD_ID + 1,
045: getAddress(), aScreenX);
046: }
047:
048: public int GetScreenY(int[] aScreenY) {
049: return XPCOM.VtblCall(nsIDOMUIEvent.LAST_METHOD_ID + 2,
050: getAddress(), aScreenY);
051: }
052:
053: public int GetClientX(int[] aClientX) {
054: return XPCOM.VtblCall(nsIDOMUIEvent.LAST_METHOD_ID + 3,
055: getAddress(), aClientX);
056: }
057:
058: public int GetClientY(int[] aClientY) {
059: return XPCOM.VtblCall(nsIDOMUIEvent.LAST_METHOD_ID + 4,
060: getAddress(), aClientY);
061: }
062:
063: public int GetCtrlKey(boolean[] aCtrlKey) {
064: return XPCOM.VtblCall(nsIDOMUIEvent.LAST_METHOD_ID + 5,
065: getAddress(), aCtrlKey);
066: }
067:
068: public int GetShiftKey(boolean[] aShiftKey) {
069: return XPCOM.VtblCall(nsIDOMUIEvent.LAST_METHOD_ID + 6,
070: getAddress(), aShiftKey);
071: }
072:
073: public int GetAltKey(boolean[] aAltKey) {
074: return XPCOM.VtblCall(nsIDOMUIEvent.LAST_METHOD_ID + 7,
075: getAddress(), aAltKey);
076: }
077:
078: public int GetMetaKey(boolean[] aMetaKey) {
079: return XPCOM.VtblCall(nsIDOMUIEvent.LAST_METHOD_ID + 8,
080: getAddress(), aMetaKey);
081: }
082:
083: public int GetButton(short[] aButton) {
084: return XPCOM.VtblCall(nsIDOMUIEvent.LAST_METHOD_ID + 9,
085: getAddress(), aButton);
086: }
087:
088: public int GetRelatedTarget(int /*long*/[] aRelatedTarget) {
089: return XPCOM.VtblCall(nsIDOMUIEvent.LAST_METHOD_ID + 10,
090: getAddress(), aRelatedTarget);
091: }
092:
093: public int InitMouseEvent(int /*long*/typeArg,
094: boolean canBubbleArg, boolean cancelableArg,
095: int /*long*/viewArg, int detailArg, int screenXArg,
096: int screenYArg, int clientXArg, int clientYArg,
097: boolean ctrlKeyArg, boolean altKeyArg, boolean shiftKeyArg,
098: boolean metaKeyArg, short buttonArg,
099: int /*long*/relatedTargetArg) {
100: return XPCOM.VtblCall(nsIDOMUIEvent.LAST_METHOD_ID + 11,
101: getAddress(), typeArg, canBubbleArg, cancelableArg,
102: viewArg, detailArg, screenXArg, screenYArg, clientXArg,
103: clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg,
104: metaKeyArg, buttonArg, relatedTargetArg);
105: }
106: }
|