void GrDrawRoundRect(
GStateHandle gstate, /* GState to draw to */
sword left, /* bounds of rectangle */
sword top,
sword right,
sword bottom,
word cornerRadius); /* radius of corner rounding */
Draw the outline of a rounded rectangle.
Include: graphics.h
void GrDrawRoundRectTo(
GStateHandle gstate, /* GState to draw to */
sword x, /* opposite corner of bounds */
sword y,
word cornerRadius); /* radius of corner rounding */
Draw the outline of a rounded rectangle, where one corner of the bounding rectangle is the current position.
Include: graphics.h
void GrDrawSpline(
GStateHandle gstate, /* GState to draw to */
const Point * points, /* array of points */
word numPoints,); /* number of points in array */
Draw a Bézier spline.
Include: graphics.h
See Also: GrDrawCurve().
void GrDrawSplineTo(
GStateHandle gstate, /* GState to draw to */
const Point *points, /* array of points */
word numPoints); /* number of points in array */
Draw a Bezier spline, using the current position as one endpoint.
Include: graphics.h
See Also: GrDrawCurveTo().
void GrDrawText(
GStateHandle gstate, /* GState to draw to */
sword x, /* point at which to draw */
sword y,
const Chars * str, /* pointer to character string */
word size); /* length of string */
Draw a string of text. The string is represented as an array of characters. Note that the text will be drawn using the GState's font drawing attributes and that this routine does not accept any style run arguments.
If the passed
size
argument is zero, the string is assumed to be null-terminated.
Include: graphics.h
void GrDrawTextAtCP(
GStateHandle gstate, /* GState to draw to */
const Chars * str, /* pointer to character string */
word size); /* length of string */
As
GrDrawText()
, above, except that the text is drawn at the current position.
If the passed
size
argument is zero, the string is assumed to be null-terminated.
Include: graphics.h
void GrDrawVLine(
GStateHandle gstate, /* GState to draw to */
sword x, /* horizontal position of line */
sword y1, /* first vertical coordinate */
sword y2); /* second vertical coordinate */
Draw a vertical line.
Include: graphics.h
void GrDrawVLineTo(
GStateHandle gstate, /* GState to draw to */
sword y); /* second vertical position */
Draw a vertical line starting from the current position.
Include: graphics.h
GStateHandle GrEditBitmap(
VMFileHandle vmFile, /* VM file of bitmap */
VMBlockHandle vmBlock, /* VM block of bitmap */
optr exposureOD); /* optr to get MSG_META_EXPOSED */
This routine attaches a GState to the passed bitmap so that new drawings may be be sent to the bitmap.
Include: graphics.h
GStateHandle GrEditGString(
Handle vmFile, /* VM file containing the GString */
word vmBlock); /* VM block containing the GString */
This routine takes the location of a GString data block stored in a VM file. It will associate a GState with this GString data and returns the handle of this GState. Any graphics commands issued using this GStateHandle will be appended to the GString.
Include: graphics.h
GEOS SDK TechDocs
|
|
GrDrawRect() ...
|
GrEndGString() ...