Up: GEOS SDK TechDocs | Up | Prev: GrGetLineMask() ... | Next: GrInitDefaultTransform() ...

GrGetPtrRegBounds()

word	GrGetPtrRegBounds( /* Returns size of Region data struct. */
        const	Region	* reg,				/* pointer to region */
        Rectangle		* bounds);				/* returned bounds of region */

Get the bounds of the passed region.

Include: graphics.h

GrGetSubscriptAttr()

ScriptAttrAsWord GrGetSubscriptAttr(
        GStateHandle gstate);					/* subject GState */

Get the GState's subscript drawing attributes. The high byte of the return value is the percentage of the font size for the subscript; the low byte is the percentage of the font size from the top at which the character gets drawn.

Include: font.h

GrGetSuperscriptAttr()

ScriptAttrAsWord GrGetSuperscriptAttr(
        GStateHandle gstate);					/* subject GState */

Get the GState's superscript drawing attributes. The high byte of the return value is the percentage of the font size for the superscript; the low byte is the percentage of the font size from the bottom at which the character gets drawn.

Include: font.h

GrGetTextBounds()

Boolean	GrGetTextBounds(
        GStateHandle		gstate,			/* subject GState */
        const char		* str,			/* text string */
        word 		xpos,			/* position where text would be drawn */
        word 		ypos,
        word 		count,			/* max number of characters to check */
        Rectangle 		* bounds);				/* returned bounding rectangle */

Get the bounds required to draw the passed text. If the passed count argument is zero, the string is assumed to be null-terminated.

Include: graphics.h

GrGetTextColor()

RGBColorAsDWord GrGetTextColor(
        GStateHandle gstate);				/* subject GState */

Get the color used when drawing text.

Include: graphics.h

GrGetTextColorMap()

ColorMapMode 	GrGetTextColorMap(
        GStateHandle gstate);				/* subject GState */

Get the mode used when drawing text in an unavailable color.

Include: graphics.h

GrGetTextMask()

SystemDrawMask 	GrGetTextMask(
        GStateHandle		gstate,			/* subject GState */
        DrawMask		* dm);			/* returned custom mask, if any */

Get the draw mask used when drawing text.The dm argument should point to a buffer capable of holding at least eight bytes to get the bit-pattern of the mask; otherwise dm should be NULL. The returned buffer is the 8x8 bit pattern: each byte represents a row of the pattern, and the bytes are ordered from top row to bottom.

Include: graphics.h

GrGetTextMode()

TextMode	GrGetTextMode(
        GStateHandle gstate);				/* subject GState */

Get the text mode, including information about the vertical offset used when drawing text.

Include: graphics.h

GrGetTextPattern()

GraphicPattern 	GrGetTextPattern(
        GStateHandle	 	gstate,						/* subject GState */
        const MemHandle		* customPattern,						/* pointer to returned handle
								 * of block containing the
								 * returned pattern */
        word		* customSize);						/* size of returned block */

Get the graphics pattern used when drawing text.

Include: graphics.h

GrGetTextSpacePad()

WWFixedAsDWord GrGetTextSpacePad(
        GStateHandle gstate);				/* subject GState */

Get the space pad used when drawing strings of text.

Include: graphics.h

GrGetTextStyle()

TextStyle 	GrGetTextStyle(
        GStateHandle gstate);					/* subject GState */

Get the style used when drawing text.

Include: graphics.h

GrGetTrackKern()

word 	GrGetTrackKern(
        GStateHandle 	gstate);				/* subject GState */

Get the track kerning used when drawing strings of text.

Include: graphics.h

GrGetTransform()

void	GrGetTransform(
        GStateHandle		gstate,			/* subject GState */
        TransMatrix		* tm);			/* pointer to returned TransMatrix */

Get the current coordinate transformation, expressed as a matrix.

Include: graphics.h

GrGetWinBounds()

void	GrGetWinBounds(
        GStateHandle		gstate,				/* subject GState */
        Rectangle		* bounds);				/* returned window bounds */

Get the bounds of the GState's associated window.

Include: graphics.h

GrGetWinBoundsDWord()

void	GrGetWinBoundsDWord(
        GStateHandle		gstate,				/* subject GState */
        RectDWord		* bounds);				/* returned window bounds */

Get the bounds of the GState's associated window, accurate to a fraction of a point.

Include: graphics.h

GrGetWinHandle()

WindowHandle GrGetWinHandle(
        GStateHandle gstate);					/* subject GState */

Get the handle of the GState's associated window.

Include: graphics.h

GrGrabExclusive()

GStateHandle GrGrabExclusive(
        GeodeHandle		videoDriver,				/* NULL for default */
        GStateHandle		gstate);				/* subject GState */

Start drawing exclusively to a video driver.

Include: graphics.h


Up: GEOS SDK TechDocs | Up | Prev: GrGetLineMask() ... | Next: GrInitDefaultTransform() ...