home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / uccs / root.14 / udk / usr / add-on / include / track.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-19  |  1.5 KB  |  54 lines

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