#include <Gdc2.h>

Public Member Functions | |
| GScreenDC (GView *view, void *Param=0) | |
| Construct a wrapper to draw on a window. | |
| GScreenDC (int x, int y, int bits) | |
| Constructs a server size pixmap. | |
| GScreenDC (Gtk::GdkDrawable *Drawable) | |
| Constructs a wrapper around a drawable. | |
| GScreenDC (OsView View) | |
| Constructs a DC for drawing on a window. | |
| void | GetOrigin (int &x, int &y) |
| Gets the surface origin. | |
| void | SetOrigin (int x, int y) |
| Sets the surface origin. | |
| COLOUR | Colour () |
| Gets the current colour. | |
| COLOUR | Colour (COLOUR c, int Bits=0) |
| Sets the current colour. | |
| int | Op () |
| Gets the current blending mode in operation. | |
| int | Op (int Op) |
| int | X () |
| Gets the width in pixels. | |
| int | Y () |
| Gets the height in pixels. | |
| int | GetBits () |
| Gets the bits per pixel. | |
| GScreenDC * | IsScreen () |
| Returns true if the surface is on the screen. | |
| uchar * | operator[] (int y) |
| Returns a pointer to the start of a scanline, or NULL if not available. | |
| void | Set (int x, int y) |
| Sets a pixel with the current colour. | |
| COLOUR | Get (int x, int y) |
| Gets a pixel (doesn't work on some types of image, i.e. GScreenDC). | |
| void | HLine (int x1, int x2, int y) |
| Draw a horizontal line in the current colour. | |
| void | VLine (int x, int y1, int y2) |
| Draw a vertical line in the current colour. | |
| void | Line (int x1, int y1, int x2, int y2) |
| Draw a line in the current colour. | |
| void | Circle (double cx, double cy, double radius) |
| Stroke a circle in the current colour. | |
| void | FilledCircle (double cx, double cy, double radius) |
| Fill a circle in the current colour. | |
| void | Arc (double cx, double cy, double radius, double start, double end) |
| Stroke an arc in the current colour. | |
| void | FilledArc (double cx, double cy, double radius, double start, double end) |
| Fill an arc in the current colour. | |
| void | Ellipse (double cx, double cy, double x, double y) |
| Stroke an ellipse in the current colour. | |
| void | FilledEllipse (double cx, double cy, double x, double y) |
| Fill an ellipse in the current colour. | |
| void | Box (int x1, int y1, int x2, int y2) |
| Stroke a rectangle in the current colour. | |
| void | Box (GRect *a) |
| Stroke a rectangle in the current colour. | |
| void | Rectangle (int x1, int y1, int x2, int y2) |
| Fill a rectangle in the current colour. | |
| void | Rectangle (GRect *a=NULL) |
| Fill a rectangle in the current colour. | |
| void | Blt (int x, int y, GSurface *Src, GRect *a=NULL) |
| Copy an image onto the surface. | |
| void | StretchBlt (GRect *d, GSurface *Src, GRect *s=NULL) |
| Not implemented. | |
| void | Polygon (int Points, GdcPt2 *Data) |
| Fill a polygon in the current colour. | |
| void | Bezier (int Threshold, GdcPt2 *Pt) |
| Stroke a bezier in the current colour. | |
| void | FloodFill (int x, int y, int Mode, COLOUR Border=0, GRect *Bounds=NULL) |
| Flood fill in the current colour (doesn't work on a GScreenDC). | |
This is the class given to GView::OnPaint() most of the time. Which most of the time doesn't matter unless your doing something unusual.
| int GScreenDC::Op | ( | int | Op | ) | [virtual] |
1.5.7.1