1 |
756 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __gnu_java_awt_peer_gtk_GtkComponentPeer__
|
5 |
|
|
#define __gnu_java_awt_peer_gtk_GtkComponentPeer__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <gnu/java/awt/peer/gtk/GtkGenericPeer.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace gnu
|
15 |
|
|
{
|
16 |
|
|
namespace java
|
17 |
|
|
{
|
18 |
|
|
namespace awt
|
19 |
|
|
{
|
20 |
|
|
namespace peer
|
21 |
|
|
{
|
22 |
|
|
namespace gtk
|
23 |
|
|
{
|
24 |
|
|
class GtkComponentPeer;
|
25 |
|
|
class GtkImage;
|
26 |
|
|
}
|
27 |
|
|
}
|
28 |
|
|
}
|
29 |
|
|
}
|
30 |
|
|
}
|
31 |
|
|
namespace java
|
32 |
|
|
{
|
33 |
|
|
namespace awt
|
34 |
|
|
{
|
35 |
|
|
class AWTEvent;
|
36 |
|
|
class BufferCapabilities;
|
37 |
|
|
class BufferCapabilities$FlipContents;
|
38 |
|
|
class Color;
|
39 |
|
|
class Component;
|
40 |
|
|
class Cursor;
|
41 |
|
|
class Dimension;
|
42 |
|
|
class Font;
|
43 |
|
|
class FontMetrics;
|
44 |
|
|
class Graphics;
|
45 |
|
|
class GraphicsConfiguration;
|
46 |
|
|
class Image;
|
47 |
|
|
class Insets;
|
48 |
|
|
class Point;
|
49 |
|
|
class Rectangle;
|
50 |
|
|
class Toolkit;
|
51 |
|
|
class Window;
|
52 |
|
|
namespace event
|
53 |
|
|
{
|
54 |
|
|
class PaintEvent;
|
55 |
|
|
}
|
56 |
|
|
namespace image
|
57 |
|
|
{
|
58 |
|
|
class ColorModel;
|
59 |
|
|
class ImageObserver;
|
60 |
|
|
class ImageProducer;
|
61 |
|
|
class VolatileImage;
|
62 |
|
|
}
|
63 |
|
|
namespace peer
|
64 |
|
|
{
|
65 |
|
|
class ComponentPeer;
|
66 |
|
|
class ContainerPeer;
|
67 |
|
|
}
|
68 |
|
|
}
|
69 |
|
|
}
|
70 |
|
|
namespace sun
|
71 |
|
|
{
|
72 |
|
|
namespace awt
|
73 |
|
|
{
|
74 |
|
|
class CausedFocusEvent$Cause;
|
75 |
|
|
}
|
76 |
|
|
}
|
77 |
|
|
}
|
78 |
|
|
|
79 |
|
|
class gnu::java::awt::peer::gtk::GtkComponentPeer : public ::gnu::java::awt::peer::gtk::GtkGenericPeer
|
80 |
|
|
{
|
81 |
|
|
|
82 |
|
|
public: // actually package-private
|
83 |
|
|
virtual jboolean isEnabled();
|
84 |
|
|
static jboolean modalHasGrab();
|
85 |
|
|
virtual JArray< jint > * gtkWidgetGetForeground();
|
86 |
|
|
virtual JArray< jint > * gtkWidgetGetBackground();
|
87 |
|
|
virtual void gtkWidgetGetDimensions(JArray< jint > *);
|
88 |
|
|
virtual void gtkWidgetGetPreferredDimensions(JArray< jint > *);
|
89 |
|
|
virtual void gtkWindowGetLocationOnScreen(JArray< jint > *);
|
90 |
|
|
virtual void gtkWindowGetLocationOnScreenUnlocked(JArray< jint > *);
|
91 |
|
|
virtual void gtkWidgetGetLocationOnScreen(JArray< jint > *);
|
92 |
|
|
virtual void gtkWidgetGetLocationOnScreenUnlocked(JArray< jint > *);
|
93 |
|
|
virtual void gtkWidgetSetCursor(jint, ::gnu::java::awt::peer::gtk::GtkImage *, jint, jint);
|
94 |
|
|
virtual void gtkWidgetSetCursorUnlocked(jint, ::gnu::java::awt::peer::gtk::GtkImage *, jint, jint);
|
95 |
|
|
virtual void gtkWidgetSetBackground(jint, jint, jint);
|
96 |
|
|
virtual void gtkWidgetSetForeground(jint, jint, jint);
|
97 |
|
|
virtual void gtkWidgetSetSensitive(jboolean);
|
98 |
|
|
virtual void gtkWidgetSetParent(::java::awt::peer::ComponentPeer *);
|
99 |
|
|
virtual void gtkWidgetRequestFocus();
|
100 |
|
|
virtual void gtkWidgetDispatchKeyEvent(jint, jlong, jint, jint, jint);
|
101 |
|
|
virtual jboolean gtkWidgetHasFocus();
|
102 |
|
|
virtual jboolean gtkWidgetCanFocus();
|
103 |
|
|
virtual void realize();
|
104 |
|
|
virtual void setNativeEventMask();
|
105 |
|
|
virtual void create();
|
106 |
|
|
virtual void connectSignals();
|
107 |
|
|
public: // actually protected
|
108 |
|
|
GtkComponentPeer(::java::awt::Component *);
|
109 |
|
|
public: // actually package-private
|
110 |
|
|
virtual void setParentAndBounds();
|
111 |
|
|
virtual void setParent();
|
112 |
|
|
virtual void setComponentBounds();
|
113 |
|
|
virtual void setVisibleAndEnabled();
|
114 |
|
|
public:
|
115 |
|
|
virtual jint checkImage(::java::awt::Image *, jint, jint, ::java::awt::image::ImageObserver *);
|
116 |
|
|
virtual ::java::awt::Image * createImage(::java::awt::image::ImageProducer *);
|
117 |
|
|
virtual ::java::awt::Image * createImage(jint, jint);
|
118 |
|
|
virtual void disable();
|
119 |
|
|
virtual void enable();
|
120 |
|
|
virtual ::java::awt::image::ColorModel * getColorModel();
|
121 |
|
|
virtual ::java::awt::FontMetrics * getFontMetrics(::java::awt::Font *);
|
122 |
|
|
virtual ::java::awt::Graphics * getGraphics();
|
123 |
|
|
virtual ::java::awt::Point * getLocationOnScreen();
|
124 |
|
|
virtual ::java::awt::Dimension * getMinimumSize();
|
125 |
|
|
virtual ::java::awt::Dimension * getPreferredSize();
|
126 |
|
|
virtual ::java::awt::Toolkit * getToolkit();
|
127 |
|
|
virtual void handleEvent(::java::awt::AWTEvent *);
|
128 |
|
|
public: // actually protected
|
129 |
|
|
virtual void paintComponent(::java::awt::event::PaintEvent *);
|
130 |
|
|
virtual void updateComponent(::java::awt::event::PaintEvent *);
|
131 |
|
|
public:
|
132 |
|
|
virtual jboolean isFocusTraversable();
|
133 |
|
|
virtual ::java::awt::Dimension * minimumSize();
|
134 |
|
|
virtual void paint(::java::awt::Graphics *);
|
135 |
|
|
virtual ::java::awt::Dimension * preferredSize();
|
136 |
|
|
virtual jboolean prepareImage(::java::awt::Image *, jint, jint, ::java::awt::image::ImageObserver *);
|
137 |
|
|
virtual void print(::java::awt::Graphics *);
|
138 |
|
|
virtual void repaint(jlong, jint, jint, jint, jint);
|
139 |
|
|
virtual void requestFocus();
|
140 |
|
|
virtual void reshape(jint, jint, jint, jint);
|
141 |
|
|
virtual void setBackground(::java::awt::Color *);
|
142 |
|
|
public: // actually package-private
|
143 |
|
|
virtual void setNativeBounds(jint, jint, jint, jint);
|
144 |
|
|
public:
|
145 |
|
|
virtual void setBounds(jint, jint, jint, jint);
|
146 |
|
|
public: // actually package-private
|
147 |
|
|
virtual void setCursor();
|
148 |
|
|
public:
|
149 |
|
|
virtual void setCursor(::java::awt::Cursor *);
|
150 |
|
|
virtual void setEnabled(jboolean);
|
151 |
|
|
virtual void setFont(::java::awt::Font *);
|
152 |
|
|
virtual void setForeground(::java::awt::Color *);
|
153 |
|
|
virtual ::java::awt::Color * getForeground();
|
154 |
|
|
virtual ::java::awt::Color * getBackground();
|
155 |
|
|
virtual void setVisibleNative(jboolean);
|
156 |
|
|
virtual void setVisibleNativeUnlocked(jboolean);
|
157 |
|
|
virtual void setVisible(jboolean);
|
158 |
|
|
virtual void hide();
|
159 |
|
|
virtual void show();
|
160 |
|
|
public: // actually protected
|
161 |
|
|
virtual void postMouseEvent(jint, jlong, jint, jint, jint, jint, jboolean);
|
162 |
|
|
virtual void postMouseWheelEvent(jint, jlong, jint, jint, jint, jint, jboolean, jint, jint, jint);
|
163 |
|
|
virtual void postExposeEvent(jint, jint, jint, jint);
|
164 |
|
|
virtual void postKeyEvent(jint, jlong, jint, jint, jchar, jint);
|
165 |
|
|
virtual void postFocusEvent(jint, jboolean);
|
166 |
|
|
virtual void postItemEvent(::java::lang::Object *, jint);
|
167 |
|
|
virtual void postTextEvent();
|
168 |
|
|
public:
|
169 |
|
|
virtual ::java::awt::GraphicsConfiguration * getGraphicsConfiguration();
|
170 |
|
|
virtual void setEventMask(jlong);
|
171 |
|
|
virtual jboolean isFocusable();
|
172 |
|
|
virtual jboolean requestFocus(::java::awt::Component *, jboolean, jboolean, jlong);
|
173 |
|
|
private:
|
174 |
|
|
::java::awt::Window * getWindowFor(::java::awt::Component *);
|
175 |
|
|
public: // actually protected
|
176 |
|
|
virtual jboolean isLightweightDescendant(::java::awt::Component *);
|
177 |
|
|
public:
|
178 |
|
|
virtual jboolean isObscured();
|
179 |
|
|
virtual jboolean canDetermineObscurity();
|
180 |
|
|
virtual void coalescePaintEvent(::java::awt::event::PaintEvent *);
|
181 |
|
|
virtual void updateCursorImmediately();
|
182 |
|
|
virtual jboolean handlesWheelScrolling();
|
183 |
|
|
virtual ::java::awt::image::VolatileImage * createVolatileImage(jint, jint);
|
184 |
|
|
virtual void createBuffers(jint, ::java::awt::BufferCapabilities *);
|
185 |
|
|
virtual ::java::awt::Image * getBackBuffer();
|
186 |
|
|
virtual void flip(::java::awt::BufferCapabilities$FlipContents *);
|
187 |
|
|
virtual void destroyBuffers();
|
188 |
|
|
virtual ::java::lang::String * toString();
|
189 |
|
|
virtual ::java::awt::Rectangle * getBounds();
|
190 |
|
|
virtual void reparent(::java::awt::peer::ContainerPeer *);
|
191 |
|
|
virtual void setBounds(jint, jint, jint, jint, jint);
|
192 |
|
|
virtual jboolean isReparentSupported();
|
193 |
|
|
virtual void layout();
|
194 |
|
|
virtual jboolean requestFocus(::java::awt::Component *, jboolean, jboolean, jlong, ::sun::awt::CausedFocusEvent$Cause *);
|
195 |
|
|
public: // actually package-private
|
196 |
|
|
::java::awt::image::VolatileImage * __attribute__((aligned(__alignof__( ::gnu::java::awt::peer::gtk::GtkGenericPeer)))) backBuffer;
|
197 |
|
|
::java::awt::BufferCapabilities * caps;
|
198 |
|
|
::java::awt::Component * awtComponent;
|
199 |
|
|
::java::awt::Insets * insets;
|
200 |
|
|
private:
|
201 |
|
|
::java::awt::Rectangle * currentPaintArea;
|
202 |
|
|
public: // actually package-private
|
203 |
|
|
static jboolean $assertionsDisabled;
|
204 |
|
|
public:
|
205 |
|
|
static ::java::lang::Class class$;
|
206 |
|
|
};
|
207 |
|
|
|
208 |
|
|
#endif // __gnu_java_awt_peer_gtk_GtkComponentPeer__
|