nsIDOMMouseEvent.h 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/events/nsIDOMMouseEvent.idl
  3. */
  4. #ifndef __gen_nsIDOMMouseEvent_h__
  5. #define __gen_nsIDOMMouseEvent_h__
  6. #ifndef __gen_nsIDOMUIEvent_h__
  7. #include "nsIDOMUIEvent.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. /* starting interface: nsIDOMMouseEvent */
  14. #define NS_IDOMMOUSEEVENT_IID_STR "ff751edc-8b02-aae7-0010-8301838a3123"
  15. #define NS_IDOMMOUSEEVENT_IID \
  16. {0xff751edc, 0x8b02, 0xaae7, \
  17. { 0x00, 0x10, 0x83, 0x01, 0x83, 0x8a, 0x31, 0x23 }}
  18. /**
  19. * The nsIDOMMouseEvent interface is the datatype for all mouse events
  20. * in the Document Object Model.
  21. *
  22. * For more information on this interface please see
  23. * http://www.w3.org/TR/DOM-Level-2-Events/
  24. *
  25. * @status FROZEN
  26. */
  27. class NS_NO_VTABLE nsIDOMMouseEvent : public nsIDOMUIEvent {
  28. public:
  29. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMMOUSEEVENT_IID)
  30. /* readonly attribute long screenX; */
  31. NS_IMETHOD GetScreenX(PRInt32 *aScreenX) = 0;
  32. /* readonly attribute long screenY; */
  33. NS_IMETHOD GetScreenY(PRInt32 *aScreenY) = 0;
  34. /* readonly attribute long clientX; */
  35. NS_IMETHOD GetClientX(PRInt32 *aClientX) = 0;
  36. /* readonly attribute long clientY; */
  37. NS_IMETHOD GetClientY(PRInt32 *aClientY) = 0;
  38. /* readonly attribute boolean ctrlKey; */
  39. NS_IMETHOD GetCtrlKey(PRBool *aCtrlKey) = 0;
  40. /* readonly attribute boolean shiftKey; */
  41. NS_IMETHOD GetShiftKey(PRBool *aShiftKey) = 0;
  42. /* readonly attribute boolean altKey; */
  43. NS_IMETHOD GetAltKey(PRBool *aAltKey) = 0;
  44. /* readonly attribute boolean metaKey; */
  45. NS_IMETHOD GetMetaKey(PRBool *aMetaKey) = 0;
  46. /* readonly attribute unsigned short button; */
  47. NS_IMETHOD GetButton(PRUint16 *aButton) = 0;
  48. /* readonly attribute nsIDOMEventTarget relatedTarget; */
  49. NS_IMETHOD GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget) = 0;
  50. /* void initMouseEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in nsIDOMAbstractView 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); */
  51. NS_IMETHOD InitMouseEvent(const 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) = 0;
  52. };
  53. /* Use this macro when declaring classes that implement this interface. */
  54. #define NS_DECL_NSIDOMMOUSEEVENT \
  55. NS_IMETHOD GetScreenX(PRInt32 *aScreenX); \
  56. NS_IMETHOD GetScreenY(PRInt32 *aScreenY); \
  57. NS_IMETHOD GetClientX(PRInt32 *aClientX); \
  58. NS_IMETHOD GetClientY(PRInt32 *aClientY); \
  59. NS_IMETHOD GetCtrlKey(PRBool *aCtrlKey); \
  60. NS_IMETHOD GetShiftKey(PRBool *aShiftKey); \
  61. NS_IMETHOD GetAltKey(PRBool *aAltKey); \
  62. NS_IMETHOD GetMetaKey(PRBool *aMetaKey); \
  63. NS_IMETHOD GetButton(PRUint16 *aButton); \
  64. NS_IMETHOD GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget); \
  65. NS_IMETHOD InitMouseEvent(const 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);
  66. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  67. #define NS_FORWARD_NSIDOMMOUSEEVENT(_to) \
  68. NS_IMETHOD GetScreenX(PRInt32 *aScreenX) { return _to GetScreenX(aScreenX); } \
  69. NS_IMETHOD GetScreenY(PRInt32 *aScreenY) { return _to GetScreenY(aScreenY); } \
  70. NS_IMETHOD GetClientX(PRInt32 *aClientX) { return _to GetClientX(aClientX); } \
  71. NS_IMETHOD GetClientY(PRInt32 *aClientY) { return _to GetClientY(aClientY); } \
  72. NS_IMETHOD GetCtrlKey(PRBool *aCtrlKey) { return _to GetCtrlKey(aCtrlKey); } \
  73. NS_IMETHOD GetShiftKey(PRBool *aShiftKey) { return _to GetShiftKey(aShiftKey); } \
  74. NS_IMETHOD GetAltKey(PRBool *aAltKey) { return _to GetAltKey(aAltKey); } \
  75. NS_IMETHOD GetMetaKey(PRBool *aMetaKey) { return _to GetMetaKey(aMetaKey); } \
  76. NS_IMETHOD GetButton(PRUint16 *aButton) { return _to GetButton(aButton); } \
  77. NS_IMETHOD GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget) { return _to GetRelatedTarget(aRelatedTarget); } \
  78. NS_IMETHOD InitMouseEvent(const 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) { return _to InitMouseEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg, relatedTargetArg); }
  79. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  80. #define NS_FORWARD_SAFE_NSIDOMMOUSEEVENT(_to) \
  81. NS_IMETHOD GetScreenX(PRInt32 *aScreenX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenX(aScreenX); } \
  82. NS_IMETHOD GetScreenY(PRInt32 *aScreenY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenY(aScreenY); } \
  83. NS_IMETHOD GetClientX(PRInt32 *aClientX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClientX(aClientX); } \
  84. NS_IMETHOD GetClientY(PRInt32 *aClientY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClientY(aClientY); } \
  85. NS_IMETHOD GetCtrlKey(PRBool *aCtrlKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCtrlKey(aCtrlKey); } \
  86. NS_IMETHOD GetShiftKey(PRBool *aShiftKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShiftKey(aShiftKey); } \
  87. NS_IMETHOD GetAltKey(PRBool *aAltKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAltKey(aAltKey); } \
  88. NS_IMETHOD GetMetaKey(PRBool *aMetaKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMetaKey(aMetaKey); } \
  89. NS_IMETHOD GetButton(PRUint16 *aButton) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetButton(aButton); } \
  90. NS_IMETHOD GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRelatedTarget(aRelatedTarget); } \
  91. NS_IMETHOD InitMouseEvent(const 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) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitMouseEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg, relatedTargetArg); }
  92. #if 0
  93. /* Use the code below as a template for the implementation class for this interface. */
  94. /* Header file */
  95. class nsDOMMouseEvent : public nsIDOMMouseEvent
  96. {
  97. public:
  98. NS_DECL_ISUPPORTS
  99. NS_DECL_NSIDOMMOUSEEVENT
  100. nsDOMMouseEvent();
  101. private:
  102. ~nsDOMMouseEvent();
  103. protected:
  104. /* additional members */
  105. };
  106. /* Implementation file */
  107. NS_IMPL_ISUPPORTS1(nsDOMMouseEvent, nsIDOMMouseEvent)
  108. nsDOMMouseEvent::nsDOMMouseEvent()
  109. {
  110. /* member initializers and constructor code */
  111. }
  112. nsDOMMouseEvent::~nsDOMMouseEvent()
  113. {
  114. /* destructor code */
  115. }
  116. /* readonly attribute long screenX; */
  117. NS_IMETHODIMP nsDOMMouseEvent::GetScreenX(PRInt32 *aScreenX)
  118. {
  119. return NS_ERROR_NOT_IMPLEMENTED;
  120. }
  121. /* readonly attribute long screenY; */
  122. NS_IMETHODIMP nsDOMMouseEvent::GetScreenY(PRInt32 *aScreenY)
  123. {
  124. return NS_ERROR_NOT_IMPLEMENTED;
  125. }
  126. /* readonly attribute long clientX; */
  127. NS_IMETHODIMP nsDOMMouseEvent::GetClientX(PRInt32 *aClientX)
  128. {
  129. return NS_ERROR_NOT_IMPLEMENTED;
  130. }
  131. /* readonly attribute long clientY; */
  132. NS_IMETHODIMP nsDOMMouseEvent::GetClientY(PRInt32 *aClientY)
  133. {
  134. return NS_ERROR_NOT_IMPLEMENTED;
  135. }
  136. /* readonly attribute boolean ctrlKey; */
  137. NS_IMETHODIMP nsDOMMouseEvent::GetCtrlKey(PRBool *aCtrlKey)
  138. {
  139. return NS_ERROR_NOT_IMPLEMENTED;
  140. }
  141. /* readonly attribute boolean shiftKey; */
  142. NS_IMETHODIMP nsDOMMouseEvent::GetShiftKey(PRBool *aShiftKey)
  143. {
  144. return NS_ERROR_NOT_IMPLEMENTED;
  145. }
  146. /* readonly attribute boolean altKey; */
  147. NS_IMETHODIMP nsDOMMouseEvent::GetAltKey(PRBool *aAltKey)
  148. {
  149. return NS_ERROR_NOT_IMPLEMENTED;
  150. }
  151. /* readonly attribute boolean metaKey; */
  152. NS_IMETHODIMP nsDOMMouseEvent::GetMetaKey(PRBool *aMetaKey)
  153. {
  154. return NS_ERROR_NOT_IMPLEMENTED;
  155. }
  156. /* readonly attribute unsigned short button; */
  157. NS_IMETHODIMP nsDOMMouseEvent::GetButton(PRUint16 *aButton)
  158. {
  159. return NS_ERROR_NOT_IMPLEMENTED;
  160. }
  161. /* readonly attribute nsIDOMEventTarget relatedTarget; */
  162. NS_IMETHODIMP nsDOMMouseEvent::GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget)
  163. {
  164. return NS_ERROR_NOT_IMPLEMENTED;
  165. }
  166. /* void initMouseEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in nsIDOMAbstractView 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); */
  167. NS_IMETHODIMP nsDOMMouseEvent::InitMouseEvent(const 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)
  168. {
  169. return NS_ERROR_NOT_IMPLEMENTED;
  170. }
  171. /* End of implementation class template. */
  172. #endif
  173. #endif /* __gen_nsIDOMMouseEvent_h__ */