gr_gettp.gml
来自「开放源码的编译器open watcom 1.6.0版的源代码」· GML 代码 · 共 42 行
GML
42 行
.gfunc gettextposition
.if '&lang' eq 'C' .do begin
struct rccoord _FAR _gettextposition( void );
.do end
.el .do begin
record /rccoord/ function _gettextposition()
.do end
.gfuncend
.desc begin
The &func &routine returns the current output position for text.
This position is in terms of characters, not pixels.
.pp
The current position defaults to the top left corner of the screen,
.coord 1 1 ,
when a new video mode is selected.
It is changed by successful calls to the
.kw _outtext,
.kw _outmem,
.kw _settextposition
and
.kw _settextwindow
&routines..
.pp
Note that the output position for graphics output differs from that
for text output.
The output position for graphics output can be set by use of the
.kw _moveto
&routine..
.desc end
.return begin
The &func &routine returns, as an
.id rccoord
structure, the current output position for text.
.return end
.see begin
.seelist &function. _outtext _outmem _settextposition _settextwindow _moveto
.see end
.grexam begin eg_gettp.&langsuff
.grexam end
.class &grfun
.system
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?