void GrApplyTranslation(
GStateHandle gstate, /* GState to alter */
WWFixedAsDWord xTrans, /* translation in x */
WWFixedAsDWord yTrans); /* translation in y */
Apply a translation to the GState.
Include: graphics.h
void GrApplyTranslationDWord(
GStateHandle gstate, /* GState to alter */
sdword xTrans, /* extended translation in x */
sdword yTrans); /* extended translation in y */
Apply a 32-bit integer extended translation to the GState.
Include: graphics.h
void GrBeginPath(
GStateHandle gstate, /* GState to alter */
PathCombineType params); /* path parameters */
Starts or alters the path associated with a GState. All graphics operations that are executed until
GrEndPath()
is called become part of the path.
Depending on the value of the
params
field, the new path may replace the old path, or may be combined with the old path by intersection or union.
Include: graphics.h
void GrBeginUpdate(
GStateHandle gstate); /* GState to draw to */
Called by an application to signal that it is about to begin updating the exposed region. This routine is normally called as part of a
MSG_META_EXPOSED
handler. Blanks out the invalid area.
Include: win.h
void GrBitBlt(
GStateHandle gstate, /* GState to draw to */
sword sourceX, /* original x origin */
sword sourceY, /* original y origin */
sword destX, /* new x origin */
sword destY, /* new y origin */
word width, /* width of area */
word height, /* height of area */
BLTMode mode); /* draw mode (see below) */
Transfer a bit-boundary block of pixels between two locations in video memory. This routine is useful for animation and other applications which involve moving a drawing around the screen.
Structures:
typedef enum /* word */ {
BLTM_COPY, /* Leave source region alone */
BLTM_MOVE, /* Clear & invalidate source rect */
BLTM_CLEAR /* Clear source rectangle */
} BLTMode;
Include: graphics.h
void GrBrushPolyline(
GStateHandle gstate, /* GState to draw to */
const Point * points, /* array of Point structures to draw */
word numPoints, /* number of points in array */
word brushH, /* brush height */
word brushW); /* brush width */
Draw a brushed connected polyline. Note that this routine ignores the GState's line width, and instead uses a brush height and width, measured in pixels.
Include: graphics.h
dword GrCharMetrics(
GStatehandle gstate, /* GState to get metrics for */
GCM_info info, /* information to return */
word ch); /* character of type Chars */
Returns metric information for a single character of a font. This information is used to determine the drawing bounds for a character. To find out how wide a character is (how much space to leave for it if drawing a line of text character-by-character), use
GrCharWidth()
instead.
Structures:
typedef enum {
GCMI_MIN_X, /* return = value << 16 */
GCMI_MIN_X_ROUNDED, /* return = value */
GCMI_MIN_Y, /* return = value << 16 */
GCMI_MIN_Y_ROUNDED, /* return = value << 16 */
GCMI_MAX_X, /* return = value << 16 */
GCMI_MAX_X_ROUNDED, /* return = value << 16 */
GCMI_MAX_Y, /* return = value << 16 */
GCMI_MAX_Y_ROUNDED /* return = value << 16 */
} GCM_Info;
See Also: GrCharWidth().
Include: font.h
dword GrCharWidth( /* Returns width << 16 */
GStateHandle gstate, /* GState to query */
word ch); /* character of type Chars */
Return the width of a single character. Note that this routine does not take into account track kerning, pairwise kerning, space padding, or other attributes that apply to multiple characters.
Include: graphics.h
FontID GrCheckFontAvailID(
FontEnumFlags flags,
word family,
FontID id);
See if font (identified by ID) exists.
Include: graphics.h
FontID GrCheckFontAvailName(
FontEnumFlags flags,
word family,
const char * name);
See if font (identified by name) exists.
Include: graphics.h
GEOS SDK TechDocs
|
|
GeoFree() ...
|
GrClearBitmap() ...