summaryrefslogtreecommitdiff
path: root/libjava/gnu/java/awt/peer/qt/QtVolatileImage.h
blob: 4972e9faad6b153ec8960e143d7cb3febbef2c6d (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
109
110
111
112
113
114
115
116
117
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_java_awt_peer_qt_QtVolatileImage__
#define __gnu_java_awt_peer_qt_QtVolatileImage__

#pragma interface

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

extern "Java"
{
  namespace gnu
  {
    namespace java
    {
      namespace awt
      {
        namespace peer
        {
          namespace qt
          {
              class QMatrix;
              class QtGraphics;
              class QtImage;
              class QtImageGraphics;
              class QtVolatileImage;
          }
        }
      }
    }
  }
  namespace java
  {
    namespace awt
    {
        class Color;
        class Graphics;
        class Graphics2D;
        class GraphicsConfiguration;
        class Image;
        class ImageCapabilities;
      namespace image
      {
          class BufferedImage;
          class ColorModel;
          class ImageObserver;
          class ImageProducer;
      }
    }
  }
}

class gnu::java::awt::peer::qt::QtVolatileImage : public ::java::awt::image::VolatileImage
{

public:
  virtual void clear();
private:
  JArray< jint > * getPixels();
  void createImage();
  void freeImage();
public:
  virtual void blit(::gnu::java::awt::peer::qt::QtImage *);
  virtual void blit(::gnu::java::awt::peer::qt::QtImage *, jint, jint, jint, jint);
private:
  void createScaledImage(::gnu::java::awt::peer::qt::QtVolatileImage *, jint);
  void drawPixels(::gnu::java::awt::peer::qt::QtGraphics *, jint, jint, jint, jint, jint, jboolean);
  void drawPixelsScaled(::gnu::java::awt::peer::qt::QtGraphics *, jint, jint, jint, jint, jint, jint, jint, jboolean);
  void drawPixelsTransformed(::gnu::java::awt::peer::qt::QtGraphics *, ::gnu::java::awt::peer::qt::QMatrix *);
public: // actually package-private
  virtual void drawPixelsScaledFlipped(::gnu::java::awt::peer::qt::QtGraphics *, jint, jint, jint, jboolean, jboolean, jint, jint, jint, jint, jint, jint, jint, jint, jboolean);
public:
  QtVolatileImage(jint, jint);
private:
  QtVolatileImage(::gnu::java::awt::peer::qt::QtVolatileImage *, jint, jint, jint);
public:
  virtual void finalize();
  virtual void dispose();
  virtual jint getWidth(::java::awt::image::ImageObserver *);
  virtual jint getHeight(::java::awt::image::ImageObserver *);
  virtual ::java::lang::Object * getProperty(::java::lang::String *, ::java::awt::image::ImageObserver *);
  virtual ::java::awt::image::ImageProducer * getSource();
public: // actually package-private
  virtual void putPainter(::gnu::java::awt::peer::qt::QtImageGraphics *);
  virtual void removePainter(::gnu::java::awt::peer::qt::QtImageGraphics *);
public:
  virtual ::java::awt::Graphics * getGraphics();
  virtual ::java::awt::Image * getScaledInstance(jint, jint, jint);
  virtual void flush();
  virtual jint checkImage(::java::awt::image::ImageObserver *);
  virtual jboolean drawImage(::gnu::java::awt::peer::qt::QtGraphics *, ::gnu::java::awt::peer::qt::QMatrix *, ::java::awt::image::ImageObserver *);
  virtual jboolean drawImage(::gnu::java::awt::peer::qt::QtGraphics *, jint, jint, ::java::awt::Color *, ::java::awt::image::ImageObserver *);
  virtual jboolean drawImage(::gnu::java::awt::peer::qt::QtGraphics *, jint, jint, jint, jint, ::java::awt::Color *, ::java::awt::image::ImageObserver *);
  virtual jboolean drawImage(::gnu::java::awt::peer::qt::QtGraphics *, jint, jint, jint, jint, jint, jint, jint, jint, ::java::awt::Color *, ::java::awt::image::ImageObserver *);
  virtual void copyArea(jint, jint, jint, jint, jint, jint);
  virtual jboolean contentsLost();
  virtual ::java::awt::Graphics2D * createGraphics();
  virtual ::java::awt::ImageCapabilities * getCapabilities();
  virtual jint getHeight();
  virtual ::java::awt::image::BufferedImage * getSnapshot();
  virtual jint getWidth();
  virtual jint validate(::java::awt::GraphicsConfiguration *);
public: // actually package-private
  jint __attribute__((aligned(__alignof__( ::java::awt::image::VolatileImage)))) width;
  jint height;
  ::java::util::Hashtable * props;
  jlong nativeObject;
  static ::java::awt::image::ColorModel * nativeModel;
  ::java::util::WeakHashMap * painters;
  jboolean killFlag;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_java_awt_peer_qt_QtVolatileImage__