1 module org.eclipse.swt.internal.mozilla.nsIDOMMouseEvent;
2 
3 import java.lang.all;
4 
5 import org.eclipse.swt.internal.mozilla.Common;
6 import org.eclipse.swt.internal.mozilla.nsID;
7 
8 import org.eclipse.swt.internal.mozilla.nsIDOMUIEvent;
9 import org.eclipse.swt.internal.mozilla.nsIDOMEventTarget;
10 import org.eclipse.swt.internal.mozilla.nsIDOMAbstractView;
11 import org.eclipse.swt.internal.mozilla.nsStringAPI;
12 
13 const char[] NS_IDOMMOUSEEVENT_IID_STR = "ff751edc-8b02-aae7-0010-8301838a3123";
14 
15 const nsIID NS_IDOMMOUSEEVENT_IID= 
16   {0xff751edc, 0x8b02, 0xaae7, 
17     [ 0x00, 0x10, 0x83, 0x01, 0x83, 0x8a, 0x31, 0x23 ]};
18 
19 interface nsIDOMMouseEvent : nsIDOMUIEvent {
20 
21   static const char[] IID_STR = NS_IDOMMOUSEEVENT_IID_STR;
22   static const nsIID IID = NS_IDOMMOUSEEVENT_IID;
23 
24 extern(System):
25   nsresult GetScreenX(PRInt32 *aScreenX);
26   nsresult GetScreenY(PRInt32 *aScreenY);
27   nsresult GetClientX(PRInt32 *aClientX);
28   nsresult GetClientY(PRInt32 *aClientY);
29   nsresult GetCtrlKey(PRBool *aCtrlKey);
30   nsresult GetShiftKey(PRBool *aShiftKey);
31   nsresult GetAltKey(PRBool *aAltKey);
32   nsresult GetMetaKey(PRBool *aMetaKey);
33   nsresult GetButton(PRUint16 *aButton);
34   nsresult GetRelatedTarget(nsIDOMEventTarget  *aRelatedTarget);
35 
36   nsresult InitMouseEvent(nsAString * typeArg, PRBool canBubbleArg, PRBool cancelableArg, nsIDOMAbstractView viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg, PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg, nsIDOMEventTarget relatedTargetArg);
37 
38 }