home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / misc / vcb.lha / vcb / vcb_private.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-15  |  801 b   |  43 lines

  1. #ifndef VCB_PRIVATE_H
  2. #define VCB_PRIVATE_H
  3.  
  4. #include <exec/semaphores.h>
  5. #include <exec/types.h>
  6. #include "vcb.h"
  7.  
  8. /* this structure contains the per-class data */
  9. struct VCBperClassData
  10. {
  11.     Class *VCXClass;
  12. };
  13.  
  14. /* this structure describes an interval by its lower (`left┤) bound and its size (diameter) */
  15. struct interval
  16. {
  17.     int offset, size;
  18. };
  19.  
  20. /* this structure contains all information about one virtual coordinate axis */
  21. struct axis
  22. {
  23.     struct interval real, virtual;
  24.     int total, unit;
  25.     APTR scroller;
  26. };
  27.  
  28. /* the instance data structure of a Virtual Coordinate Box */
  29. struct VCB
  30. {
  31.     struct axis horiz, vert;
  32.     struct SignalSemaphore semaphore;
  33.     struct Hook *exposure;
  34.     ULONG flags;
  35.     int size_width, size_height;
  36. };
  37.  
  38. /* gadget IDs for the scrollers */
  39. #define HORIZ_ID    1
  40. #define VERT_ID        2
  41.  
  42. #endif
  43.