summaryrefslogtreecommitdiff
path: root/libjava/gnu/java/awt/peer/gtk/GtkToolkit.h
blob: c562e059e04b2aa7d06a0a0f2bc9569a4b2b972c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_java_awt_peer_gtk_GtkToolkit__
#define __gnu_java_awt_peer_gtk_GtkToolkit__

#pragma interface

#include <gnu/java/awt/ClasspathToolkit.h>
#include <gcj/array.h>

extern "Java"
{
  namespace gnu
  {
    namespace java
    {
      namespace awt
      {
          class EmbeddedWindow;
        namespace peer
        {
            class ClasspathFontPeer;
            class EmbeddedWindowPeer;
          namespace gtk
          {
              class GtkComponentPeer;
              class GtkToolkit;
              class GtkToolkit$LRUCache;
          }
        }
      }
    }
  }
  namespace java
  {
    namespace awt
    {
        class Button;
        class Canvas;
        class Checkbox;
        class CheckboxMenuItem;
        class Choice;
        class Component;
        class Cursor;
        class Dialog;
        class Dialog$ModalExclusionType;
        class Dialog$ModalityType;
        class Dimension;
        class EventQueue;
        class FileDialog;
        class Font;
        class FontMetrics;
        class Frame;
        class GraphicsDevice;
        class GraphicsEnvironment;
        class Image;
        class Label;
        class List;
        class Menu;
        class MenuBar;
        class MenuItem;
        class Panel;
        class Point;
        class PopupMenu;
        class PrintJob;
        class Rectangle;
        class ScrollPane;
        class Scrollbar;
        class TextArea;
        class TextField;
        class Window;
      namespace datatransfer
      {
          class Clipboard;
      }
      namespace dnd
      {
          class DragGestureEvent;
          class DragGestureListener;
          class DragGestureRecognizer;
          class DragSource;
        namespace peer
        {
            class DragSourceContextPeer;
        }
      }
      namespace im
      {
          class InputMethodHighlight;
      }
      namespace image
      {
          class ColorModel;
          class ImageObserver;
          class ImageProducer;
      }
      namespace peer
      {
          class ButtonPeer;
          class CanvasPeer;
          class CheckboxMenuItemPeer;
          class CheckboxPeer;
          class ChoicePeer;
          class DialogPeer;
          class FileDialogPeer;
          class FontPeer;
          class FramePeer;
          class LabelPeer;
          class ListPeer;
          class MenuBarPeer;
          class MenuItemPeer;
          class MenuPeer;
          class MouseInfoPeer;
          class PanelPeer;
          class PopupMenuPeer;
          class RobotPeer;
          class ScrollPanePeer;
          class ScrollbarPeer;
          class TextAreaPeer;
          class TextFieldPeer;
          class WindowPeer;
      }
    }
    namespace net
    {
        class URL;
    }
  }
  namespace javax
  {
    namespace imageio
    {
      namespace spi
      {
          class IIORegistry;
      }
    }
  }
}

class gnu::java::awt::peer::gtk::GtkToolkit : public ::gnu::java::awt::ClasspathToolkit
{

public: // actually package-private
  static void gtkInit(jint, ::java::lang::Object *);
  static void gtkMain();
  static void gtkQuit();
private:
  static void initIDs();
public: // actually package-private
  static void initializeGlobalIDs();
public:
  GtkToolkit();
  virtual void beep();
private:
  void getScreenSizeDimensions(JArray< jint > *);
public:
  virtual jint checkImage(::java::awt::Image *, jint, jint, ::java::awt::image::ImageObserver *);
public: // actually package-private
  static ::java::awt::Image * imageOrError(::java::awt::Image *);
public:
  virtual ::java::awt::Image * createImage(::java::lang::String *);
  virtual ::java::awt::Image * createImage(::java::net::URL *);
  virtual ::java::awt::Image * createImage(::java::awt::image::ImageProducer *);
  virtual ::java::awt::Image * createImage(JArray< jbyte > *, jint, jint);
  virtual ::java::awt::image::ImageProducer * createImageProducer(::java::net::URL *);
  virtual ::java::awt::image::ColorModel * getColorModel();
  virtual JArray< ::java::lang::String * > * getFontList();
  virtual ::java::awt::FontMetrics * getFontMetrics(::java::awt::Font *);
  virtual ::java::awt::Image * getImage(::java::lang::String *);
  virtual ::java::awt::Image * getImage(::java::net::URL *);
  virtual ::java::awt::PrintJob * getPrintJob(::java::awt::Frame *, ::java::lang::String *, ::java::util::Properties *);
  virtual jint getScreenResolution();
  virtual ::java::awt::Dimension * getScreenSize();
  virtual ::java::awt::datatransfer::Clipboard * getSystemClipboard();
  virtual ::java::awt::datatransfer::Clipboard * getSystemSelection();
  virtual jboolean prepareImage(::java::awt::Image *, jint, jint, ::java::awt::image::ImageObserver *);
  virtual void sync();
public: // actually protected
  virtual void setComponentState(::java::awt::Component *, ::gnu::java::awt::peer::gtk::GtkComponentPeer *);
  virtual ::java::awt::peer::ButtonPeer * createButton(::java::awt::Button *);
  virtual ::java::awt::peer::CanvasPeer * createCanvas(::java::awt::Canvas *);
  virtual ::java::awt::peer::CheckboxPeer * createCheckbox(::java::awt::Checkbox *);
  virtual ::java::awt::peer::CheckboxMenuItemPeer * createCheckboxMenuItem(::java::awt::CheckboxMenuItem *);
  virtual ::java::awt::peer::ChoicePeer * createChoice(::java::awt::Choice *);
  virtual ::java::awt::peer::DialogPeer * createDialog(::java::awt::Dialog *);
  virtual ::java::awt::peer::FileDialogPeer * createFileDialog(::java::awt::FileDialog *);
  virtual ::java::awt::peer::FramePeer * createFrame(::java::awt::Frame *);
  virtual ::java::awt::peer::LabelPeer * createLabel(::java::awt::Label *);
  virtual ::java::awt::peer::ListPeer * createList(::java::awt::List *);
  virtual ::java::awt::peer::MenuPeer * createMenu(::java::awt::Menu *);
  virtual ::java::awt::peer::MenuBarPeer * createMenuBar(::java::awt::MenuBar *);
  virtual ::java::awt::peer::MenuItemPeer * createMenuItem(::java::awt::MenuItem *);
  virtual ::java::awt::peer::PanelPeer * createPanel(::java::awt::Panel *);
  virtual ::java::awt::peer::PopupMenuPeer * createPopupMenu(::java::awt::PopupMenu *);
  virtual ::java::awt::peer::ScrollPanePeer * createScrollPane(::java::awt::ScrollPane *);
  virtual ::java::awt::peer::ScrollbarPeer * createScrollbar(::java::awt::Scrollbar *);
  virtual ::java::awt::peer::TextAreaPeer * createTextArea(::java::awt::TextArea *);
  virtual ::java::awt::peer::TextFieldPeer * createTextField(::java::awt::TextField *);
  virtual ::java::awt::peer::WindowPeer * createWindow(::java::awt::Window *);
public:
  virtual ::gnu::java::awt::peer::EmbeddedWindowPeer * createEmbeddedWindow(::gnu::java::awt::EmbeddedWindow *);
public: // actually protected
  virtual ::java::awt::peer::FontPeer * getFontPeer(::java::lang::String *, jint);
private:
  ::java::awt::peer::FontPeer * getFontPeer(::java::lang::String *, jint, jint);
public:
  virtual ::gnu::java::awt::peer::ClasspathFontPeer * getClasspathFontPeer(::java::lang::String *, ::java::util::Map *);
public: // actually protected
  virtual ::java::awt::EventQueue * getSystemEventQueueImpl();
public:
  virtual ::java::awt::Cursor * createCustomCursor(::java::awt::Image *, ::java::awt::Point *, ::java::lang::String *);
public: // actually protected
  virtual void loadSystemColors(JArray< jint > *);
public:
  virtual ::java::awt::dnd::peer::DragSourceContextPeer * createDragSourceContextPeer(::java::awt::dnd::DragGestureEvent *);
  virtual ::java::awt::dnd::DragGestureRecognizer * createDragGestureRecognizer(::java::lang::Class *, ::java::awt::dnd::DragSource *, ::java::awt::Component *, jint, ::java::awt::dnd::DragGestureListener *);
  virtual ::java::util::Map * mapInputMethodHighlight(::java::awt::im::InputMethodHighlight *);
  virtual ::java::awt::Rectangle * getBounds();
  virtual ::java::awt::GraphicsEnvironment * getLocalGraphicsEnvironment();
  virtual ::java::awt::Font * createFont(jint, ::java::io::InputStream *);
  virtual ::java::awt::peer::RobotPeer * createRobot(::java::awt::GraphicsDevice *);
  virtual jboolean getLockingKeyState(jint);
public: // actually protected
  virtual jint getLockState(jint);
public:
  virtual void registerImageIOSpis(::javax::imageio::spi::IIORegistry *);
public: // actually protected
  virtual ::java::awt::peer::MouseInfoPeer * getMouseInfoPeer();
public:
  virtual jboolean isFrameStateSupported(jint);
private:
  void checkHeadless();
public:
  virtual jint getMouseNumberOfButtons();
  virtual jboolean isModalExclusionTypeSupported(::java::awt::Dialog$ModalExclusionType *);
  virtual jboolean isModalityTypeSupported(::java::awt::Dialog$ModalityType *);
public: // actually package-private
  static ::java::lang::Object * GTK_LOCK;
private:
  static ::java::awt::EventQueue * q;
  static jboolean initializedGlobalIDs;
  ::gnu::java::awt::peer::gtk::GtkToolkit$LRUCache * __attribute__((aligned(__alignof__( ::gnu::java::awt::ClasspathToolkit)))) fontCache;
  ::gnu::java::awt::peer::gtk::GtkToolkit$LRUCache * imageCache;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_java_awt_peer_gtk_GtkToolkit__