summaryrefslogtreecommitdiff
path: root/libjava/gnu/java/awt/peer/gtk/CairoSurface.h
blob: 7e34ee923b4aa0a69c7f14dd1354bf335924dba5 (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
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_java_awt_peer_gtk_CairoSurface__
#define __gnu_java_awt_peer_gtk_CairoSurface__

#pragma interface

#include <java/awt/image/WritableRaster.h>
#include <gcj/array.h>

extern "Java"
{
  namespace gnu
  {
    namespace java
    {
      namespace awt
      {
        namespace peer
        {
          namespace gtk
          {
              class CairoSurface;
              class GtkImage;
          }
        }
      }
    }
  }
  namespace java
  {
    namespace awt
    {
        class Graphics2D;
        class Point;
        class Rectangle;
      namespace image
      {
          class BufferedImage;
          class ColorModel;
          class Raster;
          class SampleModel;
          class WritableRaster;
      }
    }
  }
}

class gnu::java::awt::peer::gtk::CairoSurface : public ::java::awt::image::WritableRaster
{

  void create(jint, jint, jint, JArray< jint > *);
  void destroy(jlong, JArray< jint > *);
public:
  virtual void nativeDrawSurface(jlong, jlong, JArray< jdouble > *, jdouble, jint);
public: // actually package-private
  virtual void syncNativeToJava(jlong, JArray< jint > *);
  virtual void syncJavaToNative(jlong, JArray< jint > *);
  virtual jlong getFlippedBuffer(jlong);
public:
  CairoSurface(jint, jint);
  CairoSurface(jint, jint, jint, jint);
  CairoSurface(::java::awt::image::SampleModel *, ::gnu::java::awt::peer::gtk::CairoSurface *, ::java::awt::Rectangle *, ::java::awt::Point *);
public: // actually package-private
  CairoSurface(::gnu::java::awt::peer::gtk::GtkImage *);
public:
  virtual void dispose();
public: // actually protected
  virtual void finalize();
public:
  virtual ::gnu::java::awt::peer::gtk::GtkImage * getGtkImage();
  virtual JArray< jint > * getData();
  static ::java::awt::image::BufferedImage * getBufferedImage(jint, jint);
  static ::java::awt::image::BufferedImage * getBufferedImage(::gnu::java::awt::peer::gtk::GtkImage *);
  static ::java::awt::image::BufferedImage * getBufferedImage(::gnu::java::awt::peer::gtk::CairoSurface *);
  virtual ::java::awt::Graphics2D * getGraphics();
public: // actually package-private
  virtual jlong nativeNewCairoContext(jlong);
public:
  virtual jlong newCairoContext();
  virtual void copyAreaNative(jint, jint, jint, jint, jint, jint, jint);
public: // actually package-private
  virtual void copyAreaNative2(jlong, jint, jint, jint, jint, jint, jint, jint);
public: // actually protected
  static ::java::awt::image::SampleModel * createCairoSampleModel(jint, jint);
public:
  static jboolean isCompatibleColorModel(::java::awt::image::ColorModel *);
  static jboolean isCompatibleSampleModel(::java::awt::image::SampleModel *);
  virtual ::java::awt::image::Raster * createChild(jint, jint, jint, jint, jint, jint, JArray< jint > *);
  virtual ::java::awt::image::WritableRaster * createCompatibleWritableRaster();
  virtual ::java::awt::image::WritableRaster * createCompatibleWritableRaster(jint, jint, jint, jint);
  virtual ::java::awt::image::Raster * createTranslatedChild(jint, jint);
  virtual ::java::awt::image::WritableRaster * createWritableChild(jint, jint, jint, jint, jint, jint, JArray< jint > *);
  virtual ::java::awt::image::WritableRaster * createWritableTranslatedChild(jint, jint);
public: // actually package-private
  jint __attribute__((aligned(__alignof__( ::java::awt::image::WritableRaster)))) width;
  jint height;
  jlong surfacePointer;
  jboolean sharedBuffer;
  static ::java::awt::image::ColorModel * cairoColorModel;
  static ::java::awt::image::ColorModel * cairoCM_pre;
  static ::java::awt::image::ColorModel * cairoCM_opaque;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_java_awt_peer_gtk_CairoSurface__