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

#ifndef __gnu_awt_xlib_XGraphics__
#define __gnu_awt_xlib_XGraphics__

#pragma interface

#include <java/lang/Object.h>
#include <gcj/array.h>

extern "Java"
{
  namespace gnu
  {
    namespace awt
    {
      namespace j2d
      {
          class MappedRaster;
      }
      namespace xlib
      {
          class XFontMetrics;
          class XGraphics;
          class XGraphicsConfiguration;
      }
    }
    namespace gcj
    {
      namespace xlib
      {
          class Drawable;
          class GC;
      }
    }
  }
  namespace java
  {
    namespace awt
    {
        class Color;
        class Font;
        class FontMetrics;
        class Image;
        class Rectangle;
        class Shape;
      namespace image
      {
          class ImageObserver;
      }
    }
  }
}

class gnu::awt::xlib::XGraphics : public ::java::lang::Object
{

public:
  virtual ::java::lang::Object * clone();
  virtual void dispose();
  XGraphics(::gnu::gcj::xlib::Drawable *, ::gnu::awt::xlib::XGraphicsConfiguration *);
  virtual void setColor(::java::awt::Color *);
  virtual void setPaintMode();
  virtual void setXORMode(::java::awt::Color *);
  virtual void setFont(::java::awt::Font *);
  virtual ::java::awt::FontMetrics * getFontMetrics(::java::awt::Font *);
  virtual void setClip(jint, jint, jint, jint);
  virtual void setClip(::java::awt::Shape *);
  virtual void copyArea(jint, jint, jint, jint, jint, jint);
  virtual void drawLine(jint, jint, jint, jint);
  virtual void drawRect(jint, jint, jint, jint);
  virtual void fillRect(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, jint, jint);
  virtual void drawString(::java::lang::String *, jint, jint);
  virtual jboolean drawImage(::java::awt::Image *, jint, jint, ::java::awt::image::ImageObserver *);
  virtual ::gnu::awt::j2d::MappedRaster * mapRaster(::java::awt::Rectangle *);
  virtual void unmapRaster(::gnu::awt::j2d::MappedRaster *);
public: // actually package-private
  ::gnu::gcj::xlib::GC * __attribute__((aligned(__alignof__( ::java::lang::Object)))) context;
  ::gnu::awt::xlib::XGraphicsConfiguration * config;
  ::java::awt::Rectangle * clipBounds;
  ::gnu::awt::xlib::XFontMetrics * metrics;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_awt_xlib_XGraphics__
