FontID GrGetDefFontID(
dword * sizeSHL16); /* pointer to buffer for returned size */
Get the system default font (including size).
Include: font.h
GStateHandle GrGetExclusive(
GeodeHandle videoDriver);
Use this routine to find out which GState, if any, has grabbed the video exclusive.
Include: graphics.h
FontID GrGetFont(
GStateHandle gstate, /* subject GState */
WWFixedAsDWord * pointSize); /* pointer to buffer for
* returned point size */
Get the passed GState's current font, including point size.
Include: graphics.h
FontID GrGetFontName(
FontID id, /* ID of font */
const char * name); /* buffer for returned name string */
Get the string name of a font. Note that if the returned
FontID
is zero, then the font was not found. The name string buffer should be a least FID_NAME_LEN in size.
Include: font.h
FontWeight GrGetFontWeight(
GStateHandle gstate); /* GState containing the font */
Get the current font weight set for the passed GState.
Include: font.h
FontWidth GrGetFontWidth(
GStateHandle gstate); /* GState containing the font */
Get the current font width set for the passed GState.
Include: font.h
void GrGetGStringBounds(
GStringHandle source, /* GString to be checked */
GStateHandle dest, /* handle of GState to use */
GSControl flags, /* GSControl flags */
Rectangle * bounds); /* returned bounds of GState */
This routine returns the coordinate bounds of the
source
GString drawn at the current position in the GString. The
dest
GState will be used if passed; to have no GState restrictions, pass a null handle. The bounds of the smallest containing rectangle will be returned in the structure pointed to by
bounds
.
Include: gstring.h
void GrGetGStringBoundsDWord(
Handle gstring, /* GString to be checked */
GStateHandle gstate, /* handle of GState to use */
GSControl flags, /* GSControl flags */
RectDWord * bounds); /* returned bounds of GState */
This routine behaves as
GrGetGStringBounds()
, but has been alterred to work with 32-bit graphics spaces.
This routine returns the coordinate bounds of aGString drawn at the current position in the GString. The
gstate
GState will be used if passed; to have no GState restrictions, pass a null handle. The bounds of the smallest containing rectangle will be returned in the structure pointed to by
bounds
.
Include: gstring.h
GStringElement GrGetGStringElement(
GStateHandle gstate, /* handle of GString's GState */
void * buffer, /* pointer to return buffer */
word bufSize, /* size of return buffer */
word * elementSize, /* size of GString element */
void ** pointerAfterData); /* pointer to pointer to
* next element in GString */
Extract the next element from a graphics string. The opcode is returned explicitly. The routine's data can be returned in a buffer.
Include: gstring.h
XYValueAsDWord GrGetHugeBitmapSize(
VMFileHandle vmFile,
VMBlockHandle vmBlk);
Returns the dimensions (horizontal and vertical) of the passed huge bitmap, as referenced by a VM block and file.
Include: graphics.h
void GrGetInfo(
GStateHandle gstate, /* GState to get information about */
GrInfoTypes type, /* type of information to get */
void * data); /* buffer for returned information */
Get the private data, window handle, or pen position associated with the GState.
Structures:
typedef enum {
GIT_PRIVATE_DATA,
GIT_WINDOW,
GIT_PEN_POS
} GrInfoType
Include: graphics.h
RGBColorAsDWord GrGetLineColor(
GStateHandle gstate); /* subject GState */
Get the color used when drawing lines.
Include: graphics.h
ColorMapMode GrGetLineColorMap(
GStateHandle gstate); /* subject GState */
Get the mode used when drawing lines in an unavailable color.
Include: graphics.h
LineEnd GrGetLineEnd(
GStateHandle gstate); /* subject GState */
Get the end used when drawing lines.
Include: graphics.h
LineJoin GrGetLineJoin(
GStateHandle gstate); /* subject GState */
Get the join used when drawing corners.
Include: graphics.h
GEOS SDK TechDocs
|
|
GrGetAreaColor() ...
|
GrGetLineMask() ...