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

#ifndef __gnu_java_awt_peer_gtk_BufferedImageGraphics__
#define __gnu_java_awt_peer_gtk_BufferedImageGraphics__

#pragma interface

#include <gnu/java/awt/peer/gtk/CairoGraphics2D.h>
extern "Java"
{
  namespace gnu
  {
    namespace java
    {
      namespace awt
      {
        namespace peer
        {
          namespace gtk
          {
              class BufferedImageGraphics;
              class CairoSurface;
          }
        }
      }
    }
  }
  namespace java
  {
    namespace awt
    {
        class Color;
        class Graphics;
        class GraphicsConfiguration;
        class Image;
        class Shape;
      namespace font
      {
          class GlyphVector;
      }
      namespace geom
      {
          class AffineTransform;
          class Rectangle2D;
      }
      namespace image
      {
          class BufferedImage;
          class ColorModel;
          class ImageObserver;
          class RenderedImage;
      }
    }
  }
}

class gnu::java::awt::peer::gtk::BufferedImageGraphics : public ::gnu::java::awt::peer::gtk::CairoGraphics2D
{

public:
  BufferedImageGraphics(::java::awt::image::BufferedImage *);
public: // actually package-private
  BufferedImageGraphics(::gnu::java::awt::peer::gtk::BufferedImageGraphics *);
private:
  void updateBufferedImage(jint, jint, jint, jint);
public:
  virtual ::java::awt::Graphics * create();
  virtual ::java::awt::GraphicsConfiguration * getDeviceConfiguration();
public: // actually protected
  virtual ::java::awt::geom::Rectangle2D * getRealBounds();
public:
  virtual void copyAreaImpl(jint, jint, jint, jint, jint, jint);
  virtual void draw(::java::awt::Shape *);
  virtual void fill(::java::awt::Shape *);
  virtual void drawRenderedImage(::java::awt::image::RenderedImage *, ::java::awt::geom::AffineTransform *);
public: // actually protected
  virtual jboolean drawImage(::java::awt::Image *, ::java::awt::geom::AffineTransform *, ::java::awt::Color *, ::java::awt::image::ImageObserver *);
public:
  virtual void drawGlyphVector(::java::awt::font::GlyphVector *, jfloat, jfloat);
private:
  jboolean drawComposite(::java::awt::geom::Rectangle2D *, ::java::awt::image::ImageObserver *);
  void createBuffer();
public: // actually protected
  virtual ::java::awt::image::ColorModel * getNativeCM();
  virtual ::java::awt::image::ColorModel * getBufferCM();
private:
  ::java::awt::image::BufferedImage * __attribute__((aligned(__alignof__( ::gnu::java::awt::peer::gtk::CairoGraphics2D)))) image;
  ::java::awt::image::BufferedImage * buffer;
  jint imageWidth;
  jint imageHeight;
public: // actually package-private
  ::gnu::java::awt::peer::gtk::CairoSurface * surface;
  static ::java::util::WeakHashMap * bufferedImages;
private:
  jlong cairo_t;
  jboolean hasFastCM;
  jboolean hasAlpha;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_java_awt_peer_gtk_BufferedImageGraphics__