DebugGraphics.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __javax_swing_DebugGraphics__
  3. #define __javax_swing_DebugGraphics__
  4. #pragma interface
  5. #include <java/awt/Graphics.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace java
  10. {
  11. namespace awt
  12. {
  13. class Color;
  14. class Font;
  15. class FontMetrics;
  16. class Graphics;
  17. class Image;
  18. class Rectangle;
  19. class Shape;
  20. namespace image
  21. {
  22. class ImageObserver;
  23. }
  24. }
  25. namespace text
  26. {
  27. class AttributedCharacterIterator;
  28. }
  29. }
  30. namespace javax
  31. {
  32. namespace swing
  33. {
  34. class DebugGraphics;
  35. class JComponent;
  36. }
  37. }
  38. }
  39. class javax::swing::DebugGraphics : public ::java::awt::Graphics
  40. {
  41. public:
  42. DebugGraphics();
  43. DebugGraphics(::java::awt::Graphics *, ::javax::swing::JComponent *);
  44. DebugGraphics(::java::awt::Graphics *);
  45. virtual void setColor(::java::awt::Color *);
  46. virtual ::java::awt::Graphics * create();
  47. virtual ::java::awt::Graphics * create(jint, jint, jint, jint);
  48. static ::java::awt::Color * flashColor();
  49. static void setFlashColor(::java::awt::Color *);
  50. static jint flashTime();
  51. static void setFlashTime(jint);
  52. static jint flashCount();
  53. static void setFlashCount(jint);
  54. static ::java::io::PrintStream * logStream();
  55. static void setLogStream(::java::io::PrintStream *);
  56. virtual ::java::awt::Font * getFont();
  57. virtual void setFont(::java::awt::Font *);
  58. virtual ::java::awt::Color * getColor();
  59. virtual ::java::awt::FontMetrics * getFontMetrics();
  60. virtual ::java::awt::FontMetrics * getFontMetrics(::java::awt::Font *);
  61. virtual void translate(jint, jint);
  62. virtual void setPaintMode();
  63. virtual void setXORMode(::java::awt::Color *);
  64. virtual ::java::awt::Rectangle * getClipBounds();
  65. virtual void clipRect(jint, jint, jint, jint);
  66. virtual void setClip(jint, jint, jint, jint);
  67. virtual ::java::awt::Shape * getClip();
  68. virtual void setClip(::java::awt::Shape *);
  69. private:
  70. void sleep(jint);
  71. public:
  72. virtual void drawRect(jint, jint, jint, jint);
  73. virtual void fillRect(jint, jint, jint, jint);
  74. virtual void clearRect(jint, jint, jint, jint);
  75. virtual void drawRoundRect(jint, jint, jint, jint, jint, jint);
  76. virtual void fillRoundRect(jint, jint, jint, jint, jint, jint);
  77. virtual void drawLine(jint, jint, jint, jint);
  78. virtual void draw3DRect(jint, jint, jint, jint, jboolean);
  79. virtual void fill3DRect(jint, jint, jint, jint, jboolean);
  80. virtual void drawOval(jint, jint, jint, jint);
  81. virtual void fillOval(jint, jint, jint, jint);
  82. virtual void drawArc(jint, jint, jint, jint, jint, jint);
  83. virtual void fillArc(jint, jint, jint, jint, jint, jint);
  84. virtual void drawPolyline(JArray< jint > *, JArray< jint > *, jint);
  85. virtual void drawPolygon(JArray< jint > *, JArray< jint > *, jint);
  86. virtual void fillPolygon(JArray< jint > *, JArray< jint > *, jint);
  87. virtual void drawString(::java::lang::String *, jint, jint);
  88. virtual void drawString(::java::text::AttributedCharacterIterator *, jint, jint);
  89. virtual void drawBytes(JArray< jbyte > *, jint, jint, jint, jint);
  90. virtual void drawChars(JArray< jchar > *, jint, jint, jint, jint);
  91. virtual jboolean drawImage(::java::awt::Image *, jint, jint, ::java::awt::image::ImageObserver *);
  92. virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, ::java::awt::image::ImageObserver *);
  93. virtual jboolean drawImage(::java::awt::Image *, jint, jint, ::java::awt::Color *, ::java::awt::image::ImageObserver *);
  94. virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, ::java::awt::Color *, ::java::awt::image::ImageObserver *);
  95. virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, jint, jint, jint, jint, ::java::awt::image::ImageObserver *);
  96. virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, jint, jint, jint, jint, ::java::awt::Color *, ::java::awt::image::ImageObserver *);
  97. virtual void copyArea(jint, jint, jint, jint, jint, jint);
  98. virtual void dispose();
  99. virtual jboolean isDrawingBuffer();
  100. virtual void setDebugOptions(jint);
  101. virtual jint getDebugOptions();
  102. private:
  103. ::java::lang::String * prefix();
  104. public:
  105. static const jint LOG_OPTION = 1;
  106. static const jint FLASH_OPTION = 2;
  107. static const jint BUFFERED_OPTION = 4;
  108. static const jint NONE_OPTION = -1;
  109. public: // actually package-private
  110. static ::java::awt::Color * debugFlashColor;
  111. static jint debugFlashCount;
  112. static jint debugFlashTime;
  113. static ::java::io::PrintStream * debugLogStream;
  114. static jint counter;
  115. ::java::awt::Graphics * __attribute__((aligned(__alignof__( ::java::awt::Graphics)))) graphics;
  116. ::java::awt::Image * buffer;
  117. jint debugOptions;
  118. jint graphicsID;
  119. jint xOffset;
  120. jint yOffset;
  121. public:
  122. static ::java::lang::Class class$;
  123. };
  124. #endif // __javax_swing_DebugGraphics__