PageRenderTime 52ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/mozilla/mozilla/dist/include/dom/nsIDOMCanvasRenderingContext2D.h

http://kmbrasil.codeplex.com
C++ Header | 842 lines | 538 code | 148 blank | 156 comment | 0 complexity | bd6a9dc41d18015da51a0410ccead3a1 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, GPL-2.0
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM h:/projects/mozilla/mozilla/dom/public/idl/canvas/nsIDOMCanvasRenderingContext2D.idl
  3. */
  4. #ifndef __gen_nsIDOMCanvasRenderingContext2D_h__
  5. #define __gen_nsIDOMCanvasRenderingContext2D_h__
  6. #ifndef __gen_nsISupports_h__
  7. #include "nsISupports.h"
  8. #endif
  9. #ifndef __gen_nsIVariant_h__
  10. #include "nsIVariant.h"
  11. #endif
  12. /* For IDL files that don't want to include root IDL files. */
  13. #ifndef NS_NO_VTABLE
  14. #define NS_NO_VTABLE
  15. #endif
  16. class nsIDOMWindow; /* forward declaration */
  17. class nsIDOMHTMLElement; /* forward declaration */
  18. class nsIDOMHTMLImageElement; /* forward declaration */
  19. class nsIDOMHTMLCanvasElement; /* forward declaration */
  20. /* starting interface: nsIDOMCanvasGradient */
  21. #define NS_IDOMCANVASGRADIENT_IID_STR "bbb20a59-524e-4662-981e-5e142814b20c"
  22. #define NS_IDOMCANVASGRADIENT_IID \
  23. {0xbbb20a59, 0x524e, 0x4662, \
  24. { 0x98, 0x1e, 0x5e, 0x14, 0x28, 0x14, 0xb2, 0x0c }}
  25. class NS_NO_VTABLE nsIDOMCanvasGradient : public nsISupports {
  26. public:
  27. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCANVASGRADIENT_IID)
  28. /* void addColorStop (in float offset, in DOMString color); */
  29. NS_IMETHOD AddColorStop(float offset, const nsAString & color) = 0;
  30. };
  31. /* Use this macro when declaring classes that implement this interface. */
  32. #define NS_DECL_NSIDOMCANVASGRADIENT \
  33. NS_IMETHOD AddColorStop(float offset, const nsAString & color);
  34. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  35. #define NS_FORWARD_NSIDOMCANVASGRADIENT(_to) \
  36. NS_IMETHOD AddColorStop(float offset, const nsAString & color) { return _to AddColorStop(offset, color); }
  37. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  38. #define NS_FORWARD_SAFE_NSIDOMCANVASGRADIENT(_to) \
  39. NS_IMETHOD AddColorStop(float offset, const nsAString & color) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddColorStop(offset, color); }
  40. #if 0
  41. /* Use the code below as a template for the implementation class for this interface. */
  42. /* Header file */
  43. class nsDOMCanvasGradient : public nsIDOMCanvasGradient
  44. {
  45. public:
  46. NS_DECL_ISUPPORTS
  47. NS_DECL_NSIDOMCANVASGRADIENT
  48. nsDOMCanvasGradient();
  49. private:
  50. ~nsDOMCanvasGradient();
  51. protected:
  52. /* additional members */
  53. };
  54. /* Implementation file */
  55. NS_IMPL_ISUPPORTS1(nsDOMCanvasGradient, nsIDOMCanvasGradient)
  56. nsDOMCanvasGradient::nsDOMCanvasGradient()
  57. {
  58. /* member initializers and constructor code */
  59. }
  60. nsDOMCanvasGradient::~nsDOMCanvasGradient()
  61. {
  62. /* destructor code */
  63. }
  64. /* void addColorStop (in float offset, in DOMString color); */
  65. NS_IMETHODIMP nsDOMCanvasGradient::AddColorStop(float offset, const nsAString & color)
  66. {
  67. return NS_ERROR_NOT_IMPLEMENTED;
  68. }
  69. /* End of implementation class template. */
  70. #endif
  71. /* starting interface: nsIDOMCanvasPattern */
  72. #define NS_IDOMCANVASPATTERN_IID_STR "21dea65c-5c08-4eb1-ac82-81fe95be77b8"
  73. #define NS_IDOMCANVASPATTERN_IID \
  74. {0x21dea65c, 0x5c08, 0x4eb1, \
  75. { 0xac, 0x82, 0x81, 0xfe, 0x95, 0xbe, 0x77, 0xb8 }}
  76. class NS_NO_VTABLE nsIDOMCanvasPattern : public nsISupports {
  77. public:
  78. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCANVASPATTERN_IID)
  79. };
  80. /* Use this macro when declaring classes that implement this interface. */
  81. #define NS_DECL_NSIDOMCANVASPATTERN \
  82. /* no methods! */
  83. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  84. #define NS_FORWARD_NSIDOMCANVASPATTERN(_to) \
  85. /* no methods! */
  86. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  87. #define NS_FORWARD_SAFE_NSIDOMCANVASPATTERN(_to) \
  88. /* no methods! */
  89. #if 0
  90. /* Use the code below as a template for the implementation class for this interface. */
  91. /* Header file */
  92. class nsDOMCanvasPattern : public nsIDOMCanvasPattern
  93. {
  94. public:
  95. NS_DECL_ISUPPORTS
  96. NS_DECL_NSIDOMCANVASPATTERN
  97. nsDOMCanvasPattern();
  98. private:
  99. ~nsDOMCanvasPattern();
  100. protected:
  101. /* additional members */
  102. };
  103. /* Implementation file */
  104. NS_IMPL_ISUPPORTS1(nsDOMCanvasPattern, nsIDOMCanvasPattern)
  105. nsDOMCanvasPattern::nsDOMCanvasPattern()
  106. {
  107. /* member initializers and constructor code */
  108. }
  109. nsDOMCanvasPattern::~nsDOMCanvasPattern()
  110. {
  111. /* destructor code */
  112. }
  113. /* End of implementation class template. */
  114. #endif
  115. /* starting interface: nsIDOMCanvasRenderingContext2D */
  116. #define NS_IDOMCANVASRENDERINGCONTEXT2D_IID_STR "ab27f42d-e1e1-4ef6-9c83-059a81da479b"
  117. #define NS_IDOMCANVASRENDERINGCONTEXT2D_IID \
  118. {0xab27f42d, 0xe1e1, 0x4ef6, \
  119. { 0x9c, 0x83, 0x05, 0x9a, 0x81, 0xda, 0x47, 0x9b }}
  120. class NS_NO_VTABLE nsIDOMCanvasRenderingContext2D : public nsISupports {
  121. public:
  122. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCANVASRENDERINGCONTEXT2D_IID)
  123. /* readonly attribute nsIDOMHTMLCanvasElement canvas; */
  124. NS_IMETHOD GetCanvas(nsIDOMHTMLCanvasElement * *aCanvas) = 0;
  125. /* void save (); */
  126. NS_IMETHOD Save(void) = 0;
  127. /* void restore (); */
  128. NS_IMETHOD Restore(void) = 0;
  129. /* void scale (in float x, in float y); */
  130. NS_IMETHOD Scale(float x, float y) = 0;
  131. /* void rotate (in float angle); */
  132. NS_IMETHOD Rotate(float angle) = 0;
  133. /* void translate (in float x, in float y); */
  134. NS_IMETHOD Translate(float x, float y) = 0;
  135. /* attribute float globalAlpha; */
  136. NS_IMETHOD GetGlobalAlpha(float *aGlobalAlpha) = 0;
  137. NS_IMETHOD SetGlobalAlpha(float aGlobalAlpha) = 0;
  138. /* attribute DOMString globalCompositeOperation; */
  139. NS_IMETHOD GetGlobalCompositeOperation(nsAString & aGlobalCompositeOperation) = 0;
  140. NS_IMETHOD SetGlobalCompositeOperation(const nsAString & aGlobalCompositeOperation) = 0;
  141. /* attribute nsIVariant strokeStyle; */
  142. NS_IMETHOD GetStrokeStyle(nsIVariant * *aStrokeStyle) = 0;
  143. NS_IMETHOD SetStrokeStyle(nsIVariant * aStrokeStyle) = 0;
  144. /* attribute nsIVariant fillStyle; */
  145. NS_IMETHOD GetFillStyle(nsIVariant * *aFillStyle) = 0;
  146. NS_IMETHOD SetFillStyle(nsIVariant * aFillStyle) = 0;
  147. /* nsIDOMCanvasGradient createLinearGradient (in float x0, in float y0, in float x1, in float y1); */
  148. NS_IMETHOD CreateLinearGradient(float x0, float y0, float x1, float y1, nsIDOMCanvasGradient **_retval) = 0;
  149. /* nsIDOMCanvasGradient createRadialGradient (in float x0, in float y0, in float r0, in float x1, in float y1, in float r1); */
  150. NS_IMETHOD CreateRadialGradient(float x0, float y0, float r0, float x1, float y1, float r1, nsIDOMCanvasGradient **_retval) = 0;
  151. /* nsIDOMCanvasPattern createPattern (in nsIDOMHTMLElement image, in DOMString repetition); */
  152. NS_IMETHOD CreatePattern(nsIDOMHTMLElement *image, const nsAString & repetition, nsIDOMCanvasPattern **_retval) = 0;
  153. /* attribute float lineWidth; */
  154. NS_IMETHOD GetLineWidth(float *aLineWidth) = 0;
  155. NS_IMETHOD SetLineWidth(float aLineWidth) = 0;
  156. /* attribute DOMString lineCap; */
  157. NS_IMETHOD GetLineCap(nsAString & aLineCap) = 0;
  158. NS_IMETHOD SetLineCap(const nsAString & aLineCap) = 0;
  159. /* attribute DOMString lineJoin; */
  160. NS_IMETHOD GetLineJoin(nsAString & aLineJoin) = 0;
  161. NS_IMETHOD SetLineJoin(const nsAString & aLineJoin) = 0;
  162. /* attribute float miterLimit; */
  163. NS_IMETHOD GetMiterLimit(float *aMiterLimit) = 0;
  164. NS_IMETHOD SetMiterLimit(float aMiterLimit) = 0;
  165. /* attribute float shadowOffsetX; */
  166. NS_IMETHOD GetShadowOffsetX(float *aShadowOffsetX) = 0;
  167. NS_IMETHOD SetShadowOffsetX(float aShadowOffsetX) = 0;
  168. /* attribute float shadowOffsetY; */
  169. NS_IMETHOD GetShadowOffsetY(float *aShadowOffsetY) = 0;
  170. NS_IMETHOD SetShadowOffsetY(float aShadowOffsetY) = 0;
  171. /* attribute float shadowBlur; */
  172. NS_IMETHOD GetShadowBlur(float *aShadowBlur) = 0;
  173. NS_IMETHOD SetShadowBlur(float aShadowBlur) = 0;
  174. /* attribute DOMString shadowColor; */
  175. NS_IMETHOD GetShadowColor(nsAString & aShadowColor) = 0;
  176. NS_IMETHOD SetShadowColor(const nsAString & aShadowColor) = 0;
  177. /* void clearRect (in float x, in float y, in float w, in float h); */
  178. NS_IMETHOD ClearRect(float x, float y, float w, float h) = 0;
  179. /* void fillRect (in float x, in float y, in float w, in float h); */
  180. NS_IMETHOD FillRect(float x, float y, float w, float h) = 0;
  181. /* void strokeRect (in float x, in float y, in float w, in float h); */
  182. NS_IMETHOD StrokeRect(float x, float y, float w, float h) = 0;
  183. /* void beginPath (); */
  184. NS_IMETHOD BeginPath(void) = 0;
  185. /* void closePath (); */
  186. NS_IMETHOD ClosePath(void) = 0;
  187. /* void moveTo (in float x, in float y); */
  188. NS_IMETHOD MoveTo(float x, float y) = 0;
  189. /* void lineTo (in float x, in float y); */
  190. NS_IMETHOD LineTo(float x, float y) = 0;
  191. /* void quadraticCurveTo (in float cpx, in float cpy, in float x, in float y); */
  192. NS_IMETHOD QuadraticCurveTo(float cpx, float cpy, float x, float y) = 0;
  193. /* void bezierCurveTo (in float cp1x, in float cp1y, in float cp2x, in float cp2y, in float x, in float y); */
  194. NS_IMETHOD BezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y) = 0;
  195. /* void arcTo (in float x1, in float y1, in float x2, in float y2, in float radius); */
  196. NS_IMETHOD ArcTo(float x1, float y1, float x2, float y2, float radius) = 0;
  197. /* void arc (in float x, in float y, in float r, in float startAngle, in float endAngle, in boolean clockwise); */
  198. NS_IMETHOD Arc(float x, float y, float r, float startAngle, float endAngle, PRBool clockwise) = 0;
  199. /* void rect (in float x, in float y, in float w, in float h); */
  200. NS_IMETHOD Rect(float x, float y, float w, float h) = 0;
  201. /* void fill (); */
  202. NS_IMETHOD Fill(void) = 0;
  203. /* void stroke (); */
  204. NS_IMETHOD Stroke(void) = 0;
  205. /* void clip (); */
  206. NS_IMETHOD Clip(void) = 0;
  207. /* void drawImage (); */
  208. NS_IMETHOD DrawImage(void) = 0;
  209. /* boolean isPointInPath (in float x, in float y); */
  210. NS_IMETHOD IsPointInPath(float x, float y, PRBool *_retval) = 0;
  211. /* void getImageData (); */
  212. NS_IMETHOD GetImageData(void) = 0;
  213. /* void putImageData (); */
  214. NS_IMETHOD PutImageData(void) = 0;
  215. /**
  216. * Renders a region of a window into the canvas. The contents of
  217. * the window's viewport are rendered, ignoring viewport clipping
  218. * and scrolling.
  219. *
  220. * @param x
  221. * @param y
  222. * @param w
  223. * @param h specify the area of the window to render, in CSS
  224. * pixels.
  225. *
  226. * @param backgroundColor the canvas is filled with this color
  227. * before we render the window into it. This color may be
  228. * transparent/translucent. It is given as a CSS color string
  229. * (e.g., rgb() or rgba()).
  230. *
  231. * Of course, the rendering obeys the current scale, transform and
  232. * globalAlpha values.
  233. *
  234. * Hints:
  235. * -- If 'rgba(0,0,0,0)' is used for the background color, the
  236. * drawing will be transparent wherever the window is transparent.
  237. * -- Top-level browsed documents are usually not transparent
  238. * because the user's background-color preference is applied,
  239. * but IFRAMEs are transparent if the page doesn't set a background.
  240. * -- If an opaque color is used for the background color, rendering
  241. * will be faster because we won't have to compute the window's
  242. * transparency.
  243. *
  244. * This API cannot currently be used by Web content. It is chrome
  245. * only.
  246. */
  247. /* void drawWindow (in nsIDOMWindow window, in long x, in long y, in long w, in long h, in DOMString bgColor); */
  248. NS_IMETHOD DrawWindow(nsIDOMWindow *window, PRInt32 x, PRInt32 y, PRInt32 w, PRInt32 h, const nsAString & bgColor) = 0;
  249. };
  250. /* Use this macro when declaring classes that implement this interface. */
  251. #define NS_DECL_NSIDOMCANVASRENDERINGCONTEXT2D \
  252. NS_IMETHOD GetCanvas(nsIDOMHTMLCanvasElement * *aCanvas); \
  253. NS_IMETHOD Save(void); \
  254. NS_IMETHOD Restore(void); \
  255. NS_IMETHOD Scale(float x, float y); \
  256. NS_IMETHOD Rotate(float angle); \
  257. NS_IMETHOD Translate(float x, float y); \
  258. NS_IMETHOD GetGlobalAlpha(float *aGlobalAlpha); \
  259. NS_IMETHOD SetGlobalAlpha(float aGlobalAlpha); \
  260. NS_IMETHOD GetGlobalCompositeOperation(nsAString & aGlobalCompositeOperation); \
  261. NS_IMETHOD SetGlobalCompositeOperation(const nsAString & aGlobalCompositeOperation); \
  262. NS_IMETHOD GetStrokeStyle(nsIVariant * *aStrokeStyle); \
  263. NS_IMETHOD SetStrokeStyle(nsIVariant * aStrokeStyle); \
  264. NS_IMETHOD GetFillStyle(nsIVariant * *aFillStyle); \
  265. NS_IMETHOD SetFillStyle(nsIVariant * aFillStyle); \
  266. NS_IMETHOD CreateLinearGradient(float x0, float y0, float x1, float y1, nsIDOMCanvasGradient **_retval); \
  267. NS_IMETHOD CreateRadialGradient(float x0, float y0, float r0, float x1, float y1, float r1, nsIDOMCanvasGradient **_retval); \
  268. NS_IMETHOD CreatePattern(nsIDOMHTMLElement *image, const nsAString & repetition, nsIDOMCanvasPattern **_retval); \
  269. NS_IMETHOD GetLineWidth(float *aLineWidth); \
  270. NS_IMETHOD SetLineWidth(float aLineWidth); \
  271. NS_IMETHOD GetLineCap(nsAString & aLineCap); \
  272. NS_IMETHOD SetLineCap(const nsAString & aLineCap); \
  273. NS_IMETHOD GetLineJoin(nsAString & aLineJoin); \
  274. NS_IMETHOD SetLineJoin(const nsAString & aLineJoin); \
  275. NS_IMETHOD GetMiterLimit(float *aMiterLimit); \
  276. NS_IMETHOD SetMiterLimit(float aMiterLimit); \
  277. NS_IMETHOD GetShadowOffsetX(float *aShadowOffsetX); \
  278. NS_IMETHOD SetShadowOffsetX(float aShadowOffsetX); \
  279. NS_IMETHOD GetShadowOffsetY(float *aShadowOffsetY); \
  280. NS_IMETHOD SetShadowOffsetY(float aShadowOffsetY); \
  281. NS_IMETHOD GetShadowBlur(float *aShadowBlur); \
  282. NS_IMETHOD SetShadowBlur(float aShadowBlur); \
  283. NS_IMETHOD GetShadowColor(nsAString & aShadowColor); \
  284. NS_IMETHOD SetShadowColor(const nsAString & aShadowColor); \
  285. NS_IMETHOD ClearRect(float x, float y, float w, float h); \
  286. NS_IMETHOD FillRect(float x, float y, float w, float h); \
  287. NS_IMETHOD StrokeRect(float x, float y, float w, float h); \
  288. NS_IMETHOD BeginPath(void); \
  289. NS_IMETHOD ClosePath(void); \
  290. NS_IMETHOD MoveTo(float x, float y); \
  291. NS_IMETHOD LineTo(float x, float y); \
  292. NS_IMETHOD QuadraticCurveTo(float cpx, float cpy, float x, float y); \
  293. NS_IMETHOD BezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y); \
  294. NS_IMETHOD ArcTo(float x1, float y1, float x2, float y2, float radius); \
  295. NS_IMETHOD Arc(float x, float y, float r, float startAngle, float endAngle, PRBool clockwise); \
  296. NS_IMETHOD Rect(float x, float y, float w, float h); \
  297. NS_IMETHOD Fill(void); \
  298. NS_IMETHOD Stroke(void); \
  299. NS_IMETHOD Clip(void); \
  300. NS_IMETHOD DrawImage(void); \
  301. NS_IMETHOD IsPointInPath(float x, float y, PRBool *_retval); \
  302. NS_IMETHOD GetImageData(void); \
  303. NS_IMETHOD PutImageData(void); \
  304. NS_IMETHOD DrawWindow(nsIDOMWindow *window, PRInt32 x, PRInt32 y, PRInt32 w, PRInt32 h, const nsAString & bgColor);
  305. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  306. #define NS_FORWARD_NSIDOMCANVASRENDERINGCONTEXT2D(_to) \
  307. NS_IMETHOD GetCanvas(nsIDOMHTMLCanvasElement * *aCanvas) { return _to GetCanvas(aCanvas); } \
  308. NS_IMETHOD Save(void) { return _to Save(); } \
  309. NS_IMETHOD Restore(void) { return _to Restore(); } \
  310. NS_IMETHOD Scale(float x, float y) { return _to Scale(x, y); } \
  311. NS_IMETHOD Rotate(float angle) { return _to Rotate(angle); } \
  312. NS_IMETHOD Translate(float x, float y) { return _to Translate(x, y); } \
  313. NS_IMETHOD GetGlobalAlpha(float *aGlobalAlpha) { return _to GetGlobalAlpha(aGlobalAlpha); } \
  314. NS_IMETHOD SetGlobalAlpha(float aGlobalAlpha) { return _to SetGlobalAlpha(aGlobalAlpha); } \
  315. NS_IMETHOD GetGlobalCompositeOperation(nsAString & aGlobalCompositeOperation) { return _to GetGlobalCompositeOperation(aGlobalCompositeOperation); } \
  316. NS_IMETHOD SetGlobalCompositeOperation(const nsAString & aGlobalCompositeOperation) { return _to SetGlobalCompositeOperation(aGlobalCompositeOperation); } \
  317. NS_IMETHOD GetStrokeStyle(nsIVariant * *aStrokeStyle) { return _to GetStrokeStyle(aStrokeStyle); } \
  318. NS_IMETHOD SetStrokeStyle(nsIVariant * aStrokeStyle) { return _to SetStrokeStyle(aStrokeStyle); } \
  319. NS_IMETHOD GetFillStyle(nsIVariant * *aFillStyle) { return _to GetFillStyle(aFillStyle); } \
  320. NS_IMETHOD SetFillStyle(nsIVariant * aFillStyle) { return _to SetFillStyle(aFillStyle); } \
  321. NS_IMETHOD CreateLinearGradient(float x0, float y0, float x1, float y1, nsIDOMCanvasGradient **_retval) { return _to CreateLinearGradient(x0, y0, x1, y1, _retval); } \
  322. NS_IMETHOD CreateRadialGradient(float x0, float y0, float r0, float x1, float y1, float r1, nsIDOMCanvasGradient **_retval) { return _to CreateRadialGradient(x0, y0, r0, x1, y1, r1, _retval); } \
  323. NS_IMETHOD CreatePattern(nsIDOMHTMLElement *image, const nsAString & repetition, nsIDOMCanvasPattern **_retval) { return _to CreatePattern(image, repetition, _retval); } \
  324. NS_IMETHOD GetLineWidth(float *aLineWidth) { return _to GetLineWidth(aLineWidth); } \
  325. NS_IMETHOD SetLineWidth(float aLineWidth) { return _to SetLineWidth(aLineWidth); } \
  326. NS_IMETHOD GetLineCap(nsAString & aLineCap) { return _to GetLineCap(aLineCap); } \
  327. NS_IMETHOD SetLineCap(const nsAString & aLineCap) { return _to SetLineCap(aLineCap); } \
  328. NS_IMETHOD GetLineJoin(nsAString & aLineJoin) { return _to GetLineJoin(aLineJoin); } \
  329. NS_IMETHOD SetLineJoin(const nsAString & aLineJoin) { return _to SetLineJoin(aLineJoin); } \
  330. NS_IMETHOD GetMiterLimit(float *aMiterLimit) { return _to GetMiterLimit(aMiterLimit); } \
  331. NS_IMETHOD SetMiterLimit(float aMiterLimit) { return _to SetMiterLimit(aMiterLimit); } \
  332. NS_IMETHOD GetShadowOffsetX(float *aShadowOffsetX) { return _to GetShadowOffsetX(aShadowOffsetX); } \
  333. NS_IMETHOD SetShadowOffsetX(float aShadowOffsetX) { return _to SetShadowOffsetX(aShadowOffsetX); } \
  334. NS_IMETHOD GetShadowOffsetY(float *aShadowOffsetY) { return _to GetShadowOffsetY(aShadowOffsetY); } \
  335. NS_IMETHOD SetShadowOffsetY(float aShadowOffsetY) { return _to SetShadowOffsetY(aShadowOffsetY); } \
  336. NS_IMETHOD GetShadowBlur(float *aShadowBlur) { return _to GetShadowBlur(aShadowBlur); } \
  337. NS_IMETHOD SetShadowBlur(float aShadowBlur) { return _to SetShadowBlur(aShadowBlur); } \
  338. NS_IMETHOD GetShadowColor(nsAString & aShadowColor) { return _to GetShadowColor(aShadowColor); } \
  339. NS_IMETHOD SetShadowColor(const nsAString & aShadowColor) { return _to SetShadowColor(aShadowColor); } \
  340. NS_IMETHOD ClearRect(float x, float y, float w, float h) { return _to ClearRect(x, y, w, h); } \
  341. NS_IMETHOD FillRect(float x, float y, float w, float h) { return _to FillRect(x, y, w, h); } \
  342. NS_IMETHOD StrokeRect(float x, float y, float w, float h) { return _to StrokeRect(x, y, w, h); } \
  343. NS_IMETHOD BeginPath(void) { return _to BeginPath(); } \
  344. NS_IMETHOD ClosePath(void) { return _to ClosePath(); } \
  345. NS_IMETHOD MoveTo(float x, float y) { return _to MoveTo(x, y); } \
  346. NS_IMETHOD LineTo(float x, float y) { return _to LineTo(x, y); } \
  347. NS_IMETHOD QuadraticCurveTo(float cpx, float cpy, float x, float y) { return _to QuadraticCurveTo(cpx, cpy, x, y); } \
  348. NS_IMETHOD BezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y) { return _to BezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y); } \
  349. NS_IMETHOD ArcTo(float x1, float y1, float x2, float y2, float radius) { return _to ArcTo(x1, y1, x2, y2, radius); } \
  350. NS_IMETHOD Arc(float x, float y, float r, float startAngle, float endAngle, PRBool clockwise) { return _to Arc(x, y, r, startAngle, endAngle, clockwise); } \
  351. NS_IMETHOD Rect(float x, float y, float w, float h) { return _to Rect(x, y, w, h); } \
  352. NS_IMETHOD Fill(void) { return _to Fill(); } \
  353. NS_IMETHOD Stroke(void) { return _to Stroke(); } \
  354. NS_IMETHOD Clip(void) { return _to Clip(); } \
  355. NS_IMETHOD DrawImage(void) { return _to DrawImage(); } \
  356. NS_IMETHOD IsPointInPath(float x, float y, PRBool *_retval) { return _to IsPointInPath(x, y, _retval); } \
  357. NS_IMETHOD GetImageData(void) { return _to GetImageData(); } \
  358. NS_IMETHOD PutImageData(void) { return _to PutImageData(); } \
  359. NS_IMETHOD DrawWindow(nsIDOMWindow *window, PRInt32 x, PRInt32 y, PRInt32 w, PRInt32 h, const nsAString & bgColor) { return _to DrawWindow(window, x, y, w, h, bgColor); }
  360. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  361. #define NS_FORWARD_SAFE_NSIDOMCANVASRENDERINGCONTEXT2D(_to) \
  362. NS_IMETHOD GetCanvas(nsIDOMHTMLCanvasElement * *aCanvas) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanvas(aCanvas); } \
  363. NS_IMETHOD Save(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Save(); } \
  364. NS_IMETHOD Restore(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Restore(); } \
  365. NS_IMETHOD Scale(float x, float y) { return !_to ? NS_ERROR_NULL_POINTER : _to->Scale(x, y); } \
  366. NS_IMETHOD Rotate(float angle) { return !_to ? NS_ERROR_NULL_POINTER : _to->Rotate(angle); } \
  367. NS_IMETHOD Translate(float x, float y) { return !_to ? NS_ERROR_NULL_POINTER : _to->Translate(x, y); } \
  368. NS_IMETHOD GetGlobalAlpha(float *aGlobalAlpha) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGlobalAlpha(aGlobalAlpha); } \
  369. NS_IMETHOD SetGlobalAlpha(float aGlobalAlpha) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetGlobalAlpha(aGlobalAlpha); } \
  370. NS_IMETHOD GetGlobalCompositeOperation(nsAString & aGlobalCompositeOperation) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGlobalCompositeOperation(aGlobalCompositeOperation); } \
  371. NS_IMETHOD SetGlobalCompositeOperation(const nsAString & aGlobalCompositeOperation) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetGlobalCompositeOperation(aGlobalCompositeOperation); } \
  372. NS_IMETHOD GetStrokeStyle(nsIVariant * *aStrokeStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStrokeStyle(aStrokeStyle); } \
  373. NS_IMETHOD SetStrokeStyle(nsIVariant * aStrokeStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStrokeStyle(aStrokeStyle); } \
  374. NS_IMETHOD GetFillStyle(nsIVariant * *aFillStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFillStyle(aFillStyle); } \
  375. NS_IMETHOD SetFillStyle(nsIVariant * aFillStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFillStyle(aFillStyle); } \
  376. NS_IMETHOD CreateLinearGradient(float x0, float y0, float x1, float y1, nsIDOMCanvasGradient **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateLinearGradient(x0, y0, x1, y1, _retval); } \
  377. NS_IMETHOD CreateRadialGradient(float x0, float y0, float r0, float x1, float y1, float r1, nsIDOMCanvasGradient **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateRadialGradient(x0, y0, r0, x1, y1, r1, _retval); } \
  378. NS_IMETHOD CreatePattern(nsIDOMHTMLElement *image, const nsAString & repetition, nsIDOMCanvasPattern **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreatePattern(image, repetition, _retval); } \
  379. NS_IMETHOD GetLineWidth(float *aLineWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineWidth(aLineWidth); } \
  380. NS_IMETHOD SetLineWidth(float aLineWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLineWidth(aLineWidth); } \
  381. NS_IMETHOD GetLineCap(nsAString & aLineCap) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineCap(aLineCap); } \
  382. NS_IMETHOD SetLineCap(const nsAString & aLineCap) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLineCap(aLineCap); } \
  383. NS_IMETHOD GetLineJoin(nsAString & aLineJoin) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineJoin(aLineJoin); } \
  384. NS_IMETHOD SetLineJoin(const nsAString & aLineJoin) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLineJoin(aLineJoin); } \
  385. NS_IMETHOD GetMiterLimit(float *aMiterLimit) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMiterLimit(aMiterLimit); } \
  386. NS_IMETHOD SetMiterLimit(float aMiterLimit) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMiterLimit(aMiterLimit); } \
  387. NS_IMETHOD GetShadowOffsetX(float *aShadowOffsetX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShadowOffsetX(aShadowOffsetX); } \
  388. NS_IMETHOD SetShadowOffsetX(float aShadowOffsetX) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShadowOffsetX(aShadowOffsetX); } \
  389. NS_IMETHOD GetShadowOffsetY(float *aShadowOffsetY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShadowOffsetY(aShadowOffsetY); } \
  390. NS_IMETHOD SetShadowOffsetY(float aShadowOffsetY) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShadowOffsetY(aShadowOffsetY); } \
  391. NS_IMETHOD GetShadowBlur(float *aShadowBlur) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShadowBlur(aShadowBlur); } \
  392. NS_IMETHOD SetShadowBlur(float aShadowBlur) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShadowBlur(aShadowBlur); } \
  393. NS_IMETHOD GetShadowColor(nsAString & aShadowColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShadowColor(aShadowColor); } \
  394. NS_IMETHOD SetShadowColor(const nsAString & aShadowColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShadowColor(aShadowColor); } \
  395. NS_IMETHOD ClearRect(float x, float y, float w, float h) { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearRect(x, y, w, h); } \
  396. NS_IMETHOD FillRect(float x, float y, float w, float h) { return !_to ? NS_ERROR_NULL_POINTER : _to->FillRect(x, y, w, h); } \
  397. NS_IMETHOD StrokeRect(float x, float y, float w, float h) { return !_to ? NS_ERROR_NULL_POINTER : _to->StrokeRect(x, y, w, h); } \
  398. NS_IMETHOD BeginPath(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->BeginPath(); } \
  399. NS_IMETHOD ClosePath(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ClosePath(); } \
  400. NS_IMETHOD MoveTo(float x, float y) { return !_to ? NS_ERROR_NULL_POINTER : _to->MoveTo(x, y); } \
  401. NS_IMETHOD LineTo(float x, float y) { return !_to ? NS_ERROR_NULL_POINTER : _to->LineTo(x, y); } \
  402. NS_IMETHOD QuadraticCurveTo(float cpx, float cpy, float x, float y) { return !_to ? NS_ERROR_NULL_POINTER : _to->QuadraticCurveTo(cpx, cpy, x, y); } \
  403. NS_IMETHOD BezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y) { return !_to ? NS_ERROR_NULL_POINTER : _to->BezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y); } \
  404. NS_IMETHOD ArcTo(float x1, float y1, float x2, float y2, float radius) { return !_to ? NS_ERROR_NULL_POINTER : _to->ArcTo(x1, y1, x2, y2, radius); } \
  405. NS_IMETHOD Arc(float x, float y, float r, float startAngle, float endAngle, PRBool clockwise) { return !_to ? NS_ERROR_NULL_POINTER : _to->Arc(x, y, r, startAngle, endAngle, clockwise); } \
  406. NS_IMETHOD Rect(float x, float y, float w, float h) { return !_to ? NS_ERROR_NULL_POINTER : _to->Rect(x, y, w, h); } \
  407. NS_IMETHOD Fill(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Fill(); } \
  408. NS_IMETHOD Stroke(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Stroke(); } \
  409. NS_IMETHOD Clip(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clip(); } \
  410. NS_IMETHOD DrawImage(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->DrawImage(); } \
  411. NS_IMETHOD IsPointInPath(float x, float y, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsPointInPath(x, y, _retval); } \
  412. NS_IMETHOD GetImageData(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImageData(); } \
  413. NS_IMETHOD PutImageData(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->PutImageData(); } \
  414. NS_IMETHOD DrawWindow(nsIDOMWindow *window, PRInt32 x, PRInt32 y, PRInt32 w, PRInt32 h, const nsAString & bgColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->DrawWindow(window, x, y, w, h, bgColor); }
  415. #if 0
  416. /* Use the code below as a template for the implementation class for this interface. */
  417. /* Header file */
  418. class nsDOMCanvasRenderingContext2D : public nsIDOMCanvasRenderingContext2D
  419. {
  420. public:
  421. NS_DECL_ISUPPORTS
  422. NS_DECL_NSIDOMCANVASRENDERINGCONTEXT2D
  423. nsDOMCanvasRenderingContext2D();
  424. private:
  425. ~nsDOMCanvasRenderingContext2D();
  426. protected:
  427. /* additional members */
  428. };
  429. /* Implementation file */
  430. NS_IMPL_ISUPPORTS1(nsDOMCanvasRenderingContext2D, nsIDOMCanvasRenderingContext2D)
  431. nsDOMCanvasRenderingContext2D::nsDOMCanvasRenderingContext2D()
  432. {
  433. /* member initializers and constructor code */
  434. }
  435. nsDOMCanvasRenderingContext2D::~nsDOMCanvasRenderingContext2D()
  436. {
  437. /* destructor code */
  438. }
  439. /* readonly attribute nsIDOMHTMLCanvasElement canvas; */
  440. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetCanvas(nsIDOMHTMLCanvasElement * *aCanvas)
  441. {
  442. return NS_ERROR_NOT_IMPLEMENTED;
  443. }
  444. /* void save (); */
  445. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::Save()
  446. {
  447. return NS_ERROR_NOT_IMPLEMENTED;
  448. }
  449. /* void restore (); */
  450. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::Restore()
  451. {
  452. return NS_ERROR_NOT_IMPLEMENTED;
  453. }
  454. /* void scale (in float x, in float y); */
  455. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::Scale(float x, float y)
  456. {
  457. return NS_ERROR_NOT_IMPLEMENTED;
  458. }
  459. /* void rotate (in float angle); */
  460. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::Rotate(float angle)
  461. {
  462. return NS_ERROR_NOT_IMPLEMENTED;
  463. }
  464. /* void translate (in float x, in float y); */
  465. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::Translate(float x, float y)
  466. {
  467. return NS_ERROR_NOT_IMPLEMENTED;
  468. }
  469. /* attribute float globalAlpha; */
  470. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetGlobalAlpha(float *aGlobalAlpha)
  471. {
  472. return NS_ERROR_NOT_IMPLEMENTED;
  473. }
  474. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::SetGlobalAlpha(float aGlobalAlpha)
  475. {
  476. return NS_ERROR_NOT_IMPLEMENTED;
  477. }
  478. /* attribute DOMString globalCompositeOperation; */
  479. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetGlobalCompositeOperation(nsAString & aGlobalCompositeOperation)
  480. {
  481. return NS_ERROR_NOT_IMPLEMENTED;
  482. }
  483. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::SetGlobalCompositeOperation(const nsAString & aGlobalCompositeOperation)
  484. {
  485. return NS_ERROR_NOT_IMPLEMENTED;
  486. }
  487. /* attribute nsIVariant strokeStyle; */
  488. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetStrokeStyle(nsIVariant * *aStrokeStyle)
  489. {
  490. return NS_ERROR_NOT_IMPLEMENTED;
  491. }
  492. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::SetStrokeStyle(nsIVariant * aStrokeStyle)
  493. {
  494. return NS_ERROR_NOT_IMPLEMENTED;
  495. }
  496. /* attribute nsIVariant fillStyle; */
  497. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetFillStyle(nsIVariant * *aFillStyle)
  498. {
  499. return NS_ERROR_NOT_IMPLEMENTED;
  500. }
  501. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::SetFillStyle(nsIVariant * aFillStyle)
  502. {
  503. return NS_ERROR_NOT_IMPLEMENTED;
  504. }
  505. /* nsIDOMCanvasGradient createLinearGradient (in float x0, in float y0, in float x1, in float y1); */
  506. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::CreateLinearGradient(float x0, float y0, float x1, float y1, nsIDOMCanvasGradient **_retval)
  507. {
  508. return NS_ERROR_NOT_IMPLEMENTED;
  509. }
  510. /* nsIDOMCanvasGradient createRadialGradient (in float x0, in float y0, in float r0, in float x1, in float y1, in float r1); */
  511. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::CreateRadialGradient(float x0, float y0, float r0, float x1, float y1, float r1, nsIDOMCanvasGradient **_retval)
  512. {
  513. return NS_ERROR_NOT_IMPLEMENTED;
  514. }
  515. /* nsIDOMCanvasPattern createPattern (in nsIDOMHTMLElement image, in DOMString repetition); */
  516. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::CreatePattern(nsIDOMHTMLElement *image, const nsAString & repetition, nsIDOMCanvasPattern **_retval)
  517. {
  518. return NS_ERROR_NOT_IMPLEMENTED;
  519. }
  520. /* attribute float lineWidth; */
  521. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetLineWidth(float *aLineWidth)
  522. {
  523. return NS_ERROR_NOT_IMPLEMENTED;
  524. }
  525. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::SetLineWidth(float aLineWidth)
  526. {
  527. return NS_ERROR_NOT_IMPLEMENTED;
  528. }
  529. /* attribute DOMString lineCap; */
  530. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetLineCap(nsAString & aLineCap)
  531. {
  532. return NS_ERROR_NOT_IMPLEMENTED;
  533. }
  534. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::SetLineCap(const nsAString & aLineCap)
  535. {
  536. return NS_ERROR_NOT_IMPLEMENTED;
  537. }
  538. /* attribute DOMString lineJoin; */
  539. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetLineJoin(nsAString & aLineJoin)
  540. {
  541. return NS_ERROR_NOT_IMPLEMENTED;
  542. }
  543. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::SetLineJoin(const nsAString & aLineJoin)
  544. {
  545. return NS_ERROR_NOT_IMPLEMENTED;
  546. }
  547. /* attribute float miterLimit; */
  548. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetMiterLimit(float *aMiterLimit)
  549. {
  550. return NS_ERROR_NOT_IMPLEMENTED;
  551. }
  552. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::SetMiterLimit(float aMiterLimit)
  553. {
  554. return NS_ERROR_NOT_IMPLEMENTED;
  555. }
  556. /* attribute float shadowOffsetX; */
  557. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetShadowOffsetX(float *aShadowOffsetX)
  558. {
  559. return NS_ERROR_NOT_IMPLEMENTED;
  560. }
  561. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::SetShadowOffsetX(float aShadowOffsetX)
  562. {
  563. return NS_ERROR_NOT_IMPLEMENTED;
  564. }
  565. /* attribute float shadowOffsetY; */
  566. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetShadowOffsetY(float *aShadowOffsetY)
  567. {
  568. return NS_ERROR_NOT_IMPLEMENTED;
  569. }
  570. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::SetShadowOffsetY(float aShadowOffsetY)
  571. {
  572. return NS_ERROR_NOT_IMPLEMENTED;
  573. }
  574. /* attribute float shadowBlur; */
  575. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetShadowBlur(float *aShadowBlur)
  576. {
  577. return NS_ERROR_NOT_IMPLEMENTED;
  578. }
  579. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::SetShadowBlur(float aShadowBlur)
  580. {
  581. return NS_ERROR_NOT_IMPLEMENTED;
  582. }
  583. /* attribute DOMString shadowColor; */
  584. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetShadowColor(nsAString & aShadowColor)
  585. {
  586. return NS_ERROR_NOT_IMPLEMENTED;
  587. }
  588. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::SetShadowColor(const nsAString & aShadowColor)
  589. {
  590. return NS_ERROR_NOT_IMPLEMENTED;
  591. }
  592. /* void clearRect (in float x, in float y, in float w, in float h); */
  593. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::ClearRect(float x, float y, float w, float h)
  594. {
  595. return NS_ERROR_NOT_IMPLEMENTED;
  596. }
  597. /* void fillRect (in float x, in float y, in float w, in float h); */
  598. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::FillRect(float x, float y, float w, float h)
  599. {
  600. return NS_ERROR_NOT_IMPLEMENTED;
  601. }
  602. /* void strokeRect (in float x, in float y, in float w, in float h); */
  603. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::StrokeRect(float x, float y, float w, float h)
  604. {
  605. return NS_ERROR_NOT_IMPLEMENTED;
  606. }
  607. /* void beginPath (); */
  608. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::BeginPath()
  609. {
  610. return NS_ERROR_NOT_IMPLEMENTED;
  611. }
  612. /* void closePath (); */
  613. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::ClosePath()
  614. {
  615. return NS_ERROR_NOT_IMPLEMENTED;
  616. }
  617. /* void moveTo (in float x, in float y); */
  618. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::MoveTo(float x, float y)
  619. {
  620. return NS_ERROR_NOT_IMPLEMENTED;
  621. }
  622. /* void lineTo (in float x, in float y); */
  623. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::LineTo(float x, float y)
  624. {
  625. return NS_ERROR_NOT_IMPLEMENTED;
  626. }
  627. /* void quadraticCurveTo (in float cpx, in float cpy, in float x, in float y); */
  628. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::QuadraticCurveTo(float cpx, float cpy, float x, float y)
  629. {
  630. return NS_ERROR_NOT_IMPLEMENTED;
  631. }
  632. /* void bezierCurveTo (in float cp1x, in float cp1y, in float cp2x, in float cp2y, in float x, in float y); */
  633. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::BezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y)
  634. {
  635. return NS_ERROR_NOT_IMPLEMENTED;
  636. }
  637. /* void arcTo (in float x1, in float y1, in float x2, in float y2, in float radius); */
  638. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::ArcTo(float x1, float y1, float x2, float y2, float radius)
  639. {
  640. return NS_ERROR_NOT_IMPLEMENTED;
  641. }
  642. /* void arc (in float x, in float y, in float r, in float startAngle, in float endAngle, in boolean clockwise); */
  643. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::Arc(float x, float y, float r, float startAngle, float endAngle, PRBool clockwise)
  644. {
  645. return NS_ERROR_NOT_IMPLEMENTED;
  646. }
  647. /* void rect (in float x, in float y, in float w, in float h); */
  648. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::Rect(float x, float y, float w, float h)
  649. {
  650. return NS_ERROR_NOT_IMPLEMENTED;
  651. }
  652. /* void fill (); */
  653. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::Fill()
  654. {
  655. return NS_ERROR_NOT_IMPLEMENTED;
  656. }
  657. /* void stroke (); */
  658. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::Stroke()
  659. {
  660. return NS_ERROR_NOT_IMPLEMENTED;
  661. }
  662. /* void clip (); */
  663. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::Clip()
  664. {
  665. return NS_ERROR_NOT_IMPLEMENTED;
  666. }
  667. /* void drawImage (); */
  668. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::DrawImage()
  669. {
  670. return NS_ERROR_NOT_IMPLEMENTED;
  671. }
  672. /* boolean isPointInPath (in float x, in float y); */
  673. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::IsPointInPath(float x, float y, PRBool *_retval)
  674. {
  675. return NS_ERROR_NOT_IMPLEMENTED;
  676. }
  677. /* void getImageData (); */
  678. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::GetImageData()
  679. {
  680. return NS_ERROR_NOT_IMPLEMENTED;
  681. }
  682. /* void putImageData (); */
  683. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::PutImageData()
  684. {
  685. return NS_ERROR_NOT_IMPLEMENTED;
  686. }
  687. /* void drawWindow (in nsIDOMWindow window, in long x, in long y, in long w, in long h, in DOMString bgColor); */
  688. NS_IMETHODIMP nsDOMCanvasRenderingContext2D::DrawWindow(nsIDOMWindow *window, PRInt32 x, PRInt32 y, PRInt32 w, PRInt32 h, const nsAString & bgColor)
  689. {
  690. return NS_ERROR_NOT_IMPLEMENTED;
  691. }
  692. /* End of implementation class template. */
  693. #endif
  694. #endif /* __gen_nsIDOMCanvasRenderingContext2D_h__ */