XToolkit.h 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_awt_xlib_XToolkit__
  3. #define __gnu_awt_xlib_XToolkit__
  4. #pragma interface
  5. #include <gnu/java/awt/ClasspathToolkit.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace gnu
  10. {
  11. namespace awt
  12. {
  13. namespace xlib
  14. {
  15. class XEventLoop;
  16. class XGraphicsConfiguration;
  17. class XToolkit;
  18. }
  19. }
  20. namespace gcj
  21. {
  22. namespace xlib
  23. {
  24. class Display;
  25. }
  26. }
  27. namespace java
  28. {
  29. namespace awt
  30. {
  31. class EmbeddedWindow;
  32. namespace peer
  33. {
  34. class ClasspathFontPeer;
  35. class EmbeddedWindowPeer;
  36. }
  37. }
  38. }
  39. }
  40. namespace java
  41. {
  42. namespace awt
  43. {
  44. class Button;
  45. class Canvas;
  46. class Checkbox;
  47. class CheckboxMenuItem;
  48. class Choice;
  49. class Component;
  50. class Dialog;
  51. class Dialog$ModalExclusionType;
  52. class Dialog$ModalityType;
  53. class Dimension;
  54. class EventQueue;
  55. class FileDialog;
  56. class Font;
  57. class FontMetrics;
  58. class Frame;
  59. class GraphicsDevice;
  60. class GraphicsEnvironment;
  61. class Image;
  62. class Label;
  63. class List;
  64. class Menu;
  65. class MenuBar;
  66. class MenuItem;
  67. class Panel;
  68. class PopupMenu;
  69. class PrintJob;
  70. class ScrollPane;
  71. class Scrollbar;
  72. class TextArea;
  73. class TextField;
  74. class Window;
  75. namespace datatransfer
  76. {
  77. class Clipboard;
  78. }
  79. namespace dnd
  80. {
  81. class DragGestureEvent;
  82. class DragGestureListener;
  83. class DragGestureRecognizer;
  84. class DragSource;
  85. namespace peer
  86. {
  87. class DragSourceContextPeer;
  88. }
  89. }
  90. namespace im
  91. {
  92. class InputMethodHighlight;
  93. }
  94. namespace image
  95. {
  96. class ColorModel;
  97. class ImageObserver;
  98. class ImageProducer;
  99. }
  100. namespace peer
  101. {
  102. class ButtonPeer;
  103. class CanvasPeer;
  104. class CheckboxMenuItemPeer;
  105. class CheckboxPeer;
  106. class ChoicePeer;
  107. class DialogPeer;
  108. class FileDialogPeer;
  109. class FontPeer;
  110. class FramePeer;
  111. class LabelPeer;
  112. class ListPeer;
  113. class MenuBarPeer;
  114. class MenuItemPeer;
  115. class MenuPeer;
  116. class PanelPeer;
  117. class PopupMenuPeer;
  118. class RobotPeer;
  119. class ScrollPanePeer;
  120. class ScrollbarPeer;
  121. class TextAreaPeer;
  122. class TextFieldPeer;
  123. class WindowPeer;
  124. }
  125. }
  126. namespace net
  127. {
  128. class URL;
  129. }
  130. }
  131. }
  132. class gnu::awt::xlib::XToolkit : public ::gnu::java::awt::ClasspathToolkit
  133. {
  134. public:
  135. XToolkit();
  136. virtual void flushIfIdle();
  137. public: // actually protected
  138. virtual ::java::awt::peer::ButtonPeer * createButton(::java::awt::Button *);
  139. virtual ::java::awt::peer::TextFieldPeer * createTextField(::java::awt::TextField *);
  140. virtual ::java::awt::peer::LabelPeer * createLabel(::java::awt::Label *);
  141. virtual ::java::awt::peer::ListPeer * createList(::java::awt::List *);
  142. virtual ::java::awt::peer::CheckboxPeer * createCheckbox(::java::awt::Checkbox *);
  143. virtual ::java::awt::peer::ScrollbarPeer * createScrollbar(::java::awt::Scrollbar *);
  144. virtual ::java::awt::peer::ScrollPanePeer * createScrollPane(::java::awt::ScrollPane *);
  145. virtual ::java::awt::peer::TextAreaPeer * createTextArea(::java::awt::TextArea *);
  146. virtual ::java::awt::peer::ChoicePeer * createChoice(::java::awt::Choice *);
  147. virtual ::java::awt::peer::FramePeer * createFrame(::java::awt::Frame *);
  148. virtual ::java::awt::peer::CanvasPeer * createCanvas(::java::awt::Canvas *);
  149. virtual ::java::awt::peer::PanelPeer * createPanel(::java::awt::Panel *);
  150. virtual ::java::awt::peer::WindowPeer * createWindow(::java::awt::Window *);
  151. virtual ::java::awt::peer::DialogPeer * createDialog(::java::awt::Dialog *);
  152. virtual ::java::awt::peer::MenuBarPeer * createMenuBar(::java::awt::MenuBar *);
  153. virtual ::java::awt::peer::MenuPeer * createMenu(::java::awt::Menu *);
  154. virtual ::java::awt::peer::PopupMenuPeer * createPopupMenu(::java::awt::PopupMenu *);
  155. virtual ::java::awt::peer::MenuItemPeer * createMenuItem(::java::awt::MenuItem *);
  156. virtual ::java::awt::peer::FileDialogPeer * createFileDialog(::java::awt::FileDialog *);
  157. virtual ::java::awt::peer::CheckboxMenuItemPeer * createCheckboxMenuItem(::java::awt::CheckboxMenuItem *);
  158. virtual ::java::awt::peer::FontPeer * getFontPeer(::java::lang::String *, jint);
  159. public:
  160. virtual ::java::awt::Dimension * getScreenSize();
  161. virtual jint getScreenResolution();
  162. virtual ::java::awt::image::ColorModel * getColorModel();
  163. virtual JArray< ::java::lang::String * > * getFontList();
  164. virtual ::java::awt::FontMetrics * getFontMetrics(::java::awt::Font *);
  165. virtual void sync();
  166. virtual ::java::awt::Image * getImage(::java::lang::String *);
  167. virtual ::java::awt::Image * getImage(::java::net::URL *);
  168. virtual ::java::awt::Image * createImage(::java::lang::String *);
  169. virtual ::java::awt::Image * createImage(::java::net::URL *);
  170. virtual jboolean prepareImage(::java::awt::Image *, jint, jint, ::java::awt::image::ImageObserver *);
  171. virtual jint checkImage(::java::awt::Image *, jint, jint, ::java::awt::image::ImageObserver *);
  172. virtual ::java::awt::Image * createImage(::java::awt::image::ImageProducer *);
  173. virtual ::java::awt::Image * createImage(JArray< jbyte > *, jint, jint);
  174. virtual void beep();
  175. virtual ::java::awt::datatransfer::Clipboard * getSystemClipboard();
  176. public: // actually protected
  177. virtual ::java::awt::EventQueue * getSystemEventQueueImpl();
  178. public:
  179. virtual ::java::awt::PrintJob * getPrintJob(::java::awt::Frame *, ::java::lang::String *, ::java::util::Properties *);
  180. public: // actually package-private
  181. virtual ::gnu::awt::xlib::XGraphicsConfiguration * getDefaultXGraphicsConfiguration();
  182. public:
  183. virtual ::java::awt::dnd::peer::DragSourceContextPeer * createDragSourceContextPeer(::java::awt::dnd::DragGestureEvent *);
  184. virtual ::java::awt::dnd::DragGestureRecognizer * createDragGestureRecognizer(::java::lang::Class *, ::java::awt::dnd::DragSource *, ::java::awt::Component *, jint, ::java::awt::dnd::DragGestureListener *);
  185. virtual ::java::util::Map * mapInputMethodHighlight(::java::awt::im::InputMethodHighlight *);
  186. virtual ::java::awt::GraphicsEnvironment * getLocalGraphicsEnvironment();
  187. virtual ::gnu::java::awt::peer::ClasspathFontPeer * getClasspathFontPeer(::java::lang::String *, ::java::util::Map *);
  188. virtual ::java::awt::Font * createFont(jint, ::java::io::InputStream *);
  189. virtual ::java::awt::peer::RobotPeer * createRobot(::java::awt::GraphicsDevice *);
  190. virtual ::gnu::java::awt::peer::EmbeddedWindowPeer * createEmbeddedWindow(::gnu::java::awt::EmbeddedWindow *);
  191. virtual jboolean nativeQueueEmpty();
  192. virtual void wakeNativeQueue();
  193. virtual void iterateNativeQueue(::java::awt::EventQueue *, jboolean);
  194. virtual void setAlwaysOnTop(jboolean);
  195. virtual jboolean isModalExclusionTypeSupported(::java::awt::Dialog$ModalExclusionType *);
  196. virtual jboolean isModalityTypeSupported(::java::awt::Dialog$ModalityType *);
  197. public: // actually package-private
  198. static ::gnu::awt::xlib::XToolkit * INSTANCE;
  199. ::gnu::gcj::xlib::Display * __attribute__((aligned(__alignof__( ::gnu::java::awt::ClasspathToolkit)))) display;
  200. ::java::awt::EventQueue * queue;
  201. ::gnu::awt::xlib::XEventLoop * eventLoop;
  202. ::gnu::awt::xlib::XGraphicsConfiguration * defaultConfig;
  203. public:
  204. static ::java::lang::Class class$;
  205. };
  206. #endif // __gnu_awt_xlib_XToolkit__