home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / Includes_and_Autodocs_3.5 / include / gadgets / speedbar.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-19  |  3.9 KB  |  151 lines

  1. #ifndef GADGETS_SPEEDBAR_H
  2. #define GADGETS_SPEEDBAR_H
  3. /*
  4. **    $VER: speedbar.h 44.1 (19.10.1999)
  5. **    Includes Release 44.1
  6. **
  7. **  Definitions for the speedbar.gadget BOOPSI class
  8. **
  9. **    (C) Copyright 1987-1999 Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. /*****************************************************************************/
  14.  
  15. #ifndef REACTION_REACTION_H
  16. #include <reaction/reaction.h>
  17. #endif
  18.  
  19. #ifndef INTUITION_GADGETCLASS_H
  20. #include <intuition/gadgetclass.h>
  21. #endif
  22.  
  23. /*****************************************************************************/
  24.  
  25. /* Defines for the speedbar node attributes.
  26.  */
  27. #define SBNA_Dummy        (TAG_USER+0x010000)
  28.  
  29. #define SBNA_Left        (SBNA_Dummy+1)
  30.     /* (WORD) left offset of button. */
  31.  
  32. #define SBNA_Top        (SBNA_Dummy+2)
  33.     /* (WORD) top offset of button. */
  34.  
  35. #define SBNA_Width        (SBNA_Dummy+3)
  36.     /* (WORD) width of button. */
  37.  
  38. #define SBNA_Height        (SBNA_Dummy+4)
  39.     /* (WORD) height of button. */
  40.  
  41. #define SBNA_UserData    (SBNA_Dummy+5)
  42.     /* (APTR) user data, have a blast. */
  43.  
  44. #define SBNA_Enabled    (SBNA_Dummy+6)
  45.     /* (BOOL) Is this button enabled?. */
  46.  
  47. #define SBNA_Spacing    (SBNA_Dummy+7)
  48.     /* (WORD) spacing from last button. */
  49.  
  50. #define SBNA_Highlight    (SBNA_Dummy+8)
  51.     /* (WORD) highlight mode (see below). */
  52.  
  53. #define SBNA_Image        (SBNA_Dummy+9)
  54.     /* (strcut Image *) render image pointer. */
  55.  
  56. #define SBNA_SelImage    (SBNA_Dummy+10)
  57.     /* (strcut Image *) select image pointer. */
  58.  
  59. #define SBNA_Help        (SBNA_Dummy+11)
  60.     /* (UBYTE *) optional help text message pointer. */
  61.  
  62. #define SBNA_Toggle        (SBNA_Dummy+12)
  63.     /* (BOOL) Make button a toggle button */
  64.  
  65. #define SBNA_Selected    (SBNA_Dummy+13)
  66.     /* (BOOL) Sets state of a toggle button */
  67.  
  68. #define SBNA_MXGroup    (SBNA_Dummy+14)
  69.     /* (BOOL) Mutual Exclusion Group Button, implies SBNA_Toggle */
  70.  
  71. #define SBNA_Disabled    (SBNA_Dummy+15)
  72.     /* (BOOL) Disable this button, ghost pattern to be rendered */
  73.  
  74. /* Possible highlight modes.
  75.  */
  76. #define SBH_NONE        0
  77. #define SBH_BACKFILL    1
  78. #define SBH_RECESS        2
  79. #define SBH_IMAGE        3
  80.  
  81. /*****************************************************************************/
  82.  
  83. /* Additional attributes defined by the speedbar.gadget class
  84.  */
  85. #define SPEEDBAR_Dummy            (REACTION_Dummy + 0x13000)
  86.  
  87. #define    SPEEDBAR_Buttons        (SPEEDBAR_Dummy+1)
  88.     /* (struct List *) button list */
  89.  
  90. #define    SPEEDBAR_Orientation    (SPEEDBAR_Dummy+2)
  91.     /* (WORD) Horizontal/vertical mode */
  92.  
  93. #define    SPEEDBAR_Background        (SPEEDBAR_Dummy+3)
  94.     /* (UWORD) SpeedBar Background color */
  95.  
  96. #define    SPEEDBAR_Window            (SPEEDBAR_Dummy+4)
  97.     /* (struct Window *) Window for WindowBar help */
  98.  
  99. #define SPEEDBAR_StrumBar        (SPEEDBAR_Dummy+5)
  100.     /* (BOOL) Allow struming of button bar */
  101.  
  102. #define    SPEEDBAR_OnButton        (SPEEDBAR_Dummy+6)
  103.     /* (WORD) Turn on a button by id# */
  104.  
  105. #define    SPEEDBAR_OffButton        (SPEEDBAR_Dummy+7)
  106.     /* (WORD) Turn off a button by id# */
  107.  
  108. #define    SPEEDBAR_ScrollLeft        (SPEEDBAR_Dummy+8)
  109.     /* (WORD) Scroll buttons left */
  110.  
  111. #define    SPEEDBAR_ScrollRight    (SPEEDBAR_Dummy+9)
  112.     /* (WORD) Scroll buttons right */
  113.  
  114. #define    SPEEDBAR_Top            (SPEEDBAR_Dummy+10)
  115.     /* (WORD) First visible */
  116.  
  117. #define    SPEEDBAR_Visible        (SPEEDBAR_Dummy+11)
  118.     /* (WORD) Number visible */
  119.  
  120. #define    SPEEDBAR_Total            (SPEEDBAR_Dummy+12)
  121.     /* (WORD) Total in list */
  122.  
  123. #define SPEEDBAR_Help            (SPEEDBAR_Dummy+13)
  124.     /* (STRPTR) Window/Screen Help Text */
  125.  
  126. #define SPEEDBAR_BevelStyle        (SPEEDBAR_Dummy+14)
  127.     /* (WORD) Bevel box style (BVS_BUTTON,BVS_THIN,BVS_NONE) */
  128.  
  129. #define SPEEDBAR_Selected            (SPEEDBAR_Dummy+15)
  130.     /* (STRPTR) last selected speedbar node number */
  131.  
  132. #define SPEEDBAR_SelectedNode    (SPEEDBAR_Dummy+16)
  133.     /* (STRPTR) last selected speedbar node pointer */
  134.  
  135. #define SPEEDBAR_EvenSize    (SPEEDBAR_Dummy+17)
  136.     /* (BOOL) size all buttons in bar evenly, using the largest image */
  137.  
  138. /*****************************************************************************/
  139.  
  140. /* SPEEDBAR_Orientation Modes
  141.  */
  142. #define SBORIENT_HORIZ    0
  143. #define SBORIENT_VERT    1
  144.  
  145. /* OBSOLETE DO NOT USE.
  146.  */
  147. #define SPEEDBAR_HORIZONTAL    SBORIENT_HORIZ
  148. #define SPEEDBAR_VERTICAL    SBORIENT_VERT
  149.  
  150. #endif /* GADGETS_SPEEDBAR_H */
  151.