rfdspec.gml

来自「开放源码的编译器open watcom 1.6.0版的源代码」· GML 代码 · 共 652 行 · 第 1/2 页

GML
652
字号
There are no parameters to this device function, and the result
may not be used as a final value.
:H3.FONT_OUTNAME2
:I1.font_outname2
:I2 refid='dfont_2'.dfont_outname2
:XMP.
%FONT_OUTNAME2()
:eXMP.
:P.
The result of this device function is a character value which
represents the :HP1.outname2:eHP1. value of the current font.
The :HP1.outname2:eHP1. value is specified in each font definition.
When the font changes in the document, the value returned by this
function will change accordingly.
There are no parameters to this device function, and the result
may not be used as a final value.
:H3.FONT_RESIDENT
:I1.font_resident
:I2 refid='dfont_r'.dfont_resident
:XMP.
%FONT_RESIDENT()
:eXMP.
:P.
The result of this device function is a character value.
The result value represents the resident status of the current font.
The resident status for each font is specified
in the :HP1.&gml.devicefont:eHP1. block of the device definition.
When the font changes in the document, the value returned by this
function will change accordingly.
The value 'Y' will be returned if the font is resident in the device,
while the value 'N' will be returned if it is not resident.
There are no parameters to this device function, and the result
may not be used as a final value.
:H3.HEX
:I1.hex
:I2 refid='dhex'.dhex
:XMP.
%HEX(123)
:eXMP.
:P.
The required parameter must be numeric.
The result of this device function is a character value
representing the given number in hexadecimal form.
For example, the number value 255 would be returned
as the character value 'FF'.
Note that a dollar sign is not returned as part of the value.
The result may not be used as a final value.
:H3.IMAGE
:I1.image
:I2 refid='dimage'.dimage
:XMP.
%IMAGE("hello")
:eXMP.
:P.
The required parameter must be a character value.
The result of this device function is a character value
representing the given parameter, and is a final value.
The result of this device function may not be used as a parameter
of another device function, and is not translated when sent to
the output device.
:H3.LINE_HEIGHT
:I1.line_height
:I2 refid='dline_h'.dline_height
:XMP.
%LINE_HEIGHT()
:eXMP.
:P.
The result of this device function is a numeric value which
represents the height of the current font.
Adding this value to the :HP1.%line_space:eHP1. value gives
the total height of the line.
The return value is in terms of the device vertical base units.
When the font changes in the document, the value returned by this
function will change accordingly.
There are no parameters to this device function, and the result
may not be used as a final value.
:H3.LINE_SPACE
:I1.line_space
:I2 refid='dline_s'.dline_space
:XMP.
%LINE_SPACE()
:eXMP.
:P.
The result of this device function is a numeric value which
represents the space between lines in of the current font.
Adding this value to the :HP1.%line_height:eHP1. value gives
the total height of the line.
The return value is in terms of the device vertical base units.
When the font changes in the document, the value returned by this
function will change accordingly.
There are no parameters to this device function, and the result
may not be used as a final value.
:H3.PAGES
:I1.pages
:I2 refid='dpages'.dpages
:XMP.
%PAGES()
:eXMP.
:P.
The result of this device function is a numeric value which
represents the number of the current page being output.
This number is not related to the numbering of pages in the
formatted output.
There are no parameters to this device function, and the result
may not be used as a final value.
:H3.PAGE_DEPTH
:I1.page_depth
:I2 refid='dpage_d'.dpage_depth
:XMP.
%PAGE_DEPTH()
:eXMP.
:P.
The result of this device function is a numeric value which
represents the depth of the output page as defined in the device
definition.
There are no parameters to this device function, and the result
may not be used as a final value.
:H3.PAGE_WIDTH
:I1.page_width
:I2 refid='dpage_w'.dpage_width
:XMP.
%PAGE_WIDTH()
:eXMP.
:P.
The result of this device function is a numeric value which
represents the width of the output page as defined in the device
definition.
There are no parameters to this device function, and the result
may not be used as a final value.
:H3.RECORDBREAK
:I1.recordbreak
:I2 refid='drecord'.drecordbreak
:XMP.
%RECORDBREAK()
:eXMP.
:P.
&WGML. forms a line of output for a device.
With some devices, it is desirable to send several of these output
lines together as one record.
With other devices, each line and even some control sequences
must be sent as separate records.
&WGML. assumes that each record may contain several output lines.
The device function :HP2.RECORDBREAK:eHP2. instructs &WGML.
to send the information in the current record to the output
device.
There are no parameters to this device function, and it may not
be used as a parameter of another device function.
:H3.REMAINDER
:I1.remainder
:I2 refid='dremain'.dremainder
:XMP.
%REMAINDER(124,12)
:eXMP.
:P.
The two required parameters must both be numeric.
The remainder from the division of the first parameter
by the second parameter is returned as a numeric value.
The result of this device function may not be used as a
final value.
:H3.SLEEP
:I1.sleep
:I2 refid='dsleep'.dsleep
:XMP.
%SLEEP(30)
:eXMP.
:P.
There is no result returned from this device function.
The required parameter must be a non-negative integer number.
Other device functions are not allowed as parameters to this
device function.
This device function causes &WGML. to suspend document processing
for the specified number of seconds.
This device function may not be used as a parameter of another
device function.
:H3.SUBTRACT
:I1.subtract
:I2 refid='dsubtra'.dsubtract
:XMP.
%SUBTRACT(456,123)
:eXMP.
:P.
The two required parameters must both be numeric.
The difference obtained by subtracting the second parameter
from the first parameter is returned as a numeric value.
The result of this device function may not be used as a
final value.
:H3.TAB_WIDTH
:I1.tab_width
:I2 refid='dtab_wi'.dtab_width
:XMP.
%TAB_WIDTH()
:eXMP.
:P.
When &WGML. uses tabbing to produce white space in a
horizontal direction,
the result of this device function is a numeric value which
represents the amount of space that is being tabbed over.
There are no parameters to this device function, and the result
may not be used as a final value.
:H3.TEXT
:I1.text
:I2 refid='dtext'.dtext
:XMP.
%TEXT("hello")
:eXMP.
:P.
The required parameter must be a character value.
The result of this device function is a character value
representing the given parameter.
The result of this device function is a final value,
and may not be used as a parameter
of another device function. The result is translated
when sent to the output device.
:H3.THICKNESS
:I1.thickness
:I2 refid='dthick'.dthickness
:XMP.
%THICKNESS()
:eXMP.
:P.
The result of this device function is a numeric value which
represents the current thickness of the rule line being drawn.
The value returned by the function is set when drawing horizontal
or vertical lines, and when drawing a box.
There are no parameters to this device function, and the result
may not be used as a final value.
:H3.TIME
:I1.time
:I2 refid='dtime'.dtime
:XMP.
%TIME()
:eXMP.
:P.
The result of this device function is a character value
representing the current time of day.
If the symbol :HP1.&amp.time:eHP1.
:I1.time symbol
is defined, the value
of this symbol is returned.
There are no parameters to this device function, and the result
may not be used as a final value.
:H3.WAIT
:I1.wait
:I2 refid='dwait'.dwait
:I1.pausing
:I2.wait
:XMP.
%WAIT()
:eXMP.
:P.
This device function causes &WGML. to suspend document processing
until the enter key on the keyboard is depressed.
This device function
is used in the device definition, primarily with the pausing
section.
There is no effect when this function is used in a driver definition.
There are no parameters to this device function, and it may
not be used as a parameter of another device function.
:H3.WGML_HEADER
:I1.wgml_header
:I2 refid='dwgml_h'.dwgml_header
:XMP.
%WGML_HEADER()
:eXMP.
:P.
The result of this device function is a character value which
represents the &WGML. header.
The header is the character value which identifies the
&WGML. product and version number.
There are no parameters to this device function, and the result
may not be used as a final value.
:H3 id='xaddr'.X_ADDRESS
:I1.x_address
:I2 refid='dx_addr'.dx_address
:XMP.
%X_ADDRESS()
:eXMP.
:P.
The result of this device function is a numeric value which
represents the
current horizontal(X-axis) position on the output page.
There are no parameters to this device function, and the result
may not be used as a final value.
(See :HDREF refid='devpgad'. for more information).
:H3.X_SIZE
:I1.x_size
:I2 refid='dx_size'.dx_size
:XMP.
%X_SIZE()
:eXMP.
:P.
The result of this device function is a numeric value which
represents the
current horizontal length of a line to be drawn.
The value of this function is set when drawing a box or a horizontal
line.
There are no parameters to this device function, and the result
may not be used as a final value.
:H3 id='yaddr'.Y_ADDRESS
:I1.y_address
:I2 refid='dy_addr'.dy_address
:XMP.
%Y_ADDRESS()
:eXMP.
:P.
The result of this device function is a numeric value which
represents the
current vertical(Y-axis) position on the output page.
There are no parameters to this device function, and the result
may not be used as a final value.
(See :HDREF refid='devpgad'. for more information).
:H3.Y_SIZE
:I1.y_size
:I2 refid='dy_size'.dy_size
:XMP.
%Y_SIZE()
:eXMP.
:P.
The result of this device function is a numeric value which
represents the
current vertical length of a line to be drawn.
The value of this function is set when drawing a box or a horizontal
line.
There are no parameters to this device function, and the result
may not be used as a final value.

⌨️ 快捷键说明

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