Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <graph.h>
    struct xycoord _FAR _getgtextvector( void );

Description:
    The _getgtextvector function returns the current value of the text
    orientation vector.  This is the direction used when text is displayed
    by the  _outgtext function.

Returns:
    The _getgtextvector function returns, as an xycoord structure, the
    current value of the text orientation vector.

Example:
    #include <conio.h>
    #include <graph.h>

    main()
    {
        struct xycoord old_vec;

        _setvideomode( _VRES16COLOR );
        old_vec = _getgtextvector();
        _setgtextvector( 0, -1 );
        _moveto( 100, 100 );
        _outgtext( "WATCOM Graphics" );
        _setgtextvector( old_vec.xcoord, old_vec.ycoord );
        getch();
        _setvideomode( _DEFAULTMODE );
    }

Classification:
    PC Graphics

Systems:
    DOS, QNX

See Also:
    _registerfonts, _unregisterfonts, _setfont, _getfontinfo, _outgtext,
    _getgtextextent, _setgtextvector

See Also: _registerfonts _unregisterfonts

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson