_getgtextvector

Description

Changes the orientation of font text output.

#include <graph.h>

struct _xycoord __far _getgtextvector( void );

Remarks

The _getgtextvector function gets the current orientation for font text output. The current orientation is used in calls to the _outgtext function.

The text-orientation vector, which determines the direction of font-text rotation on the screen, is returned in a structure of type _xycoord. The xcoord and ycoord members of the structure describe the vector. The text-rotation options are shown below:

(x, y) Text Orientation

(1,0) Horizontal text (default)
(0,1) Rotated 90 degrees counterclockwise
(-1,0) Rotated 180 degrees
(0,-1) Rotated 270 degrees counterclockwise

Return Value

The _getgtextvector function returns the current text-orientation vector in a structure of type _xycoord.

Compatibility

Standards:None

16-Bit:DOS

32-Bit:None

See Also

_getgtextextent, _grstatus, _outgtext, _setfont, _setgtextvector