| 1 |
756 |
jeremybenn |
|
| 2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
| 3 |
|
|
|
| 4 |
|
|
#ifndef __gnu_java_awt_peer_gtk_CairoSurface__
|
| 5 |
|
|
#define __gnu_java_awt_peer_gtk_CairoSurface__
|
| 6 |
|
|
|
| 7 |
|
|
#pragma interface
|
| 8 |
|
|
|
| 9 |
|
|
#include <java/awt/image/WritableRaster.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 CairoSurface;
|
| 25 |
|
|
class GtkImage;
|
| 26 |
|
|
}
|
| 27 |
|
|
}
|
| 28 |
|
|
}
|
| 29 |
|
|
}
|
| 30 |
|
|
}
|
| 31 |
|
|
namespace java
|
| 32 |
|
|
{
|
| 33 |
|
|
namespace awt
|
| 34 |
|
|
{
|
| 35 |
|
|
class Graphics2D;
|
| 36 |
|
|
class Point;
|
| 37 |
|
|
class Rectangle;
|
| 38 |
|
|
namespace image
|
| 39 |
|
|
{
|
| 40 |
|
|
class BufferedImage;
|
| 41 |
|
|
class ColorModel;
|
| 42 |
|
|
class Raster;
|
| 43 |
|
|
class SampleModel;
|
| 44 |
|
|
class WritableRaster;
|
| 45 |
|
|
}
|
| 46 |
|
|
}
|
| 47 |
|
|
}
|
| 48 |
|
|
}
|
| 49 |
|
|
|
| 50 |
|
|
class gnu::java::awt::peer::gtk::CairoSurface : public ::java::awt::image::WritableRaster
|
| 51 |
|
|
{
|
| 52 |
|
|
|
| 53 |
|
|
void create(jint, jint, jint, JArray< jint > *);
|
| 54 |
|
|
void destroy(jlong, JArray< jint > *);
|
| 55 |
|
|
public:
|
| 56 |
|
|
virtual void nativeDrawSurface(jlong, jlong, JArray< jdouble > *, jdouble, jint);
|
| 57 |
|
|
public: // actually package-private
|
| 58 |
|
|
virtual void syncNativeToJava(jlong, JArray< jint > *);
|
| 59 |
|
|
virtual void syncJavaToNative(jlong, JArray< jint > *);
|
| 60 |
|
|
virtual jlong getFlippedBuffer(jlong);
|
| 61 |
|
|
public:
|
| 62 |
|
|
CairoSurface(jint, jint);
|
| 63 |
|
|
CairoSurface(jint, jint, jint, jint);
|
| 64 |
|
|
CairoSurface(::java::awt::image::SampleModel *, ::gnu::java::awt::peer::gtk::CairoSurface *, ::java::awt::Rectangle *, ::java::awt::Point *);
|
| 65 |
|
|
public: // actually package-private
|
| 66 |
|
|
CairoSurface(::gnu::java::awt::peer::gtk::GtkImage *);
|
| 67 |
|
|
public:
|
| 68 |
|
|
virtual void dispose();
|
| 69 |
|
|
public: // actually protected
|
| 70 |
|
|
virtual void finalize();
|
| 71 |
|
|
public:
|
| 72 |
|
|
virtual ::gnu::java::awt::peer::gtk::GtkImage * getGtkImage();
|
| 73 |
|
|
virtual JArray< jint > * getData();
|
| 74 |
|
|
static ::java::awt::image::BufferedImage * getBufferedImage(jint, jint);
|
| 75 |
|
|
static ::java::awt::image::BufferedImage * getBufferedImage(::gnu::java::awt::peer::gtk::GtkImage *);
|
| 76 |
|
|
static ::java::awt::image::BufferedImage * getBufferedImage(::gnu::java::awt::peer::gtk::CairoSurface *);
|
| 77 |
|
|
virtual ::java::awt::Graphics2D * getGraphics();
|
| 78 |
|
|
public: // actually package-private
|
| 79 |
|
|
virtual jlong nativeNewCairoContext(jlong);
|
| 80 |
|
|
public:
|
| 81 |
|
|
virtual jlong newCairoContext();
|
| 82 |
|
|
virtual void copyAreaNative(jint, jint, jint, jint, jint, jint, jint);
|
| 83 |
|
|
public: // actually package-private
|
| 84 |
|
|
virtual void copyAreaNative2(jlong, jint, jint, jint, jint, jint, jint, jint);
|
| 85 |
|
|
public: // actually protected
|
| 86 |
|
|
static ::java::awt::image::SampleModel * createCairoSampleModel(jint, jint);
|
| 87 |
|
|
public:
|
| 88 |
|
|
static jboolean isCompatibleColorModel(::java::awt::image::ColorModel *);
|
| 89 |
|
|
static jboolean isCompatibleSampleModel(::java::awt::image::SampleModel *);
|
| 90 |
|
|
virtual ::java::awt::image::Raster * createChild(jint, jint, jint, jint, jint, jint, JArray< jint > *);
|
| 91 |
|
|
virtual ::java::awt::image::WritableRaster * createCompatibleWritableRaster();
|
| 92 |
|
|
virtual ::java::awt::image::WritableRaster * createCompatibleWritableRaster(jint, jint, jint, jint);
|
| 93 |
|
|
virtual ::java::awt::image::Raster * createTranslatedChild(jint, jint);
|
| 94 |
|
|
virtual ::java::awt::image::WritableRaster * createWritableChild(jint, jint, jint, jint, jint, jint, JArray< jint > *);
|
| 95 |
|
|
virtual ::java::awt::image::WritableRaster * createWritableTranslatedChild(jint, jint);
|
| 96 |
|
|
public: // actually package-private
|
| 97 |
|
|
jint __attribute__((aligned(__alignof__( ::java::awt::image::WritableRaster)))) width;
|
| 98 |
|
|
jint height;
|
| 99 |
|
|
jlong surfacePointer;
|
| 100 |
|
|
jboolean sharedBuffer;
|
| 101 |
|
|
static ::java::awt::image::ColorModel * cairoColorModel;
|
| 102 |
|
|
static ::java::awt::image::ColorModel * cairoCM_pre;
|
| 103 |
|
|
static ::java::awt::image::ColorModel * cairoCM_opaque;
|
| 104 |
|
|
public:
|
| 105 |
|
|
static ::java::lang::Class class$;
|
| 106 |
|
|
};
|
| 107 |
|
|
|
| 108 |
|
|
#endif // __gnu_java_awt_peer_gtk_CairoSurface__
|