•  Back 
  •  VDI Inquire 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-Filevql_attributes()
vqm_attributes()
vqf_attributes()
vqt_attributes()                                                        VDI

Syntax

VOID vqt_attributes( handle, attr )
WORD handle;
WORD *attr;

Function      vqt_attributes() returns information regarding the current
              attributes which affect text output.

Opcode        38

Availability  Supported by all drivers.

Parameters    handle specifies a valid workstation handle. attr points to
              an array containing 10 WORDs which are filled in upon
              function exit as follows:

              attr[x]   Meaning

                0       Text face (see vst_font() ).

                1       Text color (see vst_color() ).

                2       Text rotation (see vst_rotation() ).

                3       Horizontal alignment (see vst_alignment() ).

                4       Vertical alignment (see vst_alignment() ).

                5       Writing mode (see vswr_mode() ).

                6       Character width (see vst_height() ).

                7       Character height (see vst_height() ).

                8       Character cell width (see vst_height() ).

                9       Character cell height (see vst_height() ).

Binding       contrl[0] = 38;
              contrl[1] = contrl[3] = 0;
              contrl[6] = handle;

              vdi();

              attr[0] = intout[0];
              attr[1] = intout[1];
              attr[2] = intout[2];
              attr[3] = intout[3];
              attr[4] = intout[4];
              attr[5] = intout[5];
              attr[6] = ptsout[0];
              attr[7] = ptsout[1];
              attr[8] = ptsout[2];
              attr[9] = ptsout[3];

Comments      The values pertaining to character and cell width and have
              limited usefulness as they are only constant with
              non-proportional fonts.

See Also      vql_attributes(), vqm_attributes(), vqf_attributes()

Group         VDI Inquire