1 |
756 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __gnu_java_awt_peer_qt_QtComponentPeer__
|
5 |
|
|
#define __gnu_java_awt_peer_qt_QtComponentPeer__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <gnu/java/awt/peer/qt/NativeWrapper.h>
|
10 |
|
|
extern "Java"
|
11 |
|
|
{
|
12 |
|
|
namespace gnu
|
13 |
|
|
{
|
14 |
|
|
namespace java
|
15 |
|
|
{
|
16 |
|
|
namespace awt
|
17 |
|
|
{
|
18 |
|
|
namespace peer
|
19 |
|
|
{
|
20 |
|
|
namespace qt
|
21 |
|
|
{
|
22 |
|
|
class QtComponentPeer;
|
23 |
|
|
class QtContainerPeer;
|
24 |
|
|
class QtFontPeer;
|
25 |
|
|
class QtImage;
|
26 |
|
|
class QtToolkit;
|
27 |
|
|
}
|
28 |
|
|
}
|
29 |
|
|
}
|
30 |
|
|
}
|
31 |
|
|
}
|
32 |
|
|
namespace java
|
33 |
|
|
{
|
34 |
|
|
namespace awt
|
35 |
|
|
{
|
36 |
|
|
class AWTEvent;
|
37 |
|
|
class BufferCapabilities;
|
38 |
|
|
class BufferCapabilities$FlipContents;
|
39 |
|
|
class Color;
|
40 |
|
|
class Component;
|
41 |
|
|
class Cursor;
|
42 |
|
|
class Dimension;
|
43 |
|
|
class Font;
|
44 |
|
|
class FontMetrics;
|
45 |
|
|
class Graphics;
|
46 |
|
|
class GraphicsConfiguration;
|
47 |
|
|
class Image;
|
48 |
|
|
class Point;
|
49 |
|
|
class Rectangle;
|
50 |
|
|
class Toolkit;
|
51 |
|
|
namespace event
|
52 |
|
|
{
|
53 |
|
|
class PaintEvent;
|
54 |
|
|
}
|
55 |
|
|
namespace image
|
56 |
|
|
{
|
57 |
|
|
class ColorModel;
|
58 |
|
|
class ImageObserver;
|
59 |
|
|
class ImageProducer;
|
60 |
|
|
class VolatileImage;
|
61 |
|
|
}
|
62 |
|
|
namespace peer
|
63 |
|
|
{
|
64 |
|
|
class ContainerPeer;
|
65 |
|
|
}
|
66 |
|
|
}
|
67 |
|
|
}
|
68 |
|
|
namespace sun
|
69 |
|
|
{
|
70 |
|
|
namespace awt
|
71 |
|
|
{
|
72 |
|
|
class CausedFocusEvent$Cause;
|
73 |
|
|
}
|
74 |
|
|
}
|
75 |
|
|
}
|
76 |
|
|
|
77 |
|
|
class gnu::java::awt::peer::qt::QtComponentPeer : public ::gnu::java::awt::peer::qt::NativeWrapper
|
78 |
|
|
{
|
79 |
|
|
|
80 |
|
|
public: // actually package-private
|
81 |
|
|
QtComponentPeer(::gnu::java::awt::peer::qt::QtToolkit *, ::java::awt::Component *);
|
82 |
|
|
public: // actually protected
|
83 |
|
|
virtual void callInit();
|
84 |
|
|
virtual void init();
|
85 |
|
|
virtual void setup();
|
86 |
|
|
public: // actually package-private
|
87 |
|
|
virtual void QtUpdate();
|
88 |
|
|
virtual void QtUpdateArea(jint, jint, jint, jint);
|
89 |
|
|
private:
|
90 |
|
|
void disposeNative();
|
91 |
|
|
void setGround(jint, jint, jint, jboolean);
|
92 |
|
|
void setBoundsNative(jint, jint, jint, jint);
|
93 |
|
|
void setCursor(jint);
|
94 |
|
|
::java::awt::Color * getNativeBackground();
|
95 |
|
|
void setFontNative(::gnu::java::awt::peer::qt::QtFontPeer *);
|
96 |
|
|
jint whichScreen();
|
97 |
|
|
void reparentNative(::gnu::java::awt::peer::qt::QtContainerPeer *);
|
98 |
|
|
void getLocationOnScreenNative(::java::awt::Point *);
|
99 |
|
|
jboolean drawableComponent();
|
100 |
|
|
public: // actually package-private
|
101 |
|
|
virtual void updateBounds();
|
102 |
|
|
virtual void updateBackBuffer(jint, jint);
|
103 |
|
|
public: // actually protected
|
104 |
|
|
virtual void closeEvent();
|
105 |
|
|
virtual void enterEvent(jint, jint, jint, jint);
|
106 |
|
|
virtual void focusInEvent();
|
107 |
|
|
virtual void focusOutEvent();
|
108 |
|
|
virtual void keyPressEvent(jint, jint, jint, jint);
|
109 |
|
|
virtual void keyReleaseEvent(jint, jint, jint, jint);
|
110 |
|
|
virtual void leaveEvent(jint, jint, jint, jint);
|
111 |
|
|
virtual void mouseDoubleClickEvent(jint, jint, jint, jint);
|
112 |
|
|
virtual void mouseMoveEvent(jint, jint, jint, jint);
|
113 |
|
|
virtual void mousePressEvent(jint, jint, jint, jint);
|
114 |
|
|
virtual void mouseReleaseEvent(jint, jint, jint, jint);
|
115 |
|
|
virtual void moveEvent(jint, jint, jint, jint);
|
116 |
|
|
virtual void resizeEvent(jint, jint, jint, jint);
|
117 |
|
|
virtual void showEvent();
|
118 |
|
|
virtual void hideEvent();
|
119 |
|
|
public:
|
120 |
|
|
virtual void setEventMask(jlong);
|
121 |
|
|
virtual jboolean canDetermineObscurity();
|
122 |
|
|
virtual jint checkImage(::java::awt::Image *, jint, jint, ::java::awt::image::ImageObserver *);
|
123 |
|
|
virtual void createBuffers(jint, ::java::awt::BufferCapabilities *);
|
124 |
|
|
virtual ::java::awt::Image * createImage(::java::awt::image::ImageProducer *);
|
125 |
|
|
virtual ::java::awt::Image * createImage(jint, jint);
|
126 |
|
|
virtual void coalescePaintEvent(::java::awt::event::PaintEvent *);
|
127 |
|
|
virtual ::java::awt::image::VolatileImage * createVolatileImage(jint, jint);
|
128 |
|
|
virtual void destroyBuffers();
|
129 |
|
|
virtual void disable();
|
130 |
|
|
virtual void dispose();
|
131 |
|
|
virtual void enable();
|
132 |
|
|
virtual void finalize();
|
133 |
|
|
virtual void flip(::java::awt::BufferCapabilities$FlipContents *);
|
134 |
|
|
virtual ::java::awt::Image * getBackBuffer();
|
135 |
|
|
virtual ::java::awt::image::ColorModel * getColorModel();
|
136 |
|
|
virtual ::java::awt::FontMetrics * getFontMetrics(::java::awt::Font *);
|
137 |
|
|
virtual ::java::awt::Graphics * getGraphics();
|
138 |
|
|
virtual ::java::awt::GraphicsConfiguration * getGraphicsConfiguration();
|
139 |
|
|
virtual ::java::awt::Point * getLocationOnScreen();
|
140 |
|
|
private:
|
141 |
|
|
void getSizeNative(::java::awt::Dimension *, jboolean);
|
142 |
|
|
::java::awt::Dimension * getSize(jboolean);
|
143 |
|
|
public:
|
144 |
|
|
virtual ::java::awt::Dimension * getMinimumSize();
|
145 |
|
|
virtual ::java::awt::Dimension * getPreferredSize();
|
146 |
|
|
virtual ::java::awt::Toolkit * getToolkit();
|
147 |
|
|
virtual jboolean handlesWheelScrolling();
|
148 |
|
|
virtual void hide();
|
149 |
|
|
virtual jboolean isFocusable();
|
150 |
|
|
virtual jboolean isFocusTraversable();
|
151 |
|
|
virtual jboolean isObscured();
|
152 |
|
|
virtual ::java::awt::Dimension * minimumSize();
|
153 |
|
|
virtual ::java::awt::Dimension * preferredSize();
|
154 |
|
|
virtual void requestFocus();
|
155 |
|
|
virtual jboolean requestFocus(::java::awt::Component *, jboolean, jboolean, jlong);
|
156 |
|
|
virtual void reshape(jint, jint, jint, jint);
|
157 |
|
|
virtual void setBackground(::java::awt::Color *);
|
158 |
|
|
virtual void setBounds(jint, jint, jint, jint);
|
159 |
|
|
virtual void setCursor(::java::awt::Cursor *);
|
160 |
|
|
virtual void setEnabled(jboolean);
|
161 |
|
|
virtual void setFont(::java::awt::Font *);
|
162 |
|
|
virtual void setForeground(::java::awt::Color *);
|
163 |
|
|
virtual void setVisible(jboolean);
|
164 |
|
|
virtual void show();
|
165 |
|
|
virtual void handleEvent(::java::awt::AWTEvent *);
|
166 |
|
|
virtual void paint(::java::awt::Graphics *);
|
167 |
|
|
virtual void paintBackBuffer();
|
168 |
|
|
virtual void paintBackBuffer(jint, jint, jint, jint);
|
169 |
|
|
virtual jboolean prepareImage(::java::awt::Image *, jint, jint, ::java::awt::image::ImageObserver *);
|
170 |
|
|
virtual void print(::java::awt::Graphics *);
|
171 |
|
|
virtual void repaint(jlong, jint, jint, jint, jint);
|
172 |
|
|
virtual void updateCursorImmediately();
|
173 |
|
|
virtual ::java::awt::Rectangle * getBounds();
|
174 |
|
|
virtual void reparent(::java::awt::peer::ContainerPeer *);
|
175 |
|
|
virtual void setBounds(jint, jint, jint, jint, jint);
|
176 |
|
|
virtual jboolean isReparentSupported();
|
177 |
|
|
virtual void layout();
|
178 |
|
|
virtual jboolean requestFocus(::java::awt::Component *, jboolean, jboolean, jlong, ::sun::awt::CausedFocusEvent$Cause *);
|
179 |
|
|
public: // actually protected
|
180 |
|
|
static const jint POPUP_TRIGGER = 3;
|
181 |
|
|
::gnu::java::awt::peer::qt::QtToolkit * __attribute__((aligned(__alignof__( ::gnu::java::awt::peer::qt::NativeWrapper)))) toolkit;
|
182 |
|
|
public: // actually package-private
|
183 |
|
|
::java::awt::Component * owner;
|
184 |
|
|
private:
|
185 |
|
|
jlong eventMask;
|
186 |
|
|
jboolean hasMotionListeners;
|
187 |
|
|
public: // actually protected
|
188 |
|
|
::gnu::java::awt::peer::qt::QtImage * backBuffer;
|
189 |
|
|
jlong qtApp;
|
190 |
|
|
private:
|
191 |
|
|
jboolean settingUp;
|
192 |
|
|
jboolean ignoreResize;
|
193 |
|
|
public:
|
194 |
|
|
static ::java::lang::Class class$;
|
195 |
|
|
};
|
196 |
|
|
|
197 |
|
|
#endif // __gnu_java_awt_peer_qt_QtComponentPeer__
|