Up: GEOS SDK TechDocs | Up | Prev: GrGetPtrRegBounds() ... | Next: GrNewPage() ...

GrInitDefaultTransform()

void	GrInitDefaultTransform(
        GStateHandle gstate);					/* subject GState */

Initialize the GState's default transformation to hold the value of the current transformation.

Include: graphics.h

GrInvalRect()

void	GrInvalRect(
        GStateHandle		gstate,				/* subject GState */
        sword		left,				/* bounds to be invalidated */
        sword		top,
        sword		right,
        sword		bottom);

Invalidate the passed rectangular area. This area will be redrawn.

Include: graphics.h

GrInvalRectDWord()

void	GrInvalRectDWord(
        GStateHandle		gstate,				/* subject GState */
        const	RectDWord	* bounds);				/* bounds to be invalidated */

Invalidate the passed rectangular area. This area will be redrawn.

Include: graphics.h

GrLabel()

void	GrLabel(
        GStringHandle		gstate,			/* subject GState */
        word		label);			/* label to write to GString */

Write the passed label into the passed GString.

Include: gstring.h

GrLoadGString()

GStringHandle GrLoadGString(
        Handle		han,				/* handle of GString source */
        GStringType		hanType,				/* handle type */
        word		vmBlock);				/* if VM file, handle of VM block */

Load a graphics string from a file. Used with stream, VM, and pointer addressed GStrings.

When done with the GString, you may free it via GrDestroyGString() .

Include: gstring.h

GrMapColorIndex()

RGBColorAsDWord GrMapColorIndex(
        GStateHandle		gstate,			/* GState to use for mapping */
        Color		c);			/* source color to be mapped */

Map a color index to its RGB equivalent using the color mapping scheme of the passed GState.

Include: graphics.h

GrMapColorRGB()

RGBColorAsDWord GrMapColorRGB(
        GStateHandle		gstate,			/* GState to use for mapping */
        word		red,			/* RGB values to map */
        word		green,
        word		blue);

Map an RGB color to an index.

Include: graphics.h

GrMoveReg()

void	GrMoveReg(
        Region	* reg,	/* pointer to region */
        sword	xOffset,	/* amount to shift horizontally */
        sword	yOffset);	/* amount to shift vertically */

Moves a region a given amount. Note that this operation affects only the region's data structure. The region must be redrawn or used in some other way for the changes to have any visible effect.

Include: graphics.h

GrMoveTo()

void	GrMoveTo(
        GStateHandle		gstate,			/* subject GState */
        sword		x,			/* new absolute pen position */
        sword		y);

Change the pen position.

Include: graphics.h

GrMoveToWWFixed()

void GrMoveToWWFixed(
        GStateHandle gstate, 
        WWFixedAsDWord x, 
        WWFixedAsDWord y);

This routine changes the pen position very precisely.

GrMulDWFixed()

void	GrMulDWFixed(
        const	DWFixed	* i,				/* first number */
        const	DWFixed	* j,				/* second number */
        DWFixed		* result);				/* pointer to returned result */

Multiply two fixed point numbers.

Include: graphics.h

GrMulWWFixed()

WWFixedAsDWord GrMulWWFixed(
        WWFixedAsDWord i,			/* first number */
        WWFixedAsDWord j);			/* second number */

Multiply two fixed point numbers.

Include: graphics.h


Up: GEOS SDK TechDocs | Up | Prev: GrGetPtrRegBounds() ... | Next: GrNewPage() ...