summaryrefslogtreecommitdiff
path: root/libjava/java/awt/Component.h
blob: 23edfa77e98bcde19987d6854419227b168c1acb (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
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __java_awt_Component__
#define __java_awt_Component__

#pragma interface

#include <java/lang/Object.h>
#include <gcj/array.h>

extern "Java"
{
  namespace java
  {
    namespace awt
    {
        class AWTEvent;
        class Color;
        class Component;
        class ComponentOrientation;
        class Container;
        class Cursor;
        class Dimension;
        class Event;
        class Font;
        class FontMetrics;
        class Graphics;
        class GraphicsConfiguration;
        class Image;
        class ImageCapabilities;
        class MenuComponent;
        class Point;
        class PopupMenu;
        class Rectangle;
        class Toolkit;
      namespace dnd
      {
          class DropTarget;
      }
      namespace event
      {
          class ComponentEvent;
          class ComponentListener;
          class FocusEvent;
          class FocusListener;
          class HierarchyBoundsListener;
          class HierarchyEvent;
          class HierarchyListener;
          class InputMethodEvent;
          class InputMethodListener;
          class KeyEvent;
          class KeyListener;
          class MouseEvent;
          class MouseListener;
          class MouseMotionListener;
          class MouseWheelEvent;
          class MouseWheelListener;
      }
      namespace im
      {
          class InputContext;
          class InputMethodRequests;
      }
      namespace image
      {
          class BufferStrategy;
          class ColorModel;
          class ImageObserver;
          class ImageProducer;
          class VolatileImage;
      }
      namespace peer
      {
          class ComponentPeer;
      }
    }
    namespace beans
    {
        class PropertyChangeListener;
        class PropertyChangeSupport;
    }
  }
  namespace javax
  {
    namespace accessibility
    {
        class AccessibleContext;
    }
  }
}

class java::awt::Component : public ::java::lang::Object
{

public: // actually protected
  Component();
public:
  virtual ::java::lang::String * getName();
  virtual void setName(::java::lang::String *);
  virtual ::java::awt::Container * getParent();
  virtual ::java::awt::peer::ComponentPeer * getPeer();
  virtual void setDropTarget(::java::awt::dnd::DropTarget *);
  virtual ::java::awt::dnd::DropTarget * getDropTarget();
  virtual ::java::awt::GraphicsConfiguration * getGraphicsConfiguration();
  virtual ::java::lang::Object * getTreeLock();
  virtual ::java::awt::Toolkit * getToolkit();
  virtual jboolean isValid();
  virtual jboolean isDisplayable();
  virtual jboolean isVisible();
  virtual jboolean isShowing();
  virtual jboolean isEnabled();
  virtual void setEnabled(jboolean);
  virtual void enable();
  virtual void enable(jboolean);
  virtual void disable();
  virtual jboolean isDoubleBuffered();
  virtual void enableInputMethods(jboolean);
  virtual void setVisible(jboolean);
  virtual void show();
  virtual void show(jboolean);
  virtual void hide();
  virtual ::java::awt::Color * getForeground();
  virtual void setForeground(::java::awt::Color *);
  virtual jboolean isForegroundSet();
  virtual ::java::awt::Color * getBackground();
  virtual void setBackground(::java::awt::Color *);
  virtual jboolean isBackgroundSet();
  virtual ::java::awt::Font * getFont();
private:
  ::java::awt::Font * getFontImpl();
public:
  virtual void setFont(::java::awt::Font *);
  virtual jboolean isFontSet();
  virtual ::java::util::Locale * getLocale();
  virtual void setLocale(::java::util::Locale *);
  virtual ::java::awt::image::ColorModel * getColorModel();
  virtual ::java::awt::Point * getLocation();
  virtual ::java::awt::Point * getLocationOnScreen();
  virtual ::java::awt::Point * location();
  virtual void setLocation(jint, jint);
  virtual void move(jint, jint);
  virtual void setLocation(::java::awt::Point *);
  virtual ::java::awt::Dimension * getSize();
  virtual ::java::awt::Dimension * size();
  virtual void setSize(jint, jint);
  virtual void resize(jint, jint);
  virtual void setSize(::java::awt::Dimension *);
  virtual void resize(::java::awt::Dimension *);
  virtual ::java::awt::Rectangle * getBounds();
  virtual ::java::awt::Rectangle * bounds();
  virtual void setBounds(jint, jint, jint, jint);
  virtual void reshape(jint, jint, jint, jint);
public: // actually package-private
  virtual void notifyReshape(jboolean, jboolean);
public:
  virtual void setBounds(::java::awt::Rectangle *);
  virtual jint getX();
  virtual jint getY();
  virtual jint getWidth();
  virtual jint getHeight();
  virtual ::java::awt::Rectangle * getBounds(::java::awt::Rectangle *);
  virtual ::java::awt::Dimension * getSize(::java::awt::Dimension *);
  virtual ::java::awt::Point * getLocation(::java::awt::Point *);
  virtual jboolean isOpaque();
  virtual jboolean isLightweight();
  virtual ::java::awt::Dimension * getPreferredSize();
  virtual void setPreferredSize(::java::awt::Dimension *);
  virtual jboolean isPreferredSizeSet();
  virtual ::java::awt::Dimension * preferredSize();
public: // actually package-private
  virtual ::java::awt::Dimension * preferredSizeImpl();
public:
  virtual ::java::awt::Dimension * getMinimumSize();
  virtual void setMinimumSize(::java::awt::Dimension *);
  virtual jboolean isMinimumSizeSet();
  virtual ::java::awt::Dimension * minimumSize();
public: // actually package-private
  virtual ::java::awt::Dimension * minimumSizeImpl();
public:
  virtual ::java::awt::Dimension * getMaximumSize();
public: // actually package-private
  virtual ::java::awt::Dimension * maximumSizeImpl();
public:
  virtual void setMaximumSize(::java::awt::Dimension *);
  virtual jboolean isMaximumSizeSet();
  virtual jfloat getAlignmentX();
  virtual jfloat getAlignmentY();
  virtual void doLayout();
  virtual void layout();
  virtual void validate();
  virtual void invalidate();
  virtual ::java::awt::Graphics * getGraphics();
  virtual ::java::awt::FontMetrics * getFontMetrics(::java::awt::Font *);
  virtual void setCursor(::java::awt::Cursor *);
  virtual ::java::awt::Cursor * getCursor();
  virtual jboolean isCursorSet();
  virtual void paint(::java::awt::Graphics *);
  virtual void update(::java::awt::Graphics *);
  virtual void paintAll(::java::awt::Graphics *);
  virtual void repaint();
  virtual void repaint(jlong);
  virtual void repaint(jint, jint, jint, jint);
  virtual void repaint(jlong, jint, jint, jint, jint);
  virtual void print(::java::awt::Graphics *);
  virtual void printAll(::java::awt::Graphics *);
  virtual jboolean imageUpdate(::java::awt::Image *, jint, jint, jint, jint, jint);
  virtual ::java::awt::Image * createImage(::java::awt::image::ImageProducer *);
  virtual ::java::awt::Image * createImage(jint, jint);
  virtual ::java::awt::image::VolatileImage * createVolatileImage(jint, jint);
  virtual ::java::awt::image::VolatileImage * createVolatileImage(jint, jint, ::java::awt::ImageCapabilities *);
  virtual jboolean prepareImage(::java::awt::Image *, ::java::awt::image::ImageObserver *);
  virtual jboolean prepareImage(::java::awt::Image *, jint, jint, ::java::awt::image::ImageObserver *);
  virtual jint checkImage(::java::awt::Image *, ::java::awt::image::ImageObserver *);
  virtual jint checkImage(::java::awt::Image *, jint, jint, ::java::awt::image::ImageObserver *);
  virtual void setIgnoreRepaint(jboolean);
  virtual jboolean getIgnoreRepaint();
  virtual jboolean contains(jint, jint);
  virtual jboolean inside(jint, jint);
  virtual jboolean contains(::java::awt::Point *);
  virtual ::java::awt::Component * getComponentAt(jint, jint);
  virtual ::java::awt::Component * locate(jint, jint);
  virtual ::java::awt::Component * getComponentAt(::java::awt::Point *);
  virtual void deliverEvent(::java::awt::Event *);
  virtual void dispatchEvent(::java::awt::AWTEvent *);
public: // actually package-private
  static jboolean ignoreOldMouseEvents();
public:
  virtual jboolean postEvent(::java::awt::Event *);
  virtual void addComponentListener(::java::awt::event::ComponentListener *);
  virtual void removeComponentListener(::java::awt::event::ComponentListener *);
  virtual JArray< ::java::awt::event::ComponentListener * > * getComponentListeners();
  virtual void addFocusListener(::java::awt::event::FocusListener *);
  virtual void removeFocusListener(::java::awt::event::FocusListener *);
  virtual JArray< ::java::awt::event::FocusListener * > * getFocusListeners();
  virtual void addHierarchyListener(::java::awt::event::HierarchyListener *);
  virtual void removeHierarchyListener(::java::awt::event::HierarchyListener *);
  virtual JArray< ::java::awt::event::HierarchyListener * > * getHierarchyListeners();
  virtual void addHierarchyBoundsListener(::java::awt::event::HierarchyBoundsListener *);
  virtual void removeHierarchyBoundsListener(::java::awt::event::HierarchyBoundsListener *);
  virtual JArray< ::java::awt::event::HierarchyBoundsListener * > * getHierarchyBoundsListeners();
public: // actually package-private
  virtual void fireHierarchyEvent(jint, ::java::awt::Component *, ::java::awt::Container *, jlong);
public:
  virtual void addKeyListener(::java::awt::event::KeyListener *);
  virtual void removeKeyListener(::java::awt::event::KeyListener *);
  virtual JArray< ::java::awt::event::KeyListener * > * getKeyListeners();
  virtual void addMouseListener(::java::awt::event::MouseListener *);
  virtual void removeMouseListener(::java::awt::event::MouseListener *);
  virtual JArray< ::java::awt::event::MouseListener * > * getMouseListeners();
  virtual void addMouseMotionListener(::java::awt::event::MouseMotionListener *);
  virtual void removeMouseMotionListener(::java::awt::event::MouseMotionListener *);
  virtual JArray< ::java::awt::event::MouseMotionListener * > * getMouseMotionListeners();
  virtual void addMouseWheelListener(::java::awt::event::MouseWheelListener *);
  virtual void removeMouseWheelListener(::java::awt::event::MouseWheelListener *);
  virtual JArray< ::java::awt::event::MouseWheelListener * > * getMouseWheelListeners();
  virtual void addInputMethodListener(::java::awt::event::InputMethodListener *);
  virtual void removeInputMethodListener(::java::awt::event::InputMethodListener *);
  virtual JArray< ::java::awt::event::InputMethodListener * > * getInputMethodListeners();
  virtual JArray< ::java::util::EventListener * > * getListeners(::java::lang::Class *);
  virtual ::java::awt::im::InputMethodRequests * getInputMethodRequests();
  virtual ::java::awt::im::InputContext * getInputContext();
public: // actually protected
  virtual void enableEvents(jlong);
  virtual void disableEvents(jlong);
  virtual ::java::awt::AWTEvent * coalesceEvents(::java::awt::AWTEvent *, ::java::awt::AWTEvent *);
  virtual void processEvent(::java::awt::AWTEvent *);
  virtual void processComponentEvent(::java::awt::event::ComponentEvent *);
  virtual void processFocusEvent(::java::awt::event::FocusEvent *);
  virtual void processKeyEvent(::java::awt::event::KeyEvent *);
  virtual void processMouseEvent(::java::awt::event::MouseEvent *);
  virtual void processMouseMotionEvent(::java::awt::event::MouseEvent *);
  virtual void processMouseWheelEvent(::java::awt::event::MouseWheelEvent *);
  virtual void processInputMethodEvent(::java::awt::event::InputMethodEvent *);
  virtual void processHierarchyEvent(::java::awt::event::HierarchyEvent *);
  virtual void processHierarchyBoundsEvent(::java::awt::event::HierarchyEvent *);
public:
  virtual jboolean handleEvent(::java::awt::Event *);
  virtual jboolean mouseDown(::java::awt::Event *, jint, jint);
  virtual jboolean mouseDrag(::java::awt::Event *, jint, jint);
  virtual jboolean mouseUp(::java::awt::Event *, jint, jint);
  virtual jboolean mouseMove(::java::awt::Event *, jint, jint);
  virtual jboolean mouseEnter(::java::awt::Event *, jint, jint);
  virtual jboolean mouseExit(::java::awt::Event *, jint, jint);
  virtual jboolean keyDown(::java::awt::Event *, jint);
  virtual jboolean keyUp(::java::awt::Event *, jint);
  virtual jboolean action(::java::awt::Event *, ::java::lang::Object *);
  virtual void addNotify();
  virtual void removeNotify();
  virtual jboolean gotFocus(::java::awt::Event *, ::java::lang::Object *);
  virtual jboolean lostFocus(::java::awt::Event *, ::java::lang::Object *);
  virtual jboolean isFocusTraversable();
  virtual jboolean isFocusable();
  virtual void setFocusable(jboolean);
  virtual void setFocusTraversalKeys(jint, ::java::util::Set *);
  virtual ::java::util::Set * getFocusTraversalKeys(jint);
  virtual jboolean areFocusTraversalKeysSet(jint);
  virtual void setFocusTraversalKeysEnabled(jboolean);
  virtual jboolean getFocusTraversalKeysEnabled();
  virtual void requestFocus();
public: // actually protected
  virtual jboolean requestFocus(jboolean);
public:
  virtual jboolean requestFocusInWindow();
public: // actually protected
  virtual jboolean requestFocusInWindow(jboolean);
private:
  jboolean requestFocusImpl(jboolean, jboolean);
public:
  virtual void transferFocus();
  virtual ::java::awt::Container * getFocusCycleRootAncestor();
  virtual jboolean isFocusCycleRoot(::java::awt::Container *);
  virtual void nextFocus();
  virtual void transferFocusBackward();
  virtual void transferFocusUpCycle();
  virtual jboolean hasFocus();
  virtual jboolean isFocusOwner();
  virtual void add(::java::awt::PopupMenu *);
  virtual void remove(::java::awt::MenuComponent *);
public: // actually protected
  virtual ::java::lang::String * paramString();
public:
  virtual ::java::lang::String * toString();
  virtual void list();
  virtual void list(::java::io::PrintStream *);
  virtual void list(::java::io::PrintStream *, jint);
  virtual void list(::java::io::PrintWriter *);
  virtual void list(::java::io::PrintWriter *, jint);
  virtual void addPropertyChangeListener(::java::beans::PropertyChangeListener *);
  virtual void removePropertyChangeListener(::java::beans::PropertyChangeListener *);
  virtual JArray< ::java::beans::PropertyChangeListener * > * getPropertyChangeListeners();
  virtual void addPropertyChangeListener(::java::lang::String *, ::java::beans::PropertyChangeListener *);
  virtual void removePropertyChangeListener(::java::lang::String *, ::java::beans::PropertyChangeListener *);
  virtual JArray< ::java::beans::PropertyChangeListener * > * getPropertyChangeListeners(::java::lang::String *);
public: // actually protected
  virtual void firePropertyChange(::java::lang::String *, ::java::lang::Object *, ::java::lang::Object *);
  virtual void firePropertyChange(::java::lang::String *, jboolean, jboolean);
  virtual void firePropertyChange(::java::lang::String *, jint, jint);
public:
  virtual void firePropertyChange(::java::lang::String *, jbyte, jbyte);
  virtual void firePropertyChange(::java::lang::String *, jchar, jchar);
  virtual void firePropertyChange(::java::lang::String *, jshort, jshort);
  virtual void firePropertyChange(::java::lang::String *, jlong, jlong);
  virtual void firePropertyChange(::java::lang::String *, jfloat, jfloat);
  virtual void firePropertyChange(::java::lang::String *, jdouble, jdouble);
  virtual void setComponentOrientation(::java::awt::ComponentOrientation *);
  virtual ::java::awt::ComponentOrientation * getComponentOrientation();
  virtual void applyComponentOrientation(::java::awt::ComponentOrientation *);
  virtual ::javax::accessibility::AccessibleContext * getAccessibleContext();
public: // actually package-private
  virtual ::java::lang::String * generateName();
  virtual void setPeer(::java::awt::peer::ComponentPeer *);
  static ::java::awt::Event * translateEvent(::java::awt::AWTEvent *);
  virtual void dispatchEventImpl(::java::awt::AWTEvent *);
  virtual jboolean eventTypeEnabled(jint);
  virtual jboolean isHierarchyVisible();
public:
  virtual ::java::awt::Point * getMousePosition();
public: // actually package-private
  virtual ::java::awt::Point * getMousePositionHelper(jboolean);
  virtual jboolean mouseOverComponent(::java::awt::Component *, jboolean);
  virtual ::java::awt::Component * findNextFocusComponent(::java::awt::Component *);
private:
  void readObject(::java::io::ObjectInputStream *);
  void writeObject(::java::io::ObjectOutputStream *);
  static const jlong serialVersionUID = -7644114512714619750LL;
public:
  static jfloat TOP_ALIGNMENT;
  static jfloat CENTER_ALIGNMENT;
  static jfloat BOTTOM_ALIGNMENT;
  static jfloat RIGHT_ALIGNMENT;
  static jfloat LEFT_ALIGNMENT;
public: // actually package-private
  static ::java::lang::Object * treeLock;
private:
  static ::java::awt::Dimension * DEFAULT_MAX_SIZE;
public: // actually package-private
  jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) x;
  jint y;
  jint width;
  jint height;
  ::java::awt::Color * foreground;
  ::java::awt::Color * background;
  ::java::awt::Font * font;
  ::java::awt::Font * peerFont;
  ::java::awt::Cursor * cursor;
  ::java::util::Locale * locale;
  jboolean ignoreRepaint;
  jboolean visible;
  jboolean enabled;
  jboolean valid;
  ::java::awt::dnd::DropTarget * dropTarget;
  ::java::util::Vector * popups;
  ::java::lang::String * name;
  jboolean nameExplicitlySet;
  jboolean focusable;
  jint isFocusTraversableOverridden;
  JArray< ::java::util::Set * > * focusTraversalKeys;
  jboolean focusTraversalKeysEnabled;
  ::java::awt::Dimension * minSize;
  jboolean minSizeSet;
  ::java::awt::Dimension * maxSize;
  jboolean maxSizeSet;
  ::java::awt::Dimension * prefSize;
  jboolean prefSizeSet;
  jboolean newEventsOnly;
  jlong eventMask;
  ::java::beans::PropertyChangeSupport * changeSupport;
  jboolean isPacked;
  jint componentSerializedDataVersion;
  ::javax::accessibility::AccessibleContext * accessibleContext;
  ::java::awt::event::ComponentListener * componentListener;
  ::java::awt::event::FocusListener * focusListener;
  ::java::awt::event::KeyListener * keyListener;
  ::java::awt::event::MouseListener * mouseListener;
  ::java::awt::event::MouseMotionListener * mouseMotionListener;
  ::java::awt::event::MouseWheelListener * mouseWheelListener;
  ::java::awt::event::InputMethodListener * inputMethodListener;
  ::java::awt::event::HierarchyListener * hierarchyListener;
  ::java::awt::event::HierarchyBoundsListener * hierarchyBoundsListener;
  ::java::awt::Container * parent;
  ::java::awt::peer::ComponentPeer * peer;
  ::java::awt::ComponentOrientation * componentOrientation;
  ::java::awt::GraphicsConfiguration * graphicsConfig;
  ::java::awt::image::BufferStrategy * bufferStrategy;
  jint numHierarchyListeners;
  jint numHierarchyBoundsListeners;
private:
  ::java::awt::event::FocusEvent * pendingFocusRequest;
  static jboolean incrementalDraw;
  static ::java::lang::Long * redrawRate;
public: // actually package-private
  static jboolean $assertionsDisabled;
public:
  static ::java::lang::Class class$;
};

#endif // __java_awt_Component__