ExportTextProc
Called to draw a text.
typedef GSErr GX_CALL ExportTextProc ( void* userDataPtr, short pen, FaceStyle face, AnchorPos anchor, char* fontname, Coord loc, double angle, float size, float slant, char* content, long* longvals, short* shrtvals, );
Parameters
- userDataPtr
- The user-defined data set in the caller function.
- pen
- The attribute index of the used pen.
- face
- The style of the text. (See FaceStyle)
- anchor
- Kind of text centre (1..9). (See AnchorPos)
- fontname
- The name of the font.
- loc
- The position of the anchor in the model in meters.
- angle
- The declination of the text baseline in degrees.
- size
- The size of the letters on the paper in millimeters.
- slant
- Slant of text letters in radians (pi/2 is plain text).
- content
- The content of the text (NULL terminated string).
- longvals
- Undefined, should be omitted.
- shrtvals
- Undefined, should be omitted.
Return Values
If the function succeeds, the return value is NoError. If the function fails, the return value is the error code.
Remarks
The text color and determined by the pen attribute.
Requirements
- Version: API 10.0 or later, ModelerGraphics 8 or later
- Header: G2DProcs.h