2 * C++ X Windows class library
13 point() { _x = 0; _y = 0; }
15 point(int x, int y) { _x = x; _y = y; }
17 short x() { return _x; }
19 short y() { return _y; }
31 void drawline(drawable &d);
38 mode = CoordModeOrigin;
41 line(short x1, short y1, short x2, short y2)
44 mode = CoordModeOrigin;
45 points = new point[2];
46 points[0] = point(x1, y1);
47 points[1] = point(x2, y2);
50 line(point p1, point p2)
53 mode = CoordModeOrigin;
54 points = new point[2];
65 point &operator[] (int index);
72 unsigned short width, height;
85 rectangle(int _x, int _y, unsigned int _w, unsigned int _h)
93 // Define a rectangle by its diagonal
95 rectangle(point p1, point p2);
102 unsigned short width, height;
114 box(int _x, int _y, unsigned int _w, unsigned int _h)
122 // Define a box by its diagonal
124 box(point p1, point p2);
142 text(int _x, int _y, String str)
149 text(point p, String s)