1 |
756 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __gnu_java_awt_peer_gtk_ComponentGraphics__
|
5 |
|
|
#define __gnu_java_awt_peer_gtk_ComponentGraphics__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <gnu/java/awt/peer/gtk/CairoGraphics2D.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace gnu
|
15 |
|
|
{
|
16 |
|
|
namespace classpath
|
17 |
|
|
{
|
18 |
|
|
class Pointer;
|
19 |
|
|
}
|
20 |
|
|
namespace java
|
21 |
|
|
{
|
22 |
|
|
namespace awt
|
23 |
|
|
{
|
24 |
|
|
namespace peer
|
25 |
|
|
{
|
26 |
|
|
namespace gtk
|
27 |
|
|
{
|
28 |
|
|
class CairoSurface;
|
29 |
|
|
class ComponentGraphics;
|
30 |
|
|
class GtkComponentPeer;
|
31 |
|
|
class GtkImage;
|
32 |
|
|
}
|
33 |
|
|
}
|
34 |
|
|
}
|
35 |
|
|
}
|
36 |
|
|
}
|
37 |
|
|
namespace java
|
38 |
|
|
{
|
39 |
|
|
namespace awt
|
40 |
|
|
{
|
41 |
|
|
class Color;
|
42 |
|
|
class Graphics;
|
43 |
|
|
class Graphics2D;
|
44 |
|
|
class GraphicsConfiguration;
|
45 |
|
|
class Image;
|
46 |
|
|
class Shape;
|
47 |
|
|
namespace font
|
48 |
|
|
{
|
49 |
|
|
class GlyphVector;
|
50 |
|
|
}
|
51 |
|
|
namespace geom
|
52 |
|
|
{
|
53 |
|
|
class AffineTransform;
|
54 |
|
|
class Rectangle2D;
|
55 |
|
|
}
|
56 |
|
|
namespace image
|
57 |
|
|
{
|
58 |
|
|
class BufferedImage;
|
59 |
|
|
class ColorModel;
|
60 |
|
|
class ImageObserver;
|
61 |
|
|
class RenderedImage;
|
62 |
|
|
}
|
63 |
|
|
}
|
64 |
|
|
}
|
65 |
|
|
}
|
66 |
|
|
|
67 |
|
|
class gnu::java::awt::peer::gtk::ComponentGraphics : public ::gnu::java::awt::peer::gtk::CairoGraphics2D
|
68 |
|
|
{
|
69 |
|
|
|
70 |
|
|
public: // actually package-private
|
71 |
|
|
ComponentGraphics();
|
72 |
|
|
private:
|
73 |
|
|
ComponentGraphics(::gnu::java::awt::peer::gtk::GtkComponentPeer *);
|
74 |
|
|
ComponentGraphics(::gnu::java::awt::peer::gtk::ComponentGraphics *);
|
75 |
|
|
jlong initState(::gnu::java::awt::peer::gtk::GtkComponentPeer *);
|
76 |
|
|
void lock();
|
77 |
|
|
void unlock();
|
78 |
|
|
public: // actually protected
|
79 |
|
|
virtual jlong initFromVolatile(jlong);
|
80 |
|
|
private:
|
81 |
|
|
void start_gdk_drawing();
|
82 |
|
|
void end_gdk_drawing();
|
83 |
|
|
public:
|
84 |
|
|
static jboolean hasXRender();
|
85 |
|
|
private:
|
86 |
|
|
static ::gnu::classpath::Pointer * nativeGrab(::gnu::java::awt::peer::gtk::GtkComponentPeer *);
|
87 |
|
|
void copyAreaNative(::gnu::java::awt::peer::gtk::GtkComponentPeer *, jint, jint, jint, jint, jint, jint);
|
88 |
|
|
void drawVolatile(::gnu::java::awt::peer::gtk::GtkComponentPeer *, jlong, jint, jint, jint, jint, jint, jint, jint, jint);
|
89 |
|
|
public:
|
90 |
|
|
static ::gnu::java::awt::peer::gtk::GtkImage * grab(::gnu::java::awt::peer::gtk::GtkComponentPeer *);
|
91 |
|
|
static ::java::awt::Graphics2D * getComponentGraphics(::gnu::java::awt::peer::gtk::GtkComponentPeer *);
|
92 |
|
|
virtual ::java::awt::GraphicsConfiguration * getDeviceConfiguration();
|
93 |
|
|
virtual ::java::awt::Graphics * create();
|
94 |
|
|
public: // actually protected
|
95 |
|
|
virtual ::java::awt::geom::Rectangle2D * getRealBounds();
|
96 |
|
|
public:
|
97 |
|
|
virtual void copyAreaImpl(jint, jint, jint, jint, jint, jint);
|
98 |
|
|
virtual void draw(::java::awt::Shape *);
|
99 |
|
|
virtual void fill(::java::awt::Shape *);
|
100 |
|
|
virtual void drawRenderedImage(::java::awt::image::RenderedImage *, ::java::awt::geom::AffineTransform *);
|
101 |
|
|
public: // actually protected
|
102 |
|
|
virtual jboolean drawImage(::java::awt::Image *, ::java::awt::geom::AffineTransform *, ::java::awt::Color *, ::java::awt::image::ImageObserver *);
|
103 |
|
|
public:
|
104 |
|
|
virtual void drawGlyphVector(::java::awt::font::GlyphVector *, jfloat, jfloat);
|
105 |
|
|
virtual jboolean drawImage(::java::awt::Image *, jint, jint, ::java::awt::image::ImageObserver *);
|
106 |
|
|
virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, ::java::awt::image::ImageObserver *);
|
107 |
|
|
private:
|
108 |
|
|
jboolean drawComposite(::java::awt::geom::Rectangle2D *, ::java::awt::image::ImageObserver *);
|
109 |
|
|
void createBuffer();
|
110 |
|
|
public: // actually protected
|
111 |
|
|
virtual ::java::awt::image::ColorModel * getNativeCM();
|
112 |
|
|
virtual jlong init(jlong);
|
113 |
|
|
virtual void drawPixels(jlong, JArray< jint > *, jint, jint, jint, JArray< jdouble > *, jdouble, jint);
|
114 |
|
|
virtual void setGradient(jlong, jdouble, jdouble, jdouble, jdouble, jint, jint, jint, jint, jint, jint, jint, jint, jboolean);
|
115 |
|
|
virtual void setPaintPixels(jlong, JArray< jint > *, jint, jint, jint, jboolean, jint, jint);
|
116 |
|
|
virtual void cairoSetMatrix(jlong, JArray< jdouble > *);
|
117 |
|
|
virtual void cairoScale(jlong, jdouble, jdouble);
|
118 |
|
|
virtual void cairoSetOperator(jlong, jint);
|
119 |
|
|
virtual void cairoSetRGBAColor(jlong, jdouble, jdouble, jdouble, jdouble);
|
120 |
|
|
virtual void cairoSetFillRule(jlong, jint);
|
121 |
|
|
virtual void cairoSetLine(jlong, jdouble, jint, jint, jdouble);
|
122 |
|
|
virtual void cairoSetDash(jlong, JArray< jdouble > *, jint, jdouble);
|
123 |
|
|
virtual void cairoRectangle(jlong, jdouble, jdouble, jdouble, jdouble);
|
124 |
|
|
virtual void cairoArc(jlong, jdouble, jdouble, jdouble, jdouble, jdouble);
|
125 |
|
|
virtual void cairoSave(jlong);
|
126 |
|
|
virtual void cairoRestore(jlong);
|
127 |
|
|
virtual void cairoNewPath(jlong);
|
128 |
|
|
virtual void cairoClosePath(jlong);
|
129 |
|
|
virtual void cairoMoveTo(jlong, jdouble, jdouble);
|
130 |
|
|
virtual void cairoLineTo(jlong, jdouble, jdouble);
|
131 |
|
|
virtual void cairoCurveTo(jlong, jdouble, jdouble, jdouble, jdouble, jdouble, jdouble);
|
132 |
|
|
virtual void cairoStroke(jlong);
|
133 |
|
|
virtual void cairoFill(jlong, jdouble);
|
134 |
|
|
virtual void cairoClip(jlong);
|
135 |
|
|
virtual void cairoResetClip(jlong);
|
136 |
|
|
virtual void cairoSetAntialias(jlong, jboolean);
|
137 |
|
|
virtual void drawCairoSurface(::gnu::java::awt::peer::gtk::CairoSurface *, ::java::awt::geom::AffineTransform *, jdouble, jint);
|
138 |
|
|
private:
|
139 |
|
|
static jboolean hasXRenderExtension;
|
140 |
|
|
::gnu::java::awt::peer::gtk::GtkComponentPeer * __attribute__((aligned(__alignof__( ::gnu::java::awt::peer::gtk::CairoGraphics2D)))) component;
|
141 |
|
|
public: // actually protected
|
142 |
|
|
jlong cairo_t;
|
143 |
|
|
private:
|
144 |
|
|
::java::awt::image::BufferedImage * buffer;
|
145 |
|
|
::java::awt::image::BufferedImage * componentBuffer;
|
146 |
|
|
static ::java::lang::ThreadLocal * hasLock;
|
147 |
|
|
static ::java::lang::Integer * ONE;
|
148 |
|
|
public:
|
149 |
|
|
static ::java::lang::Class class$;
|
150 |
|
|
};
|
151 |
|
|
|
152 |
|
|
#endif // __gnu_java_awt_peer_gtk_ComponentGraphics__
|