Up: GEOS SDK TechDocs | Up | Prev: GrEndGString() ... | Next: GrGetAreaColor() ...

GrFillEllipse()

void	GrFillEllipse(
        GStateHandle		gstate,				/* GState to draw to */
        sword		left,				/* Bounds of bounding rectangle */
        sword		top,
        sword		right,
        sword		bottom);

Draw a filled ellipse. The ellipse's dimensions are defined by its bounding box.

Include: graphics.h

GrFillPath()

void	GrFillPath(
        GStateHandle		gstate,				/* GState to draw to */
        RegionFillRule		rule);				/* ODD_EVEN or WINDING */

Fill an area whose outline is defined by the GState's path.

Include: graphics.h

GrFillPolygon()

void	GrFillPolygon(
        GStateHandle		gstate,					/* GState to draw to */
        RegionFillRule		windingRule,					/* ODD_EVEN or WINDING */
        const	Point	* points,					/* array of points in polygon */
        word		numPoints);					/* number of points in array */

This routine draws a filled polygon. The polygon is defined by the passed array of points.

Include: graphics.h

GrFillRect()

void	GrFillRect(
        GStateHandle		gstate,				/* GState to draw to */
        sword		left,				/* bounds of rectangle */
        sword		top,
        sword		right,
        sword		bottom);

Draw a filled rectangle.

Include: graphics.h

GrFillRectTo()

void	GrFillRectTo(
        GStateHandle		gstate,				/* GState to draw to */
        sword		x,				/* opposite corner of rectangle */
        sword		y);

Draw a filled rectangle. The current position will define one of the corners.

Include: graphics.h

GrFillRoundRect()

void	GrFillRoundRect(
        GStateHandle		gstate,					/* GState to draw to */
        sword		left,					/* bounds of rectangle */
        sword		top,
        sword		right,
        sword		bottom
        word 		cornerRadius);					/* radius of corner rounding */

Draw a filled rounded rectangle.

Include: graphics.h

GrFillRoundRectTo()

void	GrFillRoundRectTo(
        GStateHandle		gstate,				/* GState to draw to */
        sword		x,				/* opposite corner of rectangle */
        sword		y
        word 		cornerRadius);					/* radius of corner roundings */

Draw a filled rounded rectangle, using the current position to define one corner of the bounding rectangle.

Include: graphics.h

GrFindNearestPointsize()

Boolean	GrFindNearestPointsize( /* If false, then FontID invalid */
        FontID 		id,					/* fond ID */
        dword		sizeSHL16,					/* point size */
        TextStyle 		styles,					/* style */
        TextStyle 		* styleFound,						/* buffer for style */
        dword		* sizeFoundSHL16);						/* buffer for size */

Find the nearest available point size for a font. If the font passed in id exists, then styleFound will point to the styles available and sizeFoundSHL16 will point to the nearest point size to that passed. If the font is not found, the return valued will be true .

Include: font.h

GrFontMetrics()

dword	GrFontMetrics(
        GStateHandle		gstate,				/* subject GState */
        GFM_info		info);				/* Type of information to return */

Get metrics information about a font. It returns the requested information based on the info parameter.

Structures:

typedef enum /* word */ {
	GFMI_HEIGHT,				/* return = val << 16 */
	GFMI_MEAN,				/* return = val << 16 */
	GFMI_DESCENT,				/* return = val << 16 */
	GFMI_BASELINE,				/* return = val << 16 */
	GFMI_LEADING,				/* return = val << 16 */
	GFMI_AVERAGE_WIDTH,				/* return = val << 16 */
	GFMI_ASCENT,				/* return = val << 16 */
	GFMI_MAX_WIDTH,				/* return = val << 16 */
	GFMI_MAX_ADJUSTED_HEIGHT,				/* return = val << 16 */
	GFMI_UNDER_POS,				/* return = val << 16 */
	GFMI_UNDER_THICKNESS, 				/* return = val << 16 */
	GFMI_ABOVE_BOX,				/* return = val << 16 */
	GFMI_ACCENT,				/* return = val << 16 */
	GFMI_MANUFACTURER,				/* return = val */
	GFMI_KERN_COUNT, 				/* return = Char */
	GFMI_FIRST_CHAR, 				/* return = Char */
	GFMI_LAST_CHAR, 				/* return = FontMaker */
	GFMI_DEFAULT_CHAR,				/* return = Char */
	GFMI_STRIKE_POS,				/* return = Char */
	GFMI_BELOW_BOX, 				/* return = Char */
	GFMI_HEIGHT_ROUNDED				/* return = Char */
	GFMI_DESCENT_ROUNDED, 				/* return = Char */
	GFMI_BASELINE_ROUNDED, 				/* return = Char */
	GFMI_LEADING_ROUNDED, 				/* return = Char */
	GFMI_AVERAGE_WIDTH_ROUNDED,				/* return = Char */
	GFMI_ASCENT_ROUNDED, 				/* return = Char */
	GFMI_MAX_WIDTH_ROUNDED, 				/* return = Char */
	GFMI_MAX_ADJUSTED_HEIGHT_ROUNDED, /* ret = Char */
	GFMI_UNDER_POS_ROUNDED, 				/* return = Char */
	GFMI_UNDER_THICKNESS_ROUNDED, /* return = Char */
	GFMI_ABOVE_BOX_ROUNDED, 				/* return = Char */
	GFMI_ACCENT_ROUNDED=, 				/* return = Char */
	GFMI_STRIKE_POS_ROUNDED,				/* return = Char */
	GFMI_BELOW_BOX_ROUNDED				/* return = Char */
} GFM_info; 

Include: font.h


Up: GEOS SDK TechDocs | Up | Prev: GrEndGString() ... | Next: GrGetAreaColor() ...