home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / misc / vcb10a.lha / vcb_private.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-29  |  1.1 KB  |  53 lines

  1. #ifndef VCB_PRIVATE_H
  2. #define VCB_PRIVATE_H
  3.  
  4. /*
  5.  *    COPYRIGHT
  6.  *        The material published in this distribution is Freeware.
  7.  *        Copyright ⌐ 1992 remains at the author, Stefan Reisner.
  8.  *        
  9.  *        It may only be passed on unmodified and in its present
  10.  *        composition. In particular, this copyright notice must be
  11.  *        included and must be intact.
  12.  */
  13.  
  14. #include <exec/semaphores.h>
  15. #include <exec/types.h>
  16. #include "vcb.h"
  17.  
  18. /* this structure contains the per-class data */
  19. struct VCBperClassData
  20. {
  21.     Class *VCXClass;
  22. };
  23.  
  24. /* this structure describes an interval by its lower (`left┤) bound and its size (diameter) */
  25. struct interval
  26. {
  27.     int offset, size;
  28. };
  29.  
  30. /* this structure contains all information about one virtual coordinate axis */
  31. struct axis
  32. {
  33.     struct interval real, virtual;
  34.     int total, unit;
  35.     APTR scroller;
  36. };
  37.  
  38. /* the instance data structure of a Virtual Coordinate Box */
  39. struct VCB
  40. {
  41.     struct axis horiz, vert;
  42.     struct SignalSemaphore semaphore;
  43.     struct Hook *exposure;
  44.     ULONG flags;
  45.     int size_width, size_height, dimensioned;
  46. };
  47.  
  48. /* gadget IDs for the scrollers */
  49. #define HORIZ_ID    1
  50. #define VERT_ID        2
  51.  
  52. #endif
  53.