Functions | |
void | GrGetGCInfo (GR_GC_ID gc, GR_GC_INFO *gcip) |
Fills in the specified GR_GC_INFO structure with information regarding the specified graphics context. | |
GR_GC_ID | GrNewGC (void) |
Creates a new graphics context structure. | |
GR_GC_ID | GrCopyGC (GR_GC_ID gc) |
Creates a new graphics context structure and copies the settings from an already existing graphics context. | |
void | GrDestroyGC (GR_GC_ID gc) |
Destroys a graphics context structure. | |
void | GrSetGCClipOrigin (GR_GC_ID gc, int x, int y) |
Sets the X,Y origin of the user clip region in the specified graphics context. | |
void | GrSetGCGraphicsExposure (GR_GC_ID gc, GR_BOOL exposure) |
Controls if GR_EVENT_TYPE_EXPOSURE events are sent as a result of GrCopyArea using the specified graphics context. | |
void | GrClearArea (GR_WINDOW_ID wid, GR_COORD x, GR_COORD y, GR_SIZE width, GR_SIZE height, GR_BOOL exposeflag) |
Clears the specified window by to its background color or pixmap. | |
void | GrSetGCForeground (GR_GC_ID gc, GR_COLOR foreground) |
Changes the foreground colour of the specified graphics context to the specified RGB colour. | |
void | GrSetGCBackground (GR_GC_ID gc, GR_COLOR background) |
Changes the background colour of the specified graphics context to the specified RGB colour. | |
void | GrSetGCForegroundPixelVal (GR_GC_ID gc, GR_PIXELVAL foreground) |
Changes the foreground colour of the specified graphics context to the specified hardware pixel value. | |
void | GrSetGCBackgroundPixelVal (GR_GC_ID gc, GR_PIXELVAL background) |
Changes the background colour of the specified graphics context to the specified hardware pixel value. | |
void | GrSetGCMode (GR_GC_ID gc, int mode) |
Changes the drawing mode (SET, XOR, OR, AND, etc.) of the specified graphics context to the specified mode. | |
void | GrSetGCLineAttributes (GR_GC_ID, int) |
Changes the line style to either SOLID or ON OFF DASHED. | |
void | GrSetGCDash (GR_GC_ID, char *, int) |
FIXME. | |
void | GrSetGCFillMode (GR_GC_ID, int) |
FIXME. | |
void | GrSetGCStipple (GR_GC_ID gc, GR_BITMAP *bitmap, int width, int height) |
FIXME. | |
void | GrSetGCTile (GR_GC_ID gc, GR_WINDOW_ID pixmap, int width, int height) |
FIXME. | |
void | GrSetGCTSOffset (GR_GC_ID gc, int xoff, int yoff) |
FIXME. | |
void | GrSetGCUseBackground (GR_GC_ID gc, GR_BOOL flag) |
Sets the flag which chooses whether or not the background colour is used when drawing bitmaps and text using the specified graphics context to the specified value. | |
void | GrLine (GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x1, GR_COORD y1, GR_COORD x2, GR_COORD y2) |
Draws a line using the specified graphics context on the specified drawable from (x1, y1) to (x2, y2), with coordinates given relative to the drawable. | |
void | GrRect (GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y, GR_SIZE width, GR_SIZE height) |
Draw the boundary of a rectangle of the specified dimensions and position on the specified drawable using the specified graphics context. | |
void | GrFillRect (GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y, GR_SIZE width, GR_SIZE height) |
Draw a filled rectangle of the specified dimensions and position on the specified drawable using the specified graphics context. | |
void | GrEllipse (GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y, GR_SIZE rx, GR_SIZE ry) |
Draws the boundary of ellipse at the specified position using the specified dimensions and graphics context on the specified drawable. | |
void | GrFillEllipse (GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y, GR_SIZE rx, GR_SIZE ry) |
Draws a filled ellipse at the specified position using the specified dimensions and graphics context on the specified drawable. | |
void | GrArc (GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y, GR_SIZE rx, GR_SIZE ry, GR_COORD ax, GR_COORD ay, GR_COORD bx, GR_COORD by, int type) |
Draws an arc with the specified dimensions at the specified position on the specified drawable using the specified graphics context. | |
void | GrArcAngle (GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y, GR_SIZE rx, GR_SIZE ry, GR_COORD angle1, GR_COORD angle2, int type) |
Draws an arc with the specified dimensions at the specified position on the specified drawable using the specified graphics context. | |
void | GrBitmap (GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y, GR_SIZE width, GR_SIZE height, GR_BITMAP *imagebits) |
Draws the monochrome bitmap data provided in the imagebits argument at the specified position on the specified drawable using the specified graphics context. | |
void | GrDrawImageBits (GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y, GR_IMAGE_HDR *pimage) |
Draws the image contained in the specified image structure onto the specified drawable at the specified coordinates using the specified graphics context. | |
void | GrArea (GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y, GR_SIZE width, GR_SIZE height, void *pixels, int pixtype) |
Draws the specified pixel array of the specified size and format onto the specified drawable using the specified graphics context at the specified position. | |
void | GrCopyArea (GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y, GR_SIZE width, GR_SIZE height, GR_DRAW_ID srcid, GR_COORD srcx, GR_COORD srcy, unsigned long op) |
Copies the specified area of the specified size between the specified drawables at the specified positions using the specified graphics context and ROP codes. | |
void | GrReadArea (GR_DRAW_ID id, GR_COORD x, GR_COORD y, GR_SIZE width, GR_SIZE height, GR_PIXELVAL *pixels) |
Reads the pixel data of the specified size from the specified position on the specified drawable into the specified pixel array. | |
void | GrPoint (GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y) |
Draws a point using the specified graphics context at the specified position on the specified drawable. | |
void | GrPoints (GR_DRAW_ID id, GR_GC_ID gc, GR_COUNT count, GR_POINT *pointtable) |
Draws a set of points using the specified graphics context at the positions specified by the point table on the specified drawable. | |
void | GrPoly (GR_DRAW_ID id, GR_GC_ID gc, GR_COUNT count, GR_POINT *pointtable) |
Draws an unfilled polygon on the specified drawable using the specified graphics context. | |
void | GrFillPoly (GR_DRAW_ID id, GR_GC_ID gc, GR_COUNT count, GR_POINT *pointtable) |
Draws a filled polygon on the specified drawable using the specified graphics context. | |
void | GrStretchArea (GR_DRAW_ID dstid, GR_GC_ID gc, GR_COORD dx1, GR_COORD dy1, GR_COORD dx2, GR_COORD dy2, GR_DRAW_ID srcid, GR_COORD sx1, GR_COORD sy1, GR_COORD sx2, GR_COORD sy2, unsigned long op) |
Copies a region from one drawable to another. |
|
Draws an arc with the specified dimensions at the specified position on the specified drawable using the specified graphics context. The type specifies the fill type. Possible values include GR_ARC and GR_PIE.
|
|
Draws an arc with the specified dimensions at the specified position on the specified drawable using the specified graphics context. The type specifies the fill type. Possible values include GR_ARC and GR_PIE. This function requires floating point support, and is slightly slower than the GrArc() function which does not require floating point.
|
|
Draws the specified pixel array of the specified size and format onto the specified drawable using the specified graphics context at the specified position. Note that colour conversion is currently only performed when using the GR_PF_RGB format, which is an unsigned long containing RGBX data.
|
|
Draws the monochrome bitmap data provided in the imagebits argument at the specified position on the specified drawable using the specified graphics context. Note that the bitmap data should be an array of aligned 16 bit words. The usebackground flag in the graphics context specifies whether to draw the background colour wherever a bit value is zero.
|
|
Clears the specified window by to its background color or pixmap. If exposeflag is non zero, an exposure event is generated for the window after it has been cleared.
|
|
Copies the specified area of the specified size between the specified drawables at the specified positions using the specified graphics context and ROP codes. 0 is a sensible default ROP code in most cases.
|
|
Creates a new graphics context structure and copies the settings from an already existing graphics context.
|
|
Destroys a graphics context structure.
|
|
Draws the image contained in the specified image structure onto the specified drawable at the specified coordinates using the specified graphics context.
|
|
Draws the boundary of ellipse at the specified position using the specified dimensions and graphics context on the specified drawable.
|
|
Draws a filled ellipse at the specified position using the specified dimensions and graphics context on the specified drawable.
|
|
Draws a filled polygon on the specified drawable using the specified graphics context. The polygon is specified by an array of point structures. The polygon is automatically closed- the last point need not be the same as the first in order for the polygon to be closed.
|
|
Draw a filled rectangle of the specified dimensions and position on the specified drawable using the specified graphics context.
|
|
Fills in the specified GR_GC_INFO structure with information regarding the specified graphics context.
|
|
Draws a line using the specified graphics context on the specified drawable from (x1, y1) to (x2, y2), with coordinates given relative to the drawable.
|
|
Creates a new graphics context structure. The structure is initialised with a set of default parameters.
|
|
Draws a point using the specified graphics context at the specified position on the specified drawable.
|
|
Draws a set of points using the specified graphics context at the positions specified by the point table on the specified drawable.
|
|
Draws an unfilled polygon on the specified drawable using the specified graphics context. The polygon is specified by an array of point structures. The polygon is not automatically closed- if a closed polygon is desired, the last point must be the same as the first.
|
|
Reads the pixel data of the specified size from the specified position on the specified drawable into the specified pixel array. If the drawable is a window, the data returned will be the pixel values from the relevant position on the screen regardless of whether the window is obscured by other windows. If the window is unmapped, or partially or fully outside a window boundary, black pixel values will be returned.
|
|
Draw the boundary of a rectangle of the specified dimensions and position on the specified drawable using the specified graphics context.
|
|
Changes the background colour of the specified graphics context to the specified RGB colour.
|
|
Changes the background colour of the specified graphics context to the specified hardware pixel value.
|
|
Sets the X,Y origin of the user clip region in the specified graphics context.
|
|
FIXME.
|
|
FIXME.
|
|
Changes the foreground colour of the specified graphics context to the specified RGB colour.
|
|
Changes the foreground colour of the specified graphics context to the specified hardware pixel value.
|
|
Controls if GR_EVENT_TYPE_EXPOSURE events are sent as a result of GrCopyArea using the specified graphics context.
|
|
Changes the line style to either SOLID or ON OFF DASHED.
|
|
Changes the drawing mode (SET, XOR, OR, AND, etc.) of the specified graphics context to the specified mode.
|
|
FIXME.
|
|
FIXME.
|
|
FIXME.
|
|
Sets the flag which chooses whether or not the background colour is used when drawing bitmaps and text using the specified graphics context to the specified value.
|
|
Copies a region from one drawable to another. Can stretch and/or flip the image. The stretch/flip maps (sx1,sy1) in the source to (dx1,dy1) in the destination, and similarly (sx2,sy2) in the source maps to (dx2,dy2) in the destination. Both horizontal and vertical flips are supported. Note that the bottom and right rows of pixels are excluded - i.e. a target of (0,0)-(2,2) will not draw pixels with y=2 or x=2. 0 is a sensible default ROP code in most cases.
|