
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_java_awt_peer_qt_QtGraphics__
#define __gnu_java_awt_peer_qt_QtGraphics__

#pragma interface

#include <java/awt/Graphics2D.h>
#include <gcj/array.h>

extern "Java"
{
  namespace gnu
  {
    namespace java
    {
      namespace awt
      {
        namespace peer
        {
          namespace qt
          {
              class QMatrix;
              class QPainterPath;
              class QPen;
              class QtFontPeer;
              class QtGraphics;
              class QtImage;
              class QtVolatileImage;
          }
        }
      }
    }
  }
  namespace java
  {
    namespace awt
    {
        class Color;
        class Composite;
        class Font;
        class FontMetrics;
        class Graphics;
        class GraphicsConfiguration;
        class Image;
        class Paint;
        class Rectangle;
        class RenderingHints;
        class RenderingHints$Key;
        class Shape;
        class Stroke;
      namespace font
      {
          class FontRenderContext;
          class GlyphVector;
      }
      namespace geom
      {
          class AffineTransform;
      }
      namespace image
      {
          class BufferedImage;
          class BufferedImageOp;
          class ImageObserver;
          class RenderedImage;
        namespace renderable
        {
            class RenderableImage;
        }
      }
    }
    namespace text
    {
        class AttributedCharacterIterator;
    }
  }
}

class gnu::java::awt::peer::qt::QtGraphics : public ::java::awt::Graphics2D
{

public: // actually package-private
  QtGraphics();
  QtGraphics(::gnu::java::awt::peer::qt::QtGraphics *);
public: // actually protected
  virtual void setup();
public:
  virtual void delete$();
  virtual void dispose();
private:
  void resetClip();
public: // actually protected
  virtual void initImage(::gnu::java::awt::peer::qt::QtImage *);
  virtual void initVolatileImage(::gnu::java::awt::peer::qt::QtVolatileImage *);
private:
  void cloneNativeContext(::gnu::java::awt::peer::qt::QtGraphics *);
  void setColor(jint, jint, jint, jint);
  void drawNative(::gnu::java::awt::peer::qt::QPainterPath *);
  void fillNative(::gnu::java::awt::peer::qt::QPainterPath *);
  void setClipNative(::gnu::java::awt::peer::qt::QPainterPath *);
  void setClipRectNative(jint, jint, jint, jint);
  void intersectClipNative(::gnu::java::awt::peer::qt::QPainterPath *);
  void intersectClipRectNative(jint, jint, jint, jint);
  void setQtTransform(::gnu::java::awt::peer::qt::QMatrix *);
  void setNativeStroke(::gnu::java::awt::peer::qt::QPen *);
  void setNativeComposite(jint);
  void drawStringNative(::java::lang::String *, jdouble, jdouble);
  void setLinearGradient(jint, jint, jint, jint, jint, jint, jdouble, jdouble, jdouble, jdouble, jboolean);
  void setAlphaNative(jdouble);
  void setFontNative(::gnu::java::awt::peer::qt::QtFontPeer *);
  ::gnu::java::awt::peer::qt::QPainterPath * getClipNative();
public: // actually package-private
  virtual void setAlpha(jdouble);
public:
  virtual ::java::awt::Graphics * create() = 0;
  virtual void copyArea(jint, jint, jint, jint, jint, jint) = 0;
  virtual ::java::awt::GraphicsConfiguration * getDeviceConfiguration() = 0;
  virtual ::java::awt::Color * getColor();
  virtual void setColor(::java::awt::Color *);
  virtual void setBackground(::java::awt::Color *);
  virtual ::java::awt::Color * getBackground();
  virtual void setPaintMode();
  virtual void setXORMode(::java::awt::Color *);
  virtual jboolean hit(::java::awt::Rectangle *, ::java::awt::Shape *, jboolean);
  virtual ::java::awt::Font * getFont();
  virtual void setFont(::java::awt::Font *);
  virtual ::java::awt::FontMetrics * getFontMetrics(::java::awt::Font *);
  virtual void clip(::java::awt::Shape *);
  virtual void clipRect(jint, jint, jint, jint);
  virtual void setClip(jint, jint, jint, jint);
  virtual ::java::awt::Shape * getClip();
  virtual ::java::awt::Rectangle * getClipBounds();
  virtual void setClip(::java::awt::Shape *);
  virtual void draw(::java::awt::Shape *);
  virtual void fill(::java::awt::Shape *);
  virtual void drawLine(jint, jint, jint, jint);
  virtual void drawRect(jint, jint, jint, jint);
  virtual void fillRect(jint, jint, jint, jint);
  virtual void clearRect(jint, jint, jint, jint);
  virtual void drawRoundRect(jint, jint, jint, jint, jint, jint);
  virtual void fillRoundRect(jint, jint, jint, jint, jint, jint);
  virtual void drawOval(jint, jint, jint, jint);
  virtual void fillOval(jint, jint, jint, jint);
  virtual void drawArc(jint, jint, jint, jint, jint, jint);
  virtual void fillArc(jint, jint, jint, jint, jint, jint);
  virtual void drawPolyline(JArray< jint > *, JArray< jint > *, jint);
  virtual void drawPolygon(JArray< jint > *, JArray< jint > *, jint);
  virtual void fillPolygon(JArray< jint > *, JArray< jint > *, jint);
  virtual void fill3DRect(jint, jint, jint, jint, jboolean);
  virtual void draw3DRect(jint, jint, jint, jint, jboolean);
  virtual void drawString(::java::lang::String *, jint, jint);
  virtual void drawString(::java::lang::String *, jfloat, jfloat);
  virtual void drawString(::java::text::AttributedCharacterIterator *, jint, jint);
  virtual void drawString(::java::text::AttributedCharacterIterator *, jfloat, jfloat);
  virtual void drawGlyphVector(::java::awt::font::GlyphVector *, jfloat, jfloat);
  virtual jboolean drawImage(::java::awt::Image *, ::java::awt::geom::AffineTransform *, ::java::awt::image::ImageObserver *);
  virtual jboolean drawImage(::java::awt::Image *, jint, jint, ::java::awt::Color *, ::java::awt::image::ImageObserver *);
  virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, jint, jint, jint, jint, ::java::awt::Color *, ::java::awt::image::ImageObserver *);
  virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, ::java::awt::Color *, ::java::awt::image::ImageObserver *);
  virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, ::java::awt::image::ImageObserver *);
  virtual jboolean drawImage(::java::awt::Image *, jint, jint, ::java::awt::image::ImageObserver *);
  virtual jboolean drawImage(::java::awt::Image *, jint, jint, jint, jint, jint, jint, jint, jint, ::java::awt::image::ImageObserver *);
  virtual ::java::awt::geom::AffineTransform * getTransform();
  virtual void setTransform(::java::awt::geom::AffineTransform *);
  virtual void rotate(jdouble);
  virtual void rotate(jdouble, jdouble, jdouble);
  virtual void scale(jdouble, jdouble);
  virtual void shear(jdouble, jdouble);
  virtual void transform(::java::awt::geom::AffineTransform *);
  virtual void translate(jdouble, jdouble);
  virtual void translate(jint, jint);
  virtual void setStroke(::java::awt::Stroke *);
  virtual ::java::awt::Stroke * getStroke();
  virtual void setComposite(::java::awt::Composite *);
  virtual ::java::awt::Composite * getComposite();
  virtual void setPaint(::java::awt::Paint *);
  virtual ::java::awt::Paint * getPaint();
  virtual void addRenderingHints(::java::util::Map *);
  virtual ::java::lang::Object * getRenderingHint(::java::awt::RenderingHints$Key *);
  virtual ::java::awt::RenderingHints * getRenderingHints();
  virtual void setRenderingHints(::java::util::Map *);
  virtual void setRenderingHint(::java::awt::RenderingHints$Key *, ::java::lang::Object *);
private:
  void updateRenderingHints();
public:
  virtual ::java::awt::font::FontRenderContext * getFontRenderContext();
  virtual void drawRenderableImage(::java::awt::image::renderable::RenderableImage *, ::java::awt::geom::AffineTransform *);
  virtual void drawRenderedImage(::java::awt::image::RenderedImage *, ::java::awt::geom::AffineTransform *);
  virtual void drawImage(::java::awt::image::BufferedImage *, ::java::awt::image::BufferedImageOp *, jint, jint);
public: // actually protected
  jlong __attribute__((aligned(__alignof__( ::java::awt::Graphics2D)))) nativeObject;
private:
  static ::java::awt::geom::AffineTransform * identity;
public: // actually protected
  ::java::awt::Font * font;
  ::java::awt::Color * color;
  ::java::awt::Color * bgcolor;
  ::java::awt::Shape * clip__;
  ::java::awt::Shape * initialClip;
  ::java::awt::geom::AffineTransform * xform;
  ::java::awt::Stroke * currentStroke;
  jboolean nativeStroking;
  ::java::awt::Composite * composite;
  jdouble currentAlpha;
  ::java::awt::Paint * currentPaint;
  ::java::awt::RenderingHints * renderingHints;
public: // actually package-private
  ::java::awt::Graphics * parent;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_java_awt_peer_qt_QtGraphics__
