AT&T UNIX™PC Unix System V Users Manual - tenox
AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox
TRACK (3T) (AT&T UNIX PC only ) TRACK (3T) appropriate character scale values. Thus, values of 0,0 for the scaling parameters specify that all user-supplied coordinates are in characters. T_lastx and t_lasty are used internally by track to record the last known x,y position of the mouse. In particular, when track � returns to the caller, lastx and tasty will contain the position 1 . which caused the return. T_bicon is an optional icon to be used whenever the mouse is located in the background (not in any rectangle). T_umdata is used internally by track to record the state of the mouse parameters on T_BEGIN and to restore them on T_END. t_tkitems points to an array of track items (rectangles) which are described below. The list is terminated by a rectangle whose x, y, width, and height are all zero. T_curi is a pointer to the current track item. On call, track assumes the mouse is located within the rectangle pointed to by curi. On return, curi points to the new current rectangle. A value of 0 means the background. T_curi is set to 0 on T_BEGIN. Each track item (rectangle) has the following structure: typedef struct { unsigned short unsigned short unsigned short unsigned short struct icon int } tkitem_t; ti_x; ti_y; ti_w; ti_h; *ti_icon; ti_val; /* x position *I /* y position *I /* width *I /* height * I /* icon * I /* user value *I The first four parameters determine the location and size of the rectangle. 0,0 is the upper-left corner. Each of these parameters is scaled by the scaling factors. Ti_icon points to an optional icon to be associated with this rectangle. Whenever the mouse is located within the rectangle, this particular icon is displayed. Ti_val is a user-supplied value which is not used in the tracking process. FILES lusr lincludeltrack.h lusr lincludelsyslwindow .h lusr lincludelkcodes.h SEE ALSO tam(3T), window(7). DIAGNOSTICS Track returns a key code (see kcodes.h) which determines what key was pressed. 'Mouse' is returned when a mouse event - 2-
TRACK (3T) (AT&T UNIX PC only ) TRACK (3T ) occurred-the current item points to the track item in which the mouse is located (0 means the background). The button state and wakeup reason are also recorded. If a keyboard key is the cause of the return, these values are not necessarily updated. Track can also return TERR_IOCTL if a system ioctl fails, or TERR_OK when no error occurred on a T_BEGIN or T_END operation where no input was performed. - 3 -
- Page 962 and 963: I� ·-.---·
- Page 964 and 965: ' ' .} ' 1 . ' .____.,.:
- Page 966 and 967: � ·�
- Page 968 and 969: REGCMP {3X) REGCMP {3X) ( . . . ) P
- Page 970 and 971: SCANF(3S) u 0 X SCANF(3S) an unsign
- Page 973 and 974: � I SETBUF (3S) SETBUF (3S) NAME
- Page 975 and 976: SETJMP (3C) SETJMP ( 3C ) NAME setj
- Page 977 and 978: SINII ( 3M ) SINH ( 3M ) NAME sinh,
- Page 979 and 980: SLEEP (3C) SLEEP ( 3C ) NAME sleep
- Page 981: SPUTL ( 3X ) SPUTL ( 3X ) NAME sput
- Page 985: STDI0 ( 3S ) ( AT&T UNIX PC Only )
- Page 989 and 990: STRING ( 3C ) STRING (3C) NAME strc
- Page 991 and 992: STRTOD (3C) STRTOD (3C) NAME strtod
- Page 993: STRTOL ( 3C ) STRTOL ( 3C ) NAME st
- Page 996 and 997: C) / I I I I I I I I I () �� /
- Page 998 and 999: n "--- --'•
- Page 1000 and 1001: TAM (3T) (AT&T UNIX PC only ) int w
- Page 1002 and 1003: TAM (3T) (AT&T UNIX PC only ) TAM(3
- Page 1004 and 1005: TAM (3T) wputc() wputs() wprintf()
- Page 1006 and 1007: TAM (3T) (AT&T UNIX PC only ) TAM(3
- Page 1008 and 1009: I I I I I I I II I I I I � r"j I
- Page 1010 and 1011: TMPNAM (3S) TMPNAM (3S) SEE ALSO cr
- Page 1015: TRIG ( 3M ) TRIG ( 3M) NAME sin, co
- Page 1018 and 1019: TSEARCH ( 3C ) TSEARCH ( 3C ) data
- Page 1021: TTYNAME ( 3C ) TTYNAME ( 3C ) NAME
- Page 1025 and 1026: UNGETC ( 3S ) UNGETC ( 3S ) NAME un
- Page 1027 and 1028: VPRINTF ( 3S ) VPRINTF ( 3S ) NAME
- Page 1029 and 1030: WIND ( 3T ) ( AT&T UNIX PC only ) W
- Page 1031 and 1032: WRASTOP ( 3T ) ( AT&T UNIX PC only
- Page 1033: INTRO ( 4) INTRO ( 4) NAME intro -
- Page 1036 and 1037: A.OUT ( 4) A.OUT ( 4) data segment
- Page 1038 and 1039: A.OUT (4) A.OUT (4) char n_numaux;
- Page 1041 and 1042: ADF ( 4) (AT&T UNIX PC only ) ADF (
- Page 1043 and 1044: ADF ( 4 ) (AT&T UNIX PC only ) \ \
- Page 1045 and 1046: ADF ( 4) (AT&T UNIX PC only ) FORMA
- Page 1047 and 1048: ADF (4) (AT&T UNIX PC only ) ADF (4
- Page 1049 and 1050: ADF (4) (AT&T UNIX PC only ) ADF (
- Page 1051 and 1052: ADF ( 4) (AT&T UNIX PC only ) ADF (
- Page 1053 and 1054: ADF ( 4 ) (AT&T UNIX PC only ) Toke
- Page 1055 and 1056: AR( 4 ) AR ( 4) NAME ar - common ar
- Page 1057: CHECKLIST ( 4 ) CHECKLIST ( 4 ) NAM
- Page 1060 and 1061: I I I I I I II I I I I I I I I I I
TRACK (3T) (AT&T UNIX PC only ) TRACK (3T)<br />
appropriate character scale values. Thus, values of 0,0 for the<br />
scaling parameters specify that all user-supplied coordinates are in<br />
characters.<br />
T_lastx and t_lasty are used internally by track to record the last<br />
known x,y position of the mouse. In particular, when track �<br />
returns to the caller, lastx and tasty will contain the position 1 .<br />
which caused the return.<br />
T_bicon is an optional icon to be used whenever the mouse is<br />
located in the background (not in any rectangle).<br />
T_umdata is used internally by track to record the state of the<br />
mouse parameters on T_BEGIN and to restore them on T_END.<br />
t_tkitems points to an array of track items (rectangles) which are<br />
described below. The list is terminated by a rectangle whose x, y,<br />
width, and height are all zero.<br />
T_curi is a pointer to the current track item. On call, track<br />
assumes the mouse is located within the rectangle pointed to by<br />
curi. On return, curi points to the new current rectangle. A<br />
value of 0 means the background. T_curi is set to 0 on<br />
T_BEGIN.<br />
Each track item (rectangle) has the following structure:<br />
typedef struct<br />
{<br />
unsigned short<br />
unsigned short<br />
unsigned short<br />
unsigned short<br />
struct icon<br />
int<br />
} tkitem_t;<br />
ti_x;<br />
ti_y;<br />
ti_w;<br />
ti_h;<br />
*ti_icon;<br />
ti_val;<br />
/* x position *I<br />
/* y position *I<br />
/* width *I<br />
/* height * I<br />
/* icon * I<br />
/* user value *I<br />
The first four parameters determine the location and size of the<br />
rectangle. 0,0 is the upper-left corner. Each of these parameters<br />
is scaled by the scaling factors.<br />
Ti_icon points to an optional icon to be associated with this rectangle.<br />
Whenever the mouse is located within the rectangle, this<br />
particular icon is displayed.<br />
Ti_val is a user-supplied value which is not used in the tracking<br />
process.<br />
FILES<br />
lusr lincludeltrack.h<br />
lusr lincludelsyslwindow .h<br />
lusr lincludelkcodes.h<br />
SEE ALSO<br />
tam(3T), window(7).<br />
DIAGNOSTICS<br />
Track returns a key code (see kcodes.h) which determines what<br />
key was pressed. 'Mouse' is returned when a mouse event<br />
- 2-