gr_movto.gml
来自「开放源码的编译器open watcom 1.6.0版的源代码」· GML 代码 · 共 46 行
GML
46 行
.gfuncw moveto
.if '&lang' eq 'C' .do begin
struct xycoord _FAR _moveto( short x, short y );
struct _wxycoord _FAR _moveto_w( double x, double y );
.do end
.el .do begin
record /xycoord/ function _moveto( x, y )
integer*2 x, y
record /_wxycoord/ function _moveto_w( x, y )
double precision x, y
.do end
.gfuncend
.desc begin
The &func &routines set the current output position for graphics.
The &func &routine uses the view coordinate system.
The &func2 &routine uses the window coordinate system.
.np
The current output position is set to be
the point at the coordinates
.coord x y .
Nothing is drawn by the &routine..
The
.kw _lineto
&routine uses the current output position as the starting point
when a line is drawn.
.pp
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
.kw _settextposition
&routine..
.desc end
.return begin
The &func &routines return the previous value of the
output position for graphics.
.return end
.see begin
.seelist &function. _getcurrentposition _lineto _settextposition
.see end
.grexam begin eg_movto.&langsuff
.grexam end
.class &grfun
.system
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?