gr_grtxt.gml

来自「开放源码的编译器open watcom 1.6.0版的源代码」· GML 代码 · 共 51 行

GML
51
字号
.gfuncw grtext
.if '&lang' eq 'C' .do begin
short _FAR _grtext( short x, short y,
                    char _FAR *text );

short _FAR _grtext_w( double x, double y,
                      char _FAR *text );
.do end
.el .do begin
integer*2 function _grtext( x, y, text )
integer*2 x, y
character*(*) text

integer*2 function _grtext_w( x, y, text )
double precision x, y
character*(*) text
.do end
.gfuncend
.desc begin
The &func &routines display a character string.
The &func &routine uses the view coordinate system.
The &func2 &routine uses the window coordinate system.
.np
The character string
.arg text
is displayed at the point
.coord x y .
The string must be terminated by a null character
.if '&lang' eq 'C' .do begin
('\0').
.do end
.el .do begin
(char(0)).
.do end
The text is displayed in the current color using the current text
settings.
.im gr_text
.desc end
.return begin
.im gr_retdr text
.return end
.see begin
.seelist &function. _outtext _outmem _outgtext _setcharsize _settextalign _settextpath _settextorient _setcharspacing
.see end
.grexam begin eg_grtxt.&langsuff
.grexam output
.picture eg_grtxt
.grexam end
.class &grfun
.system

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?