
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
#include <graph.h>
struct xycoord _FAR _moveto( short x, short y );
struct _wxycoord _FAR _moveto_w( double x, double y );
Description:
The _moveto functions set the current output position for graphics. The
_moveto function uses the view coordinate system. The _moveto_w
function uses the window coordinate system.
The current output position is set to be the point at the coordinates
(x,y). Nothing is drawn by the function. The _lineto function uses
the current output position as the starting point when a line is drawn.
Note that the output position for graphics output differs from that for
text output. The output position for text output can be set by use of
the _settextposition function.
Returns:
The _moveto functions return the previous value of the output position
for graphics.
Example:
#include <conio.h>
#include <graph.h>
main()
{
_setvideomode( _VRES16COLOR );
_moveto( 100, 100 );
_lineto( 540, 100 );
_lineto( 320, 380 );
_lineto( 100, 100 );
getch();
_setvideomode( _DEFAULTMODE );
}
Classification:
PC Graphics
Systems:
_moveto - DOS, QNX
_moveto_w - DOS, QNX
See Also:
_getcurrentposition, _lineto, _settextposition
See Also: _settextposition
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson