Up: GEOS SDK TechDocs | Up | Prev: GrSetTextMode() ... | Next: GrUDivWWFixed() ...

GrTestPointInPath()

Boolean	GrTestPointInPath(
        GStateHandle		gstate,				/* subject GState */
        word		xPos,				/* point to test */
        word		yPos,
        RegionFillRule		rule);				/* ODD_EVEN or WINDING */

Determine whether the passed point falls in the interior of the GState's path.

Include: graphics.h

GrTestPointInPolygon()

Boolean	GrTestPointInPolygon(
        GStateHandle		gstate,				/* subject GState */
        RegionFillRule		rule,				/* ODD_EVEN or WINDING */
        Point		* list,				/* array of points in polygon */
        word		numPoints,				/* number of points in array */
        sword		xCoord,				/* coordinates of point to test */
        sword		yCoord);

Determine whether the passed point lies in the interior of the passed polygon.

Include: graphics.h

GrTestPointInReg()

Boolean 	GrTestPointInReg( 
        const	Region	* reg,				/* pointer to region */
        sword 		x,				/* coordinates of point to test */
        sword 		y,
        Rectangle		*boundingRect);					/* returned bounding rectangle,
							 * if point in region */

Determine whether a point lies within the passed region. If the point is not in the region, the return value is true .

Include: graphics.h

GrTestRectInMask()

TestRectReturnType GrTestRectInMask(
        GStateHandle 		gstate, 
        sword 		left, 
        sword 		top,
        sword 		right, 
        sword 		bottom);	

This routine determines whether the passed rectangular area falls within the clipping region.

Structures:

        typedef ByteEnum TestRectReturnType;
TRRT_OUT,			/* rectangle completely out of region */
TRRT_PARTIAL,			/* rectangle partially in region */
TRRT_IN 			/* rectangle completely in region */

Include: graphics.h

GrTestRectInReg()

TestRectReturnType GrTestRectInReg( 
        const Region		* reg			/* pointer to region */
        sword		left,			/* bounds of rectangle to be tested */
        sword		top,
        sword		right,
        sword		bottom);

Determine whether a rectangle lies within the passed region.

Structures:

        typedef ByteEnum TestRectReturnType;
TRRT_OUT,			/* rectangle completely out of region */
TRRT_PARTIAL,			/* rectangle partially in region */
TRRT_IN 			/* rectangle completely in region */

Include: graphics.h

GrTextWidth()

word	GrTextWidth(
        GStateHandle		gstate,				/* subject GState */
        const	Chars	* str,				/* text string to check */
        word		size);				/* maximum number of
						 * characters to check */

Compute the space the passed text string would require in a line of text. Use GrGetTextBounds() to determine the area necessary to render the text.

Include: graphics.h

GrTextWidthWWFixed()

WWFixedAsDWord 	GrTextWidthWWFixed( /* returns width << 16 */
        GStateHandle		gstate,				/* subject GState */
        const	Chars	* str,				/* text string to check */
        word		size)				/* maximum number of
						 * characters to check */

Compute the spacing the passed text string would require in a line of text, accurate to a fraction of a point. Use GrGetTextBounds() to determine the area necessary to render the text.

Include: graphics.h

GrTransform()

XYValueAsDWord 	GrTransform(
        GStateHandle		gstate,				/* subject GState */
        sword 		xCoord,				/* coordinates to transform */
        sword 		yCoord);

Apply the device's transformation to the passed point.

Include: graphics.h

GrTransformDWFixed()

void	GrTransformDWFixed(
        GStateHandle		gstate,				/* subject GState */
        PointDWFixed		* coord);				/* coordinates to transform */

Apply the device's transformation to the passed point.

Include: graphics.h

GrTransformDWord()

void 	GrTransformDWord(
        GStateHandle		gstate,				/* subject GState */
        sdword		xCoord,				/* coordinates to transform */
        sdword		yCoord,
        PointDWord		* deviceCoordinates);
			/* pointer to returned devide coordinates */

Apply the device's transormation to the passed point.

Include: graphics.h

GrTransformWWFixed()

void	GrTransformWWFixed(
        GStateHandle		gstate,				/* subject GState */
        WWFixedAsDWord		xPos,				/* coordinates to transform */
        WWFixedAsDWord		yPos,
        PointWWFixed		* deviceCoordinates);
        			/* pointer to returned devide coordinates */

Apply the device's transormation to the passed point.

Include: graphics.h


Up: GEOS SDK TechDocs | Up | Prev: GrSetTextMode() ... | Next: GrUDivWWFixed() ...