home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 38.ddi / root.3 / usr / add-on / include / track.h / track.h
Encoding:
C/C++ Source or Header  |  1990-10-02  |  1.3 KB  |  53 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1988 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ident    "@(#)/usr/add-on/include/track.h.sl 1.2 5.0 08/27/90 47774 AT&T-USO 1.3"
  11. #ifndef _TRACK
  12. #define _TRACK
  13.  
  14. #include "sys/window.h"
  15.  
  16. #define T_BEGIN        0x1
  17. #define T_INPUT        0x2
  18. #define T_END        0x4
  19.  
  20. #define TERR_OK        0
  21. #define TERR_SYS    -1        /* same as EOF in <stdio.h> */
  22. #define TERR_IOCTL    -2
  23. #define TERR_WRITE    -3        /* if a write fails    */
  24.  
  25. struct icon {            /* Put here to keep lint quite */
  26.   int a;
  27. };
  28.  
  29. typedef struct
  30. {
  31.     unsigned short    ti_x;        /* x position        */
  32.     unsigned short    ti_y;        /* y position        */
  33.     unsigned short    ti_w;        /* width        */
  34.     unsigned short    ti_h;        /* height        */
  35.     struct icon    *ti_icon;    /* icon            */
  36.     int        ti_val;        /* user value        */
  37. } tkitem_t;
  38.  
  39. typedef struct
  40. {
  41.     char        t_flags;    /* flags        */
  42.     char        t_scalex;    /* x & y scaling    */
  43.     char        t_scaley;
  44.     short        t_lastx;
  45.     short        t_lasty;
  46.     struct icon    *t_bicon;    /* background icon    */
  47.     struct umdata    t_umdata;    /* save the mouse data    */
  48.     tkitem_t    *t_tkitems;    /* ptr to items        */
  49.     tkitem_t    *t_curi;    /* ptr to current item    */
  50. } track_t;
  51.  
  52. #endif /*_TRACK*/
  53.