#ifndef _TRACK #define _TRACK #sccs "@(#)tam:track.h 1.1" #include #define T_BEGIN 0x1 #define T_INPUT 0x2 #define T_END 0x4 #define TERR_OK 0 #define TERR_SYS -1 /* same as EOF in */ #define TERR_IOCTL -2 #define TERR_WRITE -3 /* if a write fails */ typedef struct { unsigned short ti_x; /* x position */ unsigned short ti_y; /* y position */ unsigned short ti_w; /* width */ unsigned short ti_h; /* height */ struct icon *ti_icon; /* icon */ int ti_val; /* user value */ } tkitem_t; typedef struct { char t_flags; /* flags */ char t_scalex; /* x & y scaling */ char t_scaley; short t_lastx; short t_lasty; struct icon *t_bicon; /* background icon */ struct umdata t_umdata; /* save the mouse data */ tkitem_t *t_tkitems; /* ptr to items */ tkitem_t *t_curi; /* ptr to current item */ } track_t; #endif _TRACK