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

#ifndef __java_awt_Polygon__
#define __java_awt_Polygon__

#pragma interface

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

extern "Java"
{
  namespace java
  {
    namespace awt
    {
        class Point;
        class Polygon;
        class Rectangle;
      namespace geom
      {
          class AffineTransform;
          class PathIterator;
          class Point2D;
          class Rectangle2D;
      }
    }
  }
}

class java::awt::Polygon : public ::java::lang::Object
{

public:
  Polygon();
  Polygon(JArray< jint > *, JArray< jint > *, jint);
  virtual void reset();
  virtual void invalidate();
  virtual void translate(jint, jint);
  virtual void addPoint(jint, jint);
  virtual ::java::awt::Rectangle * getBounds();
  virtual ::java::awt::Rectangle * getBoundingBox();
  virtual jboolean contains(::java::awt::Point *);
  virtual jboolean contains(jint, jint);
  virtual jboolean inside(jint, jint);
  virtual ::java::awt::geom::Rectangle2D * getBounds2D();
  virtual jboolean contains(jdouble, jdouble);
  virtual jboolean contains(::java::awt::geom::Point2D *);
  virtual jboolean intersects(jdouble, jdouble, jdouble, jdouble);
  virtual jboolean intersects(::java::awt::geom::Rectangle2D *);
  virtual jboolean contains(jdouble, jdouble, jdouble, jdouble);
  virtual jboolean contains(::java::awt::geom::Rectangle2D *);
  virtual ::java::awt::geom::PathIterator * getPathIterator(::java::awt::geom::AffineTransform *);
  virtual ::java::awt::geom::PathIterator * getPathIterator(::java::awt::geom::AffineTransform *, jdouble);
private:
  jint evaluateCrossings(jdouble, jdouble, jboolean, jdouble);
  static const jlong serialVersionUID = -6460061437900069969LL;
public:
  jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) npoints;
  JArray< jint > * xpoints;
  JArray< jint > * ypoints;
public: // actually protected
  ::java::awt::Rectangle * bounds;
private:
  static jdouble BIG_VALUE;
public:
  static ::java::lang::Class class$;
};

#endif // __java_awt_Polygon__