home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 2 / goldfish_vol2_cd1.bin / files / dev / gui / mui / developer / c / include / libraries / mui.h
C/C++ Source or Header  |  1994-08-08  |  84KB  |  2,185 lines

  1. /***************************************************************************
  2. **
  3. ** MUI - MagicUserInterface
  4. ** (c) 1993 by Stefan Stuntz
  5. **
  6. ** Main Header File
  7. **
  8. ****************************************************************************
  9. ** Class Tree
  10. ****************************************************************************
  11. **
  12. ** rootclass               (BOOPSI's base class)
  13. ** +--Notify               (implements notification mechanism)
  14. **    +--Family            (handles multiple children)
  15. **    !  +--Menustrip      (describes a complete menu strip)
  16. **    !  +--Menu           (describes a single menu)
  17. **    !  \--Menuitem       (describes a single menu item)
  18. **    +--Application       (main class for all applications)
  19. **    +--Window            (handles intuition window related topics)
  20. **    +--Area              (base class for all GUI elements)
  21. **       +--Rectangle      (creates (empty) rectangles)
  22. **       +--Image          (creates images)
  23. **       +--Text           (creates some text)
  24. **       +--String         (creates a string gadget)
  25. **       +--Prop           (creates a proportional gadget)
  26. **       +--Gauge          (creates a fule gauge)
  27. **       +--Scale          (creates a percentage scale)
  28. **       +--Boopsi         (interface to BOOPSI gadgets)
  29. **       +--Colorfield     (creates a field with changeable color)
  30. **       +--List           (creates a line-oriented list)
  31. **       !  +--Floattext   (special list with floating text)
  32. **       !  +--Volumelist  (special list with volumes)
  33. **       !  +--Scrmodelist (special list with screen modes)
  34. **       !  \--Dirlist     (special list with files)
  35. **       +--Group          (groups other GUI elements)
  36. **          +--Register    (handles page groups with titles)
  37. **          +--Virtgroup   (handles virtual groups)
  38. **          +--Scrollgroup (handles virtual groups with scrollers)
  39. **          +--Scrollbar   (creates a scrollbar)
  40. **          +--Listview    (creates a listview)
  41. **          +--Radio       (creates radio buttons)
  42. **          +--Cycle       (creates cycle gadgets)
  43. **          +--Slider      (creates slider gadgets)
  44. **          +--Coloradjust (creates some RGB sliders)
  45. **          +--Palette     (creates a complete palette gadget)
  46. **          +--Colorpanel  (creates a panel of colors)
  47. **          +--Popstring   (base class for popups)
  48. **             +--Popobject(popup a MUI object in a window)
  49. **             \--Popasl   (popup an asl requester)
  50. **
  51. ****************************************************************************
  52. ** General Header File Information
  53. ****************************************************************************
  54. **
  55. ** All macro and structure definitions follow these rules:
  56. **
  57. ** Name                       Meaning
  58. **
  59. ** MUIC_<class>               Name of a class
  60. ** MUIM_<class>_<method>      Method
  61. ** MUIP_<class>_<method>      Methods parameter structure
  62. ** MUIV_<class>_<method>_<x>  Special method value
  63. ** MUIA_<class>_<attrib>      Attribute
  64. ** MUIV_<class>_<attrib>_<x>  Special attribute value
  65. ** MUIE_<error>               Error return code from MUI_Error()
  66. ** MUII_<name>                Standard MUI image
  67. ** MUIX_<code>                Control codes for text strings
  68. ** MUIO_<name>                Object type for MUI_MakeObject()
  69. **
  70. ** MUIA_... attribute definitions are followed by a comment
  71. ** consisting of the three possible letters I, S and G.
  72. ** I: it's possible to specify this attribute at object creation time.
  73. ** S: it's possible to change this attribute with SetAttrs().
  74. ** G: it's possible to get this attribute with GetAttr().
  75. **
  76. ** Items marked with "Custom Class" are for use in custom classes only!
  77. */
  78.  
  79.  
  80. #ifndef LIBRARIES_MUI_H
  81. #define LIBRARIES_MUI_H
  82.  
  83. #ifndef EXEC_TYPES_H
  84. #include "exec/types.h"
  85. #endif
  86.  
  87. #ifndef INTUITION_CLASSES_H
  88. #include "intuition/classes.h"
  89. #endif
  90.  
  91. #ifndef INTUITION_SCREENS_H
  92. #include "intuition/screens.h"
  93. #endif
  94.  
  95. #ifndef CLIB_INTUITION_PROTOS_H
  96. #include "clib/intuition_protos.h"
  97. #endif
  98.  
  99.  
  100. /***************************************************************************
  101. ** Library specification
  102. ***************************************************************************/
  103.  
  104. #define MUIMASTER_NAME "muimaster.library"
  105. #define MUIMASTER_VMIN 8
  106.  
  107. /*
  108. ** !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  109. ** Warning, the macros in this header file work only with muimaster.library
  110. ** V8 and above. If you recompile your programs, be sure to open
  111. ** muimaster.library with MUIMASTER_VMIN as version number.
  112. ** !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  113. */
  114.  
  115. #define MUI_OBSOLETE /* include obsolete identifiers */
  116.  
  117.  
  118.  
  119. /***************************************************************************
  120. ** Object Types for MUI_MakeObject()
  121. ***************************************************************************/
  122.  
  123. #define MUIO_Label        1   /* STRPTR label, ULONG flags */
  124. #define MUIO_Button       2   /* STRPTR label */
  125. #define MUIO_Checkmark    3   /* STRPTR label */
  126. #define MUIO_Cycle        4   /* STRPTR label, STRPTR *entries */
  127. #define MUIO_Radio        5   /* STRPTR label, STRPTR *entries */
  128. #define MUIO_Slider       6   /* STRPTR label, LONG min, LONG max */
  129. #define MUIO_String       7   /* STRPTR label, LONG maxlen */
  130. #define MUIO_PopButton    8   /* STRPTR imagespec */
  131. #define MUIO_HSpace       9   /* LONG space   */
  132. #define MUIO_VSpace      10   /* LONG space   */
  133. #define MUIO_HBar        11   /* LONG space   */
  134. #define MUIO_VBar        12   /* LONG space   */
  135. #define MUIO_MenustripNM 13   /* struct NewMenu *nm, ULONG flags */
  136. #define MUIO_Menuitem    14   /* STRPTR label, STRPTR shortcut, ULONG flags, ULONG data  */
  137. #define MUIO_BarTitle    15   /* STRPTR label */
  138.  
  139. #define MUIO_Label_SingleFrame   (1<< 8)
  140. #define MUIO_Label_DoubleFrame   (1<< 9)
  141. #define MUIO_Label_LeftAligned   (1<<10)
  142. #define MUIO_Label_Centered      (1<<11)
  143.  
  144.  
  145. /***************************************************************************
  146. ** ARexx Interface
  147. ***************************************************************************/
  148.  
  149. struct MUI_Command
  150. {
  151.     char        *mc_Name;
  152.     char        *mc_Template;
  153.     LONG         mc_Parameters;
  154.     struct Hook *mc_Hook;
  155.     LONG         mc_Reserved[5];
  156. };
  157.  
  158. #define MC_TEMPLATE_ID ((STRPTR)~0)
  159.  
  160. #define MUI_RXERR_BADDEFINITION  -1
  161. #define MUI_RXERR_OUTOFMEMORY    -2
  162. #define MUI_RXERR_UNKNOWNCOMMAND -3
  163. #define MUI_RXERR_BADSYNTAX      -4
  164.  
  165.  
  166. /***************************************************************************
  167. ** Return values for MUI_Error()
  168. ***************************************************************************/
  169.  
  170. #define MUIE_OK                  0
  171. #define MUIE_OutOfMemory         1
  172. #define MUIE_OutOfGfxMemory      2
  173. #define MUIE_InvalidWindowObject 3
  174. #define MUIE_MissingLibrary      4
  175. #define MUIE_NoARexx             5
  176. #define MUIE_SingleTask          6
  177.  
  178.  
  179.  
  180. /***************************************************************************
  181. ** Standard MUI Images
  182. ***************************************************************************/
  183.  
  184. #define MUII_WindowBack     0   /* These images are configured   */
  185. #define MUII_RequesterBack  1   /* with the preferences program. */
  186. #define MUII_ButtonBack     2
  187. #define MUII_ListBack       3
  188. #define MUII_TextBack       4
  189. #define MUII_PropBack       5
  190. #define MUII_PopupBack      6
  191. #define MUII_SelectedBack   7
  192. #define MUII_ListCursor     8
  193. #define MUII_ListSelect     9
  194. #define MUII_ListSelCur    10
  195. #define MUII_ArrowUp       11
  196. #define MUII_ArrowDown     12
  197. #define MUII_ArrowLeft     13
  198. #define MUII_ArrowRight    14
  199. #define MUII_CheckMark     15
  200. #define MUII_RadioButton   16
  201. #define MUII_Cycle         17
  202. #define MUII_PopUp         18
  203. #define MUII_PopFile       19
  204. #define MUII_PopDrawer     20
  205. #define MUII_PropKnob      21
  206. #define MUII_Drawer        22
  207. #define MUII_HardDisk      23
  208. #define MUII_Disk          24
  209. #define MUII_Chip          25
  210. #define MUII_Volume        26
  211. #define MUII_PopUpBack     27
  212. #define MUII_Network       28
  213. #define MUII_Assign        29
  214. #define MUII_TapePlay      30
  215. #define MUII_TapePlayBack  31
  216. #define MUII_TapePause     32
  217. #define MUII_TapeStop      33
  218. #define MUII_TapeRecord    34
  219. #define MUII_GroupBack     35
  220. #define MUII_SliderBack    36
  221. #define MUII_SliderKnob    37
  222. #define MUII_TapeUp        38
  223. #define MUII_TapeDown      39
  224. #define MUII_Count         40
  225.  
  226. #define MUII_BACKGROUND    128    /* These are direct color    */
  227. #define MUII_SHADOW        129    /* combinations and are not  */
  228. #define MUII_SHINE         130    /* affected by users prefs.  */
  229. #define MUII_FILL          131
  230. #define MUII_SHADOWBACK    132    /* Generally, you should     */
  231. #define MUII_SHADOWFILL    133    /* avoid using them. Better  */
  232. #define MUII_SHADOWSHINE   134    /* use one of the customized */
  233. #define MUII_FILLBACK      135    /* images above.             */
  234. #define MUII_FILLSHINE     136
  235. #define MUII_SHINEBACK     137
  236. #define MUII_FILLBACK2     138
  237. #define MUII_HSHINEBACK    139
  238. #define MUII_HSHADOWBACK   140
  239. #define MUII_HSHINESHINE   141
  240. #define MUII_HSHADOWSHADOW 142
  241. #define MUII_LASTPAT       142
  242. /*#define MUII_N1HSHINE      143*/
  243.  
  244.  
  245.  
  246. /***************************************************************************
  247. ** Special values for some methods
  248. ***************************************************************************/
  249.  
  250. #define MUIV_TriggerValue    0x49893131
  251. #define MUIV_NotTriggerValue 0x49893133
  252. #define MUIV_EveryTime       0x49893131
  253.  
  254. #define MUIV_Application_Save_ENV     ((STRPTR) 0)
  255. #define MUIV_Application_Save_ENVARC  ((STRPTR)~0)
  256. #define MUIV_Application_Load_ENV     ((STRPTR) 0)
  257. #define MUIV_Application_Load_ENVARC  ((STRPTR)~0)
  258.  
  259. #define MUIV_Application_ReturnID_Quit -1
  260.  
  261. #define MUIV_List_Insert_Top             0
  262. #define MUIV_List_Insert_Active         -1
  263. #define MUIV_List_Insert_Sorted         -2
  264. #define MUIV_List_Insert_Bottom         -3
  265.  
  266. #define MUIV_List_Remove_First           0
  267. #define MUIV_List_Remove_Active         -1
  268. #define MUIV_List_Remove_Last           -2
  269. #define MUIV_List_Remove_Selected       -3
  270.  
  271. #define MUIV_List_Select_Off             0
  272. #define MUIV_List_Select_On              1
  273. #define MUIV_List_Select_Toggle          2
  274. #define MUIV_List_Select_Ask             3
  275.  
  276. #define MUIV_List_GetEntry_Active       -1
  277. #define MUIV_List_Select_Active         -1
  278. #define MUIV_List_Select_All            -2
  279.  
  280. #define MUIV_List_Redraw_Active         -1
  281. #define MUIV_List_Redraw_All            -2
  282.  
  283. #define MUIV_List_Move_Top               0
  284. #define MUIV_List_Move_Active           -1
  285. #define MUIV_List_Move_Bottom           -2
  286. #define MUIV_List_Move_Next             -3 /* only valid for second parameter */
  287. #define MUIV_List_Move_Previous         -4 /* only valid for second parameter */
  288.  
  289. #define MUIV_List_Exchange_Top           0
  290. #define MUIV_List_Exchange_Active       -1
  291. #define MUIV_List_Exchange_Bottom       -2
  292. #define MUIV_List_Exchange_Next         -3 /* only valid for second parameter */
  293. #define MUIV_List_Exchange_Previous     -4 /* only valid for second parameter */
  294.  
  295. #define MUIV_List_Jump_Top               0
  296. #define MUIV_List_Jump_Active           -1
  297. #define MUIV_List_Jump_Bottom           -2
  298.  
  299. #define MUIV_Colorpanel_GetColor_Active -1
  300. #define MUIV_Colorpanel_SetColor_Active -1
  301.  
  302. #define MUIV_List_NextSelected_Start    -1
  303. #define MUIV_List_NextSelected_End      -1
  304.  
  305.  
  306. /***************************************************************************
  307. ** Control codes for text strings
  308. ***************************************************************************/
  309.  
  310. #define MUIX_R "\033r"    /* right justified */
  311. #define MUIX_C "\033c"    /* centered        */
  312. #define MUIX_L "\033l"    /* left justified  */
  313.  
  314. #define MUIX_N "\033n"    /* normal     */
  315. #define MUIX_B "\033b"    /* bold       */
  316. #define MUIX_I "\033i"    /* italic     */
  317. #define MUIX_U "\033u"    /* underlined */
  318.  
  319. #define MUIX_PT "\0332"   /* text pen           */
  320. #define MUIX_PH "\0338"   /* highlight text pen */
  321.  
  322.  
  323.  
  324. /***************************************************************************
  325. ** Parameter structures for some classes
  326. ***************************************************************************/
  327.  
  328. struct MUI_Palette_Entry
  329. {
  330.     LONG  mpe_ID;
  331.     ULONG mpe_Red;
  332.     ULONG mpe_Green;
  333.     ULONG mpe_Blue;
  334.     LONG  mpe_Group;
  335. };
  336.  
  337. #define MUIV_Palette_Entry_End -1
  338.  
  339.  
  340. struct MUI_Scrmodelist_Entry
  341. {
  342.     char *sme_Name;
  343.     ULONG sme_ModeID;
  344. };
  345.  
  346.  
  347.  
  348. /***************************************************************************
  349. **
  350. ** Macro Section
  351. ** -------------
  352. **
  353. ** To make GUI creation more easy and understandable, you can use the
  354. ** macros below. If you dont want, just define MUI_NOSHORTCUTS to disable
  355. ** them.
  356. **
  357. ** These macros are available to C programmers only.
  358. **
  359. ***************************************************************************/
  360.  
  361. #ifndef MUI_NOSHORTCUTS
  362.  
  363.  
  364.  
  365. /***************************************************************************
  366. **
  367. ** Object Generation
  368. ** -----------------
  369. **
  370. ** The xxxObject (and xChilds) macros generate new instances of MUI classes.
  371. ** Every xxxObject can be followed by tagitems specifying initial create
  372. ** time attributes for the new object and must be terminated with the
  373. ** End macro:
  374. **
  375. ** obj = StringObject,
  376. **          MUIA_String_Contents, "foo",
  377. **          MUIA_String_MaxLen  , 40,
  378. **          End;
  379. **
  380. ** With the Child, SubWindow and WindowContents shortcuts you can
  381. ** construct a complete GUI within one command:
  382. **
  383. ** app = ApplicationObject,
  384. **
  385. **          ...
  386. **
  387. **          SubWindow, WindowObject,
  388. **             WindowContents, VGroup,
  389. **                Child, String("foo",40),
  390. **                Child, String("bar",50),
  391. **                Child, HGroup,
  392. **                   Child, CheckMark(TRUE),
  393. **                   Child, CheckMark(FALSE),
  394. **                   End,
  395. **                End,
  396. **             End,
  397. **
  398. **          SubWindow, WindowObject,
  399. **             WindowContents, HGroup,
  400. **                Child, ...,
  401. **                Child, ...,
  402. **                End,
  403. **             End,
  404. **
  405. **          ...
  406. **
  407. **          End;
  408. **
  409. ***************************************************************************/
  410.  
  411. #define MenustripObject   MUI_NewObject(MUIC_Menustrip
  412. #define MenuObject        MUI_NewObject(MUIC_Menu
  413. #define MenuObjectT(name) MUI_NewObject(MUIC_Menu,MUIA_Menu_Title,name
  414. #define MenuitemObject    MUI_NewObject(MUIC_Menuitem
  415. #define WindowObject      MUI_NewObject(MUIC_Window
  416. #define ImageObject       MUI_NewObject(MUIC_Image
  417. #define BitmapObject      MUI_NewObject(MUIC_Bitmap
  418. #define BodychunkObject   MUI_NewObject(MUIC_Bodychunk
  419. #define NotifyObject      MUI_NewObject(MUIC_Notify
  420. #define ApplicationObject MUI_NewObject(MUIC_Application
  421. #define TextObject        MUI_NewObject(MUIC_Text
  422. #define RectangleObject   MUI_NewObject(MUIC_Rectangle
  423. #define ListObject        MUI_NewObject(MUIC_List
  424. #define PropObject        MUI_NewObject(MUIC_Prop
  425. #define StringObject      MUI_NewObject(MUIC_String
  426. #define ScrollbarObject   MUI_NewObject(MUIC_Scrollbar
  427. #define ListviewObject    MUI_NewObject(MUIC_Listview
  428. #define RadioObject       MUI_NewObject(MUIC_Radio
  429. #define VolumelistObject  MUI_NewObject(MUIC_Volumelist
  430. #define FloattextObject   MUI_NewObject(MUIC_Floattext
  431. #define DirlistObject     MUI_NewObject(MUIC_Dirlist
  432. #define SliderObject      MUI_NewObject(MUIC_Slider
  433. #define CycleObject       MUI_NewObject(MUIC_Cycle
  434. #define GaugeObject       MUI_NewObject(MUIC_Gauge
  435. #define ScaleObject       MUI_NewObject(MUIC_Scale
  436. #define BoopsiObject      MUI_NewObject(MUIC_Boopsi
  437. #define ColorfieldObject  MUI_NewObject(MUIC_Colorfield
  438. #define ColorpanelObject  MUI_NewObject(MUIC_Colorpanel
  439. #define ColoradjustObject MUI_NewObject(MUIC_Coloradjust
  440. #define PaletteObject     MUI_NewObject(MUIC_Palette
  441. #define GroupObject       MUI_NewObject(MUIC_Group
  442. #define RegisterObject    MUI_NewObject(MUIC_Register
  443. #define VirtgroupObject   MUI_NewObject(MUIC_Virtgroup
  444. #define ScrollgroupObject MUI_NewObject(MUIC_Scrollgroup
  445. #define PopstringObject   MUI_NewObject(MUIC_Popstring
  446. #define PopobjectObject   MUI_NewObject(MUIC_Popobject
  447. #define PoplistObject     MUI_NewObject(MUIC_Poplist
  448. #define PopaslObject      MUI_NewObject(MUIC_Popasl
  449. #define ScrmodelistObject MUI_NewObject(MUIC_Scrmodelist
  450. #define VGroup            MUI_NewObject(MUIC_Group
  451. #define HGroup            MUI_NewObject(MUIC_Group,MUIA_Group_Horiz,TRUE
  452. #define ColGroup(cols)    MUI_NewObject(MUIC_Group,MUIA_Group_Columns,(cols)
  453. #define RowGroup(rows)    MUI_NewObject(MUIC_Group,MUIA_Group_Rows   ,(rows)
  454. #define PageGroup         MUI_NewObject(MUIC_Group,MUIA_Group_PageMode,TRUE
  455. #define VGroupV           MUI_NewObject(MUIC_Virtgroup
  456. #define HGroupV           MUI_NewObject(MUIC_Virtgroup,MUIA_Group_Horiz,TRUE
  457. #define ColGroupV(cols)   MUI_NewObject(MUIC_Virtgroup,MUIA_Group_Columns,(cols)
  458. #define RowGroupV(rows)   MUI_NewObject(MUIC_Virtgroup,MUIA_Group_Rows   ,(rows)
  459. #define PageGroupV        MUI_NewObject(MUIC_Virtgroup,MUIA_Group_PageMode,TRUE
  460. #define RegisterGroup(t)  MUI_NewObject(MUIC_Register,MUIA_Register_Titles,(t)
  461. #define End               TAG_DONE)
  462.  
  463. #define Child             MUIA_Group_Child
  464. #define SubWindow         MUIA_Application_Window
  465. #define WindowContents    MUIA_Window_RootObject
  466.  
  467.  
  468.  
  469. /***************************************************************************
  470. **
  471. ** Frame Types
  472. ** -----------
  473. **
  474. ** These macros may be used to specify one of MUI's different frame types.
  475. ** Note that every macro consists of one { ti_Tag, ti_Data } pair.
  476. **
  477. ** GroupFrameT() is a special kind of frame that contains a centered
  478. ** title text.
  479. **
  480. ** HGroup, GroupFrameT("Horiz Groups"),
  481. **    Child, RectangleObject, TextFrame  , End,
  482. **    Child, RectangleObject, StringFrame, End,
  483. **    Child, RectangleObject, ButtonFrame, End,
  484. **    Child, RectangleObject, ListFrame  , End,
  485. **    End,
  486. **
  487. ***************************************************************************/
  488.  
  489. #define NoFrame          MUIA_Frame, MUIV_Frame_None
  490. #define ButtonFrame      MUIA_Frame, MUIV_Frame_Button
  491. #define ImageButtonFrame MUIA_Frame, MUIV_Frame_ImageButton
  492. #define TextFrame        MUIA_Frame, MUIV_Frame_Text
  493. #define StringFrame      MUIA_Frame, MUIV_Frame_String
  494. #define ReadListFrame    MUIA_Frame, MUIV_Frame_ReadList
  495. #define InputListFrame   MUIA_Frame, MUIV_Frame_InputList
  496. #define PropFrame        MUIA_Frame, MUIV_Frame_Prop
  497. #define SliderFrame      MUIA_Frame, MUIV_Frame_Slider
  498. #define GaugeFrame       MUIA_Frame, MUIV_Frame_Gauge
  499. #define VirtualFrame     MUIA_Frame, MUIV_Frame_Virtual
  500. #define GroupFrame       MUIA_Frame, MUIV_Frame_Group
  501. #define GroupFrameT(s)   MUIA_Frame, MUIV_Frame_Group, MUIA_FrameTitle, s
  502.  
  503.  
  504.  
  505. /***************************************************************************
  506. **
  507. ** Spacing Macros
  508. ** --------------
  509. **
  510. ***************************************************************************/
  511.  
  512. #define HVSpace           MUI_NewObject(MUIC_Rectangle,TAG_DONE)
  513. #define HSpace(x)         MUI_MakeObject(MUIO_HSpace,x)
  514. #define VSpace(x)         MUI_MakeObject(MUIO_VSpace,x)
  515. #define HCenter(obj)      (HGroup, GroupSpacing(0), Child, HSpace(0), Child, (obj), Child, HSpace(0), End)
  516. #define VCenter(obj)      (VGroup, GroupSpacing(0), Child, VSpace(0), Child, (obj), Child, VSpace(0), End)
  517. #define InnerSpacing(h,v) MUIA_InnerLeft,(h),MUIA_InnerRight,(h),MUIA_InnerTop,(v),MUIA_InnerBottom,(v)
  518. #define GroupSpacing(x)   MUIA_Group_Spacing,x
  519.  
  520.  
  521.  
  522. #ifdef MUI_OBSOLETE
  523.  
  524. /***************************************************************************
  525. **
  526. ** String-Object
  527. ** -------------
  528. **
  529. ** The following macro creates a simple string gadget.
  530. **
  531. ***************************************************************************/
  532.  
  533. #define String(contents,maxlen)\
  534.     StringObject,\
  535.         StringFrame,\
  536.         MUIA_String_MaxLen  , maxlen,\
  537.         MUIA_String_Contents, contents,\
  538.         End
  539.  
  540. #define KeyString(contents,maxlen,controlchar)\
  541.     StringObject,\
  542.         StringFrame,\
  543.         MUIA_ControlChar    , controlchar,\
  544.         MUIA_String_MaxLen  , maxlen,\
  545.         MUIA_String_Contents, contents,\
  546.         End
  547.  
  548. #endif
  549.  
  550.  
  551.  
  552. #ifdef MUI_OBSOLETE
  553.  
  554. /***************************************************************************
  555. **
  556. ** CheckMark-Object
  557. ** ----------------
  558. **
  559. ** The following macro creates a checkmark gadget.
  560. **
  561. ***************************************************************************/
  562.  
  563. #define CheckMark(selected)\
  564.     ImageObject,\
  565.         ImageButtonFrame,\
  566.         MUIA_InputMode        , MUIV_InputMode_Toggle,\
  567.         MUIA_Image_Spec       , MUII_CheckMark,\
  568.         MUIA_Image_FreeVert   , TRUE,\
  569.         MUIA_Selected         , selected,\
  570.         MUIA_Background       , MUII_ButtonBack,\
  571.         MUIA_ShowSelState     , FALSE,\
  572.         End
  573.  
  574. #define KeyCheckMark(selected,control)\
  575.     ImageObject,\
  576.         ImageButtonFrame,\
  577.         MUIA_InputMode        , MUIV_InputMode_Toggle,\
  578.         MUIA_Image_Spec       , MUII_CheckMark,\
  579.         MUIA_Image_FreeVert   , TRUE,\
  580.         MUIA_Selected         , selected,\
  581.         MUIA_Background       , MUII_ButtonBack,\
  582.         MUIA_ShowSelState     , FALSE,\
  583.         MUIA_ControlChar      , control,\
  584.         End
  585.  
  586. #endif
  587.  
  588.  
  589. /***************************************************************************
  590. **
  591. ** Button-Objects
  592. ** --------------
  593. **
  594. ** Note: Use small letters for KeyButtons, e.g.
  595. **       KeyButton("Cancel",'c')  and not  KeyButton("Cancel",'C') !!
  596. **
  597. ***************************************************************************/
  598.  
  599. #define SimpleButton(label) MUI_MakeObject(MUIO_Button,label)
  600.  
  601. #ifdef MUI_OBSOLETE
  602.  
  603. #define KeyButton(name,key)\
  604.     TextObject,\
  605.         ButtonFrame,\
  606.         MUIA_Text_Contents, name,\
  607.         MUIA_Text_PreParse, "\33c",\
  608.         MUIA_Text_HiChar  , key,\
  609.         MUIA_ControlChar  , key,\
  610.         MUIA_InputMode    , MUIV_InputMode_RelVerify,\
  611.         MUIA_Background   , MUII_ButtonBack,\
  612.         End
  613.  
  614. #endif
  615.  
  616.  
  617. #ifdef MUI_OBSOLETE
  618.  
  619. /***************************************************************************
  620. **
  621. ** Cycle-Object
  622. ** ------------
  623. **
  624. ***************************************************************************/
  625.  
  626. #define Cycle(entries)        CycleObject, MUIA_Cycle_Entries, entries, End
  627. #define KeyCycle(entries,key) CycleObject, MUIA_Cycle_Entries, entries, MUIA_ControlChar, key, End
  628.  
  629.  
  630.  
  631. /***************************************************************************
  632. **
  633. ** Radio-Object
  634. ** ------------
  635. **
  636. ***************************************************************************/
  637.  
  638. #define Radio(name,array)\
  639.     RadioObject,\
  640.         GroupFrameT(name),\
  641.         MUIA_Radio_Entries,array,\
  642.         End
  643.  
  644. #define KeyRadio(name,array,key)\
  645.     RadioObject,\
  646.         GroupFrameT(name),\
  647.         MUIA_Radio_Entries,array,\
  648.         MUIA_ControlChar, key,\
  649.         End
  650.  
  651.  
  652.  
  653. /***************************************************************************
  654. **
  655. ** Slider-Object
  656. ** -------------
  657. **
  658. ***************************************************************************/
  659.  
  660.  
  661. #define Slider(min,max,level)\
  662.     SliderObject,\
  663.         MUIA_Slider_Min  , min,\
  664.         MUIA_Slider_Max  , max,\
  665.         MUIA_Slider_Level, level,\
  666.         End
  667.  
  668. #define KeySlider(min,max,level,key)\
  669.     SliderObject,\
  670.         MUIA_Slider_Min  , min,\
  671.         MUIA_Slider_Max  , max,\
  672.         MUIA_Slider_Level, level,\
  673.         MUIA_ControlChar , key,\
  674.         End
  675.  
  676. #endif
  677.  
  678.  
  679.  
  680. /***************************************************************************
  681. **
  682. ** Button to be used for popup objects
  683. **
  684. ***************************************************************************/
  685.  
  686. #define PopButton(img) MUI_MakeObject(MUIO_PopButton,img)
  687.  
  688.  
  689.  
  690. /***************************************************************************
  691. **
  692. ** Labeling Objects
  693. ** ----------------
  694. **
  695. ** Labeling objects, e.g. a group of string gadgets,
  696. **
  697. **   Small: |foo   |
  698. **  Normal: |bar   |
  699. **     Big: |foobar|
  700. **    Huge: |barfoo|
  701. **
  702. ** is done using a 2 column group:
  703. **
  704. ** ColGroup(2),
  705. **     Child, Label2("Small:" ),
  706. **    Child, StringObject, End,
  707. **     Child, Label2("Normal:"),
  708. **    Child, StringObject, End,
  709. **     Child, Label2("Big:"   ),
  710. **    Child, StringObject, End,
  711. **     Child, Label2("Huge:"  ),
  712. **    Child, StringObject, End,
  713. **    End,
  714. **
  715. ** Note that we have three versions of the label macro, depending on
  716. ** the frame type of the right hand object:
  717. **
  718. ** Label1(): For use with standard frames (e.g. checkmarks).
  719. ** Label2(): For use with double high frames (e.g. string gadgets).
  720. ** Label() : For use with objects without a frame.
  721. **
  722. ** These macros ensure that your label will look fine even if the
  723. ** user of your application configured some strange spacing values.
  724. ** If you want to use your own labeling, you'll have to pay attention
  725. ** on this topic yourself.
  726. **
  727. ***************************************************************************/
  728.  
  729. #define Label(label)   MUI_MakeObject(MUIO_Label,label,0)
  730. #define Label1(label)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_SingleFrame)
  731. #define Label2(label)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_DoubleFrame)
  732. #define LLabel(label)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned)
  733. #define LLabel1(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|MUIO_Label_SingleFrame)
  734. #define LLabel2(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|MUIO_Label_DoubleFrame)
  735.  
  736. #define KeyLabel(label,key)   MUI_MakeObject(MUIO_Label,label,key)
  737. #define KeyLabel1(label,key)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_SingleFrame|(key))
  738. #define KeyLabel2(label,key)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_DoubleFrame|(key))
  739. #define KeyLLabel(label,key)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|(key))
  740. #define KeyLLabel1(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|MUIO_Label_SingleFrame|(key))
  741. #define KeyLLabel2(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|MUIO_Label_DoubleFrame|(key))
  742.  
  743.  
  744.  
  745. /***************************************************************************
  746. **
  747. ** Controlling Objects
  748. ** -------------------
  749. **
  750. ** set() and get() are two short stubs for BOOPSI GetAttr() and SetAttrs()
  751. ** calls:
  752. **
  753. ** {
  754. **    char *x;
  755. **
  756. **    set(obj,MUIA_String_Contents,"foobar");
  757. **    get(obj,MUIA_String_Contents,&x);
  758. **
  759. **    printf("gadget contains '%s'\n",x);
  760. ** }
  761. **
  762. ** nnset() sets an attribute without triggering a possible notification.
  763. **
  764. ***************************************************************************/
  765.  
  766. #define get(obj,attr,store) GetAttr(attr,obj,(ULONG *)store)
  767. #define set(obj,attr,value) SetAttrs(obj,attr,value,TAG_DONE)
  768. #define nnset(obj,attr,value) SetAttrs(obj,MUIA_NoNotify,TRUE,attr,value,TAG_DONE)
  769.  
  770. #define setmutex(obj,n)     set(obj,MUIA_Radio_Active,n)
  771. #define setcycle(obj,n)     set(obj,MUIA_Cycle_Active,n)
  772. #define setstring(obj,s)    set(obj,MUIA_String_Contents,s)
  773. #define setcheckmark(obj,b) set(obj,MUIA_Selected,b)
  774. #define setslider(obj,l)    set(obj,MUIA_Slider_Level,l)
  775.  
  776. #endif /* MUI_NOSHORTCUTS */
  777.  
  778.  
  779. /***************************************************************************
  780. **
  781. ** For Boopsi Image Implementors Only:
  782. **
  783. ** If MUI is using a boopsi image object, it will send a special method
  784. ** immediately after object creation. This method has a parameter structure
  785. ** where the boopsi can fill in its minimum and maximum size and learn if
  786. ** its used in a horizontal or vertical context.
  787. **
  788. ** The boopsi image must use the method id (MUIM_BoopsiQuery) as return
  789. ** value. That's how MUI sees that the method is implemented.
  790. **
  791. ** Note: MUI does not depend on this method. If the boopsi image doesn't
  792. **       implement it, minimum size will be 0 and maximum size unlimited.
  793. **
  794. ***************************************************************************/
  795.  
  796. #define MUIM_BoopsiQuery 0x80427157 /* this is send to the boopsi and */
  797.                                     /* must be used as return value   */
  798.  
  799. struct MUI_BoopsiQuery              /* parameter structure */
  800. {
  801.     ULONG mbq_MethodID;              /* always MUIM_BoopsiQuery */
  802.  
  803.     struct Screen *mbq_Screen;       /* obsolete, use mbq_RenderInfo */
  804.     ULONG mbq_Flags;                 /* read only, see below */
  805.  
  806.     LONG mbq_MinWidth ;              /* write only, fill in min width  */
  807.     LONG mbq_MinHeight;              /* write only, fill in min height */
  808.     LONG mbq_MaxWidth ;              /* write only, fill in max width  */
  809.     LONG mbq_MaxHeight;              /* write only, fill in max height */
  810.     LONG mbq_DefWidth ;              /* write only, fill in def width  */
  811.     LONG mbq_DefHeight;              /* write only, fill in def height */
  812.  
  813.     struct MUI_RenderInfo *mbq_RenderInfo;  /* read only, display context */
  814.  
  815.     /* may grow in future ... */
  816. };
  817.  
  818. #define MUIP_BoopsiQuery MUI_BoopsiQuery  /* old structure name */
  819.  
  820. #define MBQF_HORIZ (1<<0)           /* object used in a horizontal */
  821.                                     /* context (else vertical)     */
  822.  
  823. #define MBQ_MUI_MAXMAX (10000)          /* use this for unlimited MaxWidth/Height */
  824.  
  825.  
  826. /****************************************************************************/
  827. /** Notify                                                                 **/
  828. /****************************************************************************/
  829.  
  830. #ifdef _DCC
  831. extern char MUIC_Notify[];
  832. #else
  833. #define MUIC_Notify "Notify.mui"
  834. #endif
  835.  
  836. /* Methods */
  837.  
  838. #define MUIM_CallHook                  0x8042b96b /* V4 */
  839. #define MUIM_FindUData                 0x8042c196 /* V8 */
  840. #define MUIM_GetUData                  0x8042ed0c /* V8 */
  841. #define MUIM_KillNotify                0x8042d240 /* V4 */
  842. #define MUIM_MultiSet                  0x8042d356 /* V7 */
  843. #define MUIM_NoNotifySet               0x8042216f /* V9 */
  844. #define MUIM_Notify                    0x8042c9cb /* V4 */
  845. #define MUIM_Set                       0x8042549a /* V4 */
  846. #define MUIM_SetAsString               0x80422590 /* V4 */
  847. #define MUIM_SetUData                  0x8042c920 /* V8 */
  848. #define MUIM_WriteLong                 0x80428d86 /* V6 */
  849. #define MUIM_WriteString               0x80424bf4 /* V6 */
  850. struct  MUIP_CallHook                  { ULONG id; struct Hook *Hook; ULONG param1; /* ... */ };
  851. struct  MUIP_FindUData                 { ULONG id; ULONG udata; };
  852. struct  MUIP_GetUData                  { ULONG id; ULONG udata; ULONG attr; ULONG *storage; };
  853. struct  MUIP_KillNotify                { ULONG id; ULONG TrigAttr; };
  854. struct  MUIP_MultiSet                  { ULONG id; ULONG attr; ULONG val; APTR obj; /* ... */ };
  855. struct  MUIP_NoNotifySet               { ULONG id; ULONG attr; char *format; ULONG val; /* ... */ };
  856. struct  MUIP_Notify                    { ULONG id; ULONG TrigAttr; ULONG TrigVal; APTR DestObj; ULONG FollowParams; /* ... */ };
  857. struct  MUIP_Set                       { ULONG id; ULONG attr; ULONG val; };
  858. struct  MUIP_SetAsString               { ULONG id; ULONG attr; char *format; ULONG val; /* ... */ };
  859. struct  MUIP_SetUData                  { ULONG id; ULONG udata; ULONG attr; ULONG val; };
  860. struct  MUIP_WriteLong                 { ULONG id; ULONG val; ULONG *memory; };
  861. struct  MUIP_WriteString               { ULONG id; char *str; char *memory; };
  862.  
  863. /* Attributes */
  864.  
  865. #define MUIA_AppMessage                 0x80421955 /* V5 ..g struct AppMessage * */
  866. #ifdef MUI_OBSOLETE
  867. #define MUIA_HelpFile                   0x80423a6e /* V4 isg STRPTR            */
  868. #endif /* MUI_OBSOLETE */
  869. #define MUIA_HelpLine                   0x8042a825 /* V4 isg LONG              */
  870. #define MUIA_HelpNode                   0x80420b85 /* V4 isg STRPTR            */
  871. #define MUIA_NoNotify                   0x804237f9 /* V7 .s. BOOL              */
  872. #define MUIA_Revision                   0x80427eaa /* V4 ..g LONG              */
  873. #define MUIA_UserData                   0x80420313 /* V4 isg ULONG             */
  874. #define MUIA_Version                    0x80422301 /* V4 ..g LONG              */
  875.  
  876.  
  877.  
  878. /****************************************************************************/
  879. /** Family                                                                 **/
  880. /****************************************************************************/
  881.  
  882. #ifdef _DCC
  883. extern char MUIC_Family[];
  884. #else
  885. #define MUIC_Family "Family.mui"
  886. #endif
  887.  
  888. /* Methods */
  889.  
  890. #define MUIM_Family_AddHead            0x8042e200 /* V8 */
  891. #define MUIM_Family_AddTail            0x8042d752 /* V8 */
  892. #define MUIM_Family_Insert             0x80424d34 /* V8 */
  893. #define MUIM_Family_Remove             0x8042f8a9 /* V8 */
  894. #define MUIM_Family_Sort               0x80421c49 /* V8 */
  895. #define MUIM_Family_Transfer           0x8042c14a /* V8 */
  896. struct  MUIP_Family_AddHead            { ULONG id; Object *obj; };
  897. struct  MUIP_Family_AddTail            { ULONG id; Object *obj; };
  898. struct  MUIP_Family_Insert             { ULONG id; Object *obj; Object *pred; };
  899. struct  MUIP_Family_Remove             { ULONG id; Object *obj; };
  900. struct  MUIP_Family_Sort               { ULONG id; Object *obj[1]; };
  901. struct  MUIP_Family_Transfer           { ULONG id; Object *family; };
  902.  
  903. /* Attributes */
  904.  
  905. #define MUIA_Family_Child               0x8042c696 /* V8 i.. Object *          */
  906.  
  907.  
  908.  
  909. /****************************************************************************/
  910. /** Menustrip                                                              **/
  911. /****************************************************************************/
  912.  
  913. #ifdef _DCC
  914. extern char MUIC_Menustrip[];
  915. #else
  916. #define MUIC_Menustrip "Menustrip.mui"
  917. #endif
  918.  
  919. /* Methods */
  920.  
  921.  
  922. /* Attributes */
  923.  
  924. #define MUIA_Menustrip_Enabled          0x8042815b /* V8 isg BOOL              */
  925.  
  926.  
  927.  
  928. /****************************************************************************/
  929. /** Menu                                                                   **/
  930. /****************************************************************************/
  931.  
  932. #ifdef _DCC
  933. extern char MUIC_Menu[];
  934. #else
  935. #define MUIC_Menu "Menu.mui"
  936. #endif
  937.  
  938. /* Methods */
  939.  
  940.  
  941. /* Attributes */
  942.  
  943. #define MUIA_Menu_Enabled               0x8042ed48 /* V8 isg BOOL              */
  944. #define MUIA_Menu_Title                 0x8042a0e3 /* V8 isg STRPTR            */
  945.  
  946.  
  947.  
  948. /****************************************************************************/
  949. /** Menuitem                                                               **/
  950. /****************************************************************************/
  951.  
  952. #ifdef _DCC
  953. extern char MUIC_Menuitem[];
  954. #else
  955. #define MUIC_Menuitem "Menuitem.mui"
  956. #endif
  957.  
  958. /* Methods */
  959.  
  960.  
  961. /* Attributes */
  962.  
  963. #define MUIA_Menuitem_Checked           0x8042562a /* V8 isg BOOL              */
  964. #define MUIA_Menuitem_Checkit           0x80425ace /* V8 isg BOOL              */
  965. #define MUIA_Menuitem_Enabled           0x8042ae0f /* V8 isg BOOL              */
  966. #define MUIA_Menuitem_Exclude           0x80420bc6 /* V8 isg LONG              */
  967. #define MUIA_Menuitem_Shortcut          0x80422030 /* V8 isg char              */
  968. #define MUIA_Menuitem_Title             0x804218be /* V8 isg STRPTR            */
  969. #define MUIA_Menuitem_Toggle            0x80424d5c /* V8 isg BOOL              */
  970. #define MUIA_Menuitem_Trigger           0x80426f32 /* V8 ..g struct MenuItem * */
  971.  
  972.  
  973.  
  974. /****************************************************************************/
  975. /** Application                                                            **/
  976. /****************************************************************************/
  977.  
  978. #ifdef _DCC
  979. extern char MUIC_Application[];
  980. #else
  981. #define MUIC_Application "Application.mui"
  982. #endif
  983.  
  984. /* Methods */
  985.  
  986. #ifdef MUI_OBSOLETE
  987. #define MUIM_Application_GetMenuCheck  0x8042c0a7 /* V4 */
  988. #endif /* MUI_OBSOLETE */
  989. #ifdef MUI_OBSOLETE
  990. #define MUIM_Application_GetMenuState  0x8042a58f /* V4 */
  991. #endif /* MUI_OBSOLETE */
  992. #define MUIM_Application_Input         0x8042d0f5 /* V4 */
  993. #define MUIM_Application_InputBuffered 0x80427e59 /* V4 */
  994. #define MUIM_Application_Load          0x8042f90d /* V4 */
  995. #define MUIM_Application_PushMethod    0x80429ef8 /* V4 */
  996. #define MUIM_Application_ReturnID      0x804276ef /* V4 */
  997. #define MUIM_Application_Save          0x804227ef /* V4 */
  998. #ifdef MUI_OBSOLETE
  999. #define MUIM_Application_SetMenuCheck  0x8042a707 /* V4 */
  1000. #endif /* MUI_OBSOLETE */
  1001. #ifdef MUI_OBSOLETE
  1002. #define MUIM_Application_SetMenuState  0x80428bef /* V4 */
  1003. #endif /* MUI_OBSOLETE */
  1004. #define MUIM_Application_ShowHelp      0x80426479 /* V4 */
  1005. struct  MUIP_Application_GetMenuCheck  { ULONG id; ULONG MenuID; };
  1006. struct  MUIP_Application_GetMenuState  { ULONG id; ULONG MenuID; };
  1007. struct  MUIP_Application_Input         { ULONG id; LONGBITS *signal; };
  1008. struct  MUIP_Application_Load          { ULONG id; STRPTR name; };
  1009. struct  MUIP_Application_PushMethod    { ULONG id; Object *dest; LONG count; /* ... */ };
  1010. struct  MUIP_Application_ReturnID      { ULONG id; ULONG retid; };
  1011. struct  MUIP_Application_Save          { ULONG id; STRPTR name; };
  1012. struct  MUIP_Application_SetMenuCheck  { ULONG id; ULONG MenuID; LONG stat; };
  1013. struct  MUIP_Application_SetMenuState  { ULONG id; ULONG MenuID; LONG stat; };
  1014. struct  MUIP_Application_ShowHelp      { ULONG id; Object *window; char *name; char *node; LONG line; };
  1015.  
  1016. /* Attributes */
  1017.  
  1018. #define MUIA_Application_Active         0x804260ab /* V4 isg BOOL              */
  1019. #define MUIA_Application_Author         0x80424842 /* V4 i.g STRPTR            */
  1020. #define MUIA_Application_Base           0x8042e07a /* V4 i.g STRPTR            */
  1021. #define MUIA_Application_Broker         0x8042dbce /* V4 ..g Broker *          */
  1022. #define MUIA_Application_BrokerHook     0x80428f4b /* V4 isg struct Hook *     */
  1023. #define MUIA_Application_BrokerPort     0x8042e0ad /* V6 ..g struct MsgPort *  */
  1024. #define MUIA_Application_BrokerPri      0x8042c8d0 /* V6 i.g LONG              */
  1025. #define MUIA_Application_Commands       0x80428648 /* V4 isg struct MUI_Command * */
  1026. #define MUIA_Application_Copyright      0x8042ef4d /* V4 i.g STRPTR            */
  1027. #define MUIA_Application_Description    0x80421fc6 /* V4 i.g STRPTR            */
  1028. #define MUIA_Application_DiskObject     0x804235cb /* V4 isg struct DiskObject * */
  1029. #define MUIA_Application_DoubleStart    0x80423bc6 /* V4 ..g BOOL              */
  1030. #define MUIA_Application_DropObject     0x80421266 /* V5 is. Object *          */
  1031. #define MUIA_Application_ForceQuit      0x804257df /* V8 ..g BOOL              */
  1032. #define MUIA_Application_HelpFile       0x804293f4 /* V8 isg STRPTR            */
  1033. #define MUIA_Application_Iconified      0x8042a07f /* V4 .sg BOOL              */
  1034. #ifdef MUI_OBSOLETE
  1035. #define MUIA_Application_Menu           0x80420e1f /* V4 i.g struct NewMenu *  */
  1036. #endif /* MUI_OBSOLETE */
  1037. #define MUIA_Application_MenuAction     0x80428961 /* V4 ..g ULONG             */
  1038. #define MUIA_Application_MenuHelp       0x8042540b /* V4 ..g ULONG             */
  1039. #define MUIA_Application_Menustrip      0x804252d9 /* V8 i.. Object *          */
  1040. #define MUIA_Application_RexxHook       0x80427c42 /* V7 isg struct Hook *     */
  1041. #define MUIA_Application_RexxMsg        0x8042fd88 /* V4 ..g struct RxMsg *    */
  1042. #define MUIA_Application_RexxString     0x8042d711 /* V4 .s. STRPTR            */
  1043. #define MUIA_Application_SingleTask     0x8042a2c8 /* V4 i.. BOOL              */
  1044. #define MUIA_Application_Sleep          0x80425711 /* V4 .s. BOOL              */
  1045. #define MUIA_Application_Title          0x804281b8 /* V4 i.g STRPTR            */
  1046. #define MUIA_Application_Version        0x8042b33f /* V4 i.g STRPTR            */
  1047. #define MUIA_Application_Window         0x8042bfe0 /* V4 i.. Object *          */
  1048.  
  1049.  
  1050.  
  1051. /****************************************************************************/
  1052. /** Window                                                                 **/
  1053. /****************************************************************************/
  1054.  
  1055. #ifdef _DCC
  1056. extern char MUIC_Window[];
  1057. #else
  1058. #define MUIC_Window "Window.mui"
  1059. #endif
  1060.  
  1061. /* Methods */
  1062.  
  1063. #ifdef MUI_OBSOLETE
  1064. #define MUIM_Window_GetMenuCheck       0x80420414 /* V4 */
  1065. #endif /* MUI_OBSOLETE */
  1066. #ifdef MUI_OBSOLETE
  1067. #define MUIM_Window_GetMenuState       0x80420d2f /* V4 */
  1068. #endif /* MUI_OBSOLETE */
  1069. #define MUIM_Window_ScreenToBack       0x8042913d /* V4 */
  1070. #define MUIM_Window_ScreenToFront      0x804227a4 /* V4 */
  1071. #define MUIM_Window_SetCycleChain      0x80426510 /* V4 */
  1072. #ifdef MUI_OBSOLETE
  1073. #define MUIM_Window_SetMenuCheck       0x80422243 /* V4 */
  1074. #endif /* MUI_OBSOLETE */
  1075. #ifdef MUI_OBSOLETE
  1076. #define MUIM_Window_SetMenuState       0x80422b5e /* V4 */
  1077. #endif /* MUI_OBSOLETE */
  1078. #define MUIM_Window_ToBack             0x8042152e /* V4 */
  1079. #define MUIM_Window_ToFront            0x8042554f /* V4 */
  1080. struct  MUIP_Window_GetMenuCheck       { ULONG id; ULONG MenuID; };
  1081. struct  MUIP_Window_GetMenuState       { ULONG id; ULONG MenuID; };
  1082. struct  MUIP_Window_SetCycleChain      { ULONG id; Object *obj[1]; };
  1083. struct  MUIP_Window_SetMenuCheck       { ULONG id; ULONG MenuID; LONG stat; };
  1084. struct  MUIP_Window_SetMenuState       { ULONG id; ULONG MenuID; LONG stat; };
  1085.  
  1086. /* Attributes */
  1087.  
  1088. #define MUIA_Window_Activate            0x80428d2f /* V4 isg BOOL              */
  1089. #define MUIA_Window_ActiveObject        0x80427925 /* V4 .sg Object *          */
  1090. #define MUIA_Window_AltHeight           0x8042cce3 /* V4 i.g LONG              */
  1091. #define MUIA_Window_AltLeftEdge         0x80422d65 /* V4 i.g LONG              */
  1092. #define MUIA_Window_AltTopEdge          0x8042e99b /* V4 i.g LONG              */
  1093. #define MUIA_Window_AltWidth            0x804260f4 /* V4 i.g LONG              */
  1094. #define MUIA_Window_AppWindow           0x804280cf /* V5 i.. BOOL              */
  1095. #define MUIA_Window_Backdrop            0x8042c0bb /* V4 i.. BOOL              */
  1096. #define MUIA_Window_Borderless          0x80429b79 /* V4 i.. BOOL              */
  1097. #define MUIA_Window_CloseGadget         0x8042a110 /* V4 i.. BOOL              */
  1098. #define MUIA_Window_CloseRequest        0x8042e86e /* V4 ..g BOOL              */
  1099. #define MUIA_Window_DefaultObject       0x804294d7 /* V4 isg Object *          */
  1100. #define MUIA_Window_DepthGadget         0x80421923 /* V4 i.. BOOL              */
  1101. #define MUIA_Window_DragBar             0x8042045d /* V4 i.. BOOL              */
  1102. #define MUIA_Window_FancyDrawing        0x8042bd0e /* V8 isg BOOL              */
  1103. #define MUIA_Window_Height              0x80425846 /* V4 i.g LONG              */
  1104. #define MUIA_Window_ID                  0x804201bd /* V4 isg ULONG             */
  1105. #define MUIA_Window_InputEvent          0x804247d8 /* V4 ..g struct InputEvent * */
  1106. #define MUIA_Window_LeftEdge            0x80426c65 /* V4 i.g LONG              */
  1107. #ifdef MUI_OBSOLETE
  1108. #define MUIA_Window_Menu                0x8042db94 /* V4 i.. struct NewMenu *  */
  1109. #endif /* MUI_OBSOLETE */
  1110. #define MUIA_Window_MenuAction          0x80427521 /* V8 isg ULONG             */
  1111. #define MUIA_Window_Menustrip           0x8042855e /* V8 i.. Object *          */
  1112. #define MUIA_Window_NoMenus             0x80429df5 /* V4 is. BOOL              */
  1113. #define MUIA_Window_Open                0x80428aa0 /* V4 .sg BOOL              */
  1114. #define MUIA_Window_PublicScreen        0x804278e4 /* V6 isg STRPTR            */
  1115. #define MUIA_Window_RefWindow           0x804201f4 /* V4 is. Object *          */
  1116. #define MUIA_Window_RootObject          0x8042cba5 /* V4 i.. Object *          */
  1117. #define MUIA_Window_Screen              0x8042df4f /* V4 isg struct Screen *   */
  1118. #define MUIA_Window_ScreenTitle         0x804234b0 /* V5 isg STRPTR            */
  1119. #define MUIA_Window_SizeGadget          0x8042e33d /* V4 i.. BOOL              */
  1120. #define MUIA_Window_SizeRight           0x80424780 /* V4 i.. BOOL              */
  1121. #define MUIA_Window_Sleep               0x8042e7db /* V4 .sg BOOL              */
  1122. #define MUIA_Window_Title               0x8042ad3d /* V4 isg STRPTR            */
  1123. #define MUIA_Window_TopEdge             0x80427c66 /* V4 i.g LONG              */
  1124. #define MUIA_Window_Width               0x8042dcae /* V4 i.g LONG              */
  1125. #define MUIA_Window_Window              0x80426a42 /* V4 ..g struct Window *   */
  1126.  
  1127. #define MUIV_Window_ActiveObject_None 0
  1128. #define MUIV_Window_ActiveObject_Next -1
  1129. #define MUIV_Window_ActiveObject_Prev -2
  1130. #define MUIV_Window_AltHeight_MinMax(p) (0-(p))
  1131. #define MUIV_Window_AltHeight_Visible(p) (-100-(p))
  1132. #define MUIV_Window_AltHeight_Screen(p) (-200-(p))
  1133. #define MUIV_Window_AltHeight_Scaled -1000
  1134. #define MUIV_Window_AltLeftEdge_Centered -1
  1135. #define MUIV_Window_AltLeftEdge_Moused -2
  1136. #define MUIV_Window_AltLeftEdge_NoChange -1000
  1137. #define MUIV_Window_AltTopEdge_Centered -1
  1138. #define MUIV_Window_AltTopEdge_Moused -2
  1139. #define MUIV_Window_AltTopEdge_Delta(p) (-3-(p))
  1140. #define MUIV_Window_AltTopEdge_NoChange -1000
  1141. #define MUIV_Window_AltWidth_MinMax(p) (0-(p))
  1142. #define MUIV_Window_AltWidth_Visible(p) (-100-(p))
  1143. #define MUIV_Window_AltWidth_Screen(p) (-200-(p))
  1144. #define MUIV_Window_AltWidth_Scaled -1000
  1145. #define MUIV_Window_Height_MinMax(p) (0-(p))
  1146. #define MUIV_Window_Height_Visible(p) (-100-(p))
  1147. #define MUIV_Window_Height_Screen(p) (-200-(p))
  1148. #define MUIV_Window_Height_Scaled -1000
  1149. #define MUIV_Window_Height_Default -1001
  1150. #define MUIV_Window_LeftEdge_Centered -1
  1151. #define MUIV_Window_LeftEdge_Moused -2
  1152. #ifdef MUI_OBSOLETE
  1153. #define MUIV_Window_Menu_NoMenu -1
  1154. #endif /* MUI_OBSOLETE */
  1155. #define MUIV_Window_TopEdge_Centered -1
  1156. #define MUIV_Window_TopEdge_Moused -2
  1157. #define MUIV_Window_TopEdge_Delta(p) (-3-(p))
  1158. #define MUIV_Window_Width_MinMax(p) (0-(p))
  1159. #define MUIV_Window_Width_Visible(p) (-100-(p))
  1160. #define MUIV_Window_Width_Screen(p) (-200-(p))
  1161. #define MUIV_Window_Width_Scaled -1000
  1162. #define MUIV_Window_Width_Default -1001
  1163.  
  1164.  
  1165. /****************************************************************************/
  1166. /** Area                                                                   **/
  1167. /****************************************************************************/
  1168.  
  1169. #ifdef _DCC
  1170. extern char MUIC_Area[];
  1171. #else
  1172. #define MUIC_Area "Area.mui"
  1173. #endif
  1174.  
  1175. /* Methods */
  1176.  
  1177. #define MUIM_AskMinMax                 0x80423874 /* Custom Class */ /* V4 */
  1178. #define MUIM_Cleanup                   0x8042d985 /* Custom Class */ /* V4 */
  1179. #define MUIM_Draw                      0x80426f3f /* Custom Class */ /* V4 */
  1180. #define MUIM_HandleInput               0x80422a1a /* Custom Class */ /* V4 */
  1181. #define MUIM_Hide                      0x8042f20f /* Custom Class */ /* V4 */
  1182. #define MUIM_Setup                     0x80428354 /* Custom Class */ /* V4 */
  1183. #define MUIM_Show                      0x8042cc84 /* Custom Class */ /* V4 */
  1184. struct  MUIP_AskMinMax                 { ULONG id; struct MUI_MinMax *MinMaxInfo; }; /* Custom Class */
  1185. struct  MUIP_Draw                      { ULONG id; ULONG flags; }; /* Custom Class */
  1186. struct  MUIP_HandleInput               { ULONG id; struct IntuiMessage *imsg; LONG muikey; }; /* Custom Class */
  1187. struct  MUIP_Setup                     { ULONG id; struct MUI_RenderInfo *RenderInfo; }; /* Custom Class */
  1188.  
  1189. /* Attributes */
  1190.  
  1191. #define MUIA_ApplicationObject          0x8042d3ee /* V4 ..g Object *          */
  1192. #define MUIA_Background                 0x8042545b /* V4 is. LONG              */
  1193. #define MUIA_BottomEdge                 0x8042e552 /* V4 ..g LONG              */
  1194. #define MUIA_ControlChar                0x8042120b /* V4 i.. char              */
  1195. #define MUIA_Disabled                   0x80423661 /* V4 isg BOOL              */
  1196. #define MUIA_ExportID                   0x8042d76e /* V4 isg LONG              */
  1197. #define MUIA_FixHeight                  0x8042a92b /* V4 i.. LONG              */
  1198. #define MUIA_FixHeightTxt               0x804276f2 /* V4 i.. LONG              */
  1199. #define MUIA_FixWidth                   0x8042a3f1 /* V4 i.. LONG              */
  1200. #define MUIA_FixWidthTxt                0x8042d044 /* V4 i.. STRPTR            */
  1201. #define MUIA_Font                       0x8042be50 /* V4 i.g struct TextFont * */
  1202. #define MUIA_Frame                      0x8042ac64 /* V4 i.. LONG              */
  1203. #define MUIA_FramePhantomHoriz          0x8042ed76 /* V4 i.. BOOL              */
  1204. #define MUIA_FrameTitle                 0x8042d1c7 /* V4 i.. STRPTR            */
  1205. #define MUIA_Height                     0x80423237 /* V4 ..g LONG              */
  1206. #define MUIA_HorizWeight                0x80426db9 /* V4 i.. LONG              */
  1207. #define MUIA_InnerBottom                0x8042f2c0 /* V4 i.. LONG              */
  1208. #define MUIA_InnerLeft                  0x804228f8 /* V4 i.. LONG              */
  1209. #define MUIA_InnerRight                 0x804297ff /* V4 i.. LONG              */
  1210. #define MUIA_InnerTop                   0x80421eb6 /* V4 i.. LONG              */
  1211. #define MUIA_InputMode                  0x8042fb04 /* V4 i.. LONG              */
  1212. #define MUIA_LeftEdge                   0x8042bec6 /* V4 ..g LONG              */
  1213. #define MUIA_Pressed                    0x80423535 /* V4 ..g BOOL              */
  1214. #define MUIA_RightEdge                  0x8042ba82 /* V4 ..g LONG              */
  1215. #define MUIA_Selected                   0x8042654b /* V4 isg BOOL              */
  1216. #define MUIA_ShowMe                     0x80429ba8 /* V4 isg BOOL              */
  1217. #define MUIA_ShowSelState               0x8042caac /* V4 i.. BOOL              */
  1218. #define MUIA_Timer                      0x80426435 /* V4 ..g LONG              */
  1219. #define MUIA_TopEdge                    0x8042509b /* V4 ..g LONG              */
  1220. #define MUIA_VertWeight                 0x804298d0 /* V4 i.. LONG              */
  1221. #define MUIA_Weight                     0x80421d1f /* V4 i.. LONG              */
  1222. #define MUIA_Width                      0x8042b59c /* V4 ..g LONG              */
  1223. #define MUIA_Window                     0x80421591 /* V4 ..g struct Window *   */
  1224. #define MUIA_WindowObject               0x8042669e /* V4 ..g Object *          */
  1225.  
  1226. #define MUIV_Font_Inherit 0
  1227. #define MUIV_Font_Normal -1
  1228. #define MUIV_Font_List -2
  1229. #define MUIV_Font_Tiny -3
  1230. #define MUIV_Font_Fixed -4
  1231. #define MUIV_Font_Title -5
  1232. #define MUIV_Font_Big -6
  1233. #define MUIV_Frame_None 0
  1234. #define MUIV_Frame_Button 1
  1235. #define MUIV_Frame_ImageButton 2
  1236. #define MUIV_Frame_Text 3
  1237. #define MUIV_Frame_String 4
  1238. #define MUIV_Frame_ReadList 5
  1239. #define MUIV_Frame_InputList 6
  1240. #define MUIV_Frame_Prop 7
  1241. #define MUIV_Frame_Gauge 8
  1242. #define MUIV_Frame_Group 9
  1243. #define MUIV_Frame_PopUp 10
  1244. #define MUIV_Frame_Virtual 11
  1245. #define MUIV_Frame_Slider 12
  1246. #define MUIV_Frame_Count 13
  1247. #define MUIV_InputMode_None 0
  1248. #define MUIV_InputMode_RelVerify 1
  1249. #define MUIV_InputMode_Immediate 2
  1250. #define MUIV_InputMode_Toggle 3
  1251.  
  1252.  
  1253. /****************************************************************************/
  1254. /** Rectangle                                                              **/
  1255. /****************************************************************************/
  1256.  
  1257. #ifdef _DCC
  1258. extern char MUIC_Rectangle[];
  1259. #else
  1260. #define MUIC_Rectangle "Rectangle.mui"
  1261. #endif
  1262.  
  1263. /* Attributes */
  1264.  
  1265. #define MUIA_Rectangle_HBar             0x8042c943 /* V7 i.g BOOL              */
  1266. #define MUIA_Rectangle_VBar             0x80422204 /* V7 i.g BOOL              */
  1267.  
  1268.  
  1269.  
  1270. /****************************************************************************/
  1271. /** Image                                                                  **/
  1272. /****************************************************************************/
  1273.  
  1274. #ifdef _DCC
  1275. extern char MUIC_Image[];
  1276. #else
  1277. #define MUIC_Image "Image.mui"
  1278. #endif
  1279.  
  1280. /* Attributes */
  1281.  
  1282. #define MUIA_Image_FontMatch            0x8042815d /* V4 i.. BOOL              */
  1283. #define MUIA_Image_FontMatchHeight      0x80429f26 /* V4 i.. BOOL              */
  1284. #define MUIA_Image_FontMatchWidth       0x804239bf /* V4 i.. BOOL              */
  1285. #define MUIA_Image_FreeHoriz            0x8042da84 /* V4 i.. BOOL              */
  1286. #define MUIA_Image_FreeVert             0x8042ea28 /* V4 i.. BOOL              */
  1287. #define MUIA_Image_OldImage             0x80424f3d /* V4 i.. struct Image *    */
  1288. #define MUIA_Image_Spec                 0x804233d5 /* V4 i.. char *            */
  1289. #define MUIA_Image_State                0x8042a3ad /* V4 is. LONG              */
  1290.  
  1291.  
  1292.  
  1293. /****************************************************************************/
  1294. /** Bitmap                                                                 **/
  1295. /****************************************************************************/
  1296.  
  1297. #ifdef _DCC
  1298. extern char MUIC_Bitmap[];
  1299. #else
  1300. #define MUIC_Bitmap "Bitmap.mui"
  1301. #endif
  1302.  
  1303. /* Attributes */
  1304.  
  1305. #define MUIA_Bitmap_Bitmap              0x804279bd /* V8 isg struct BitMap *   */
  1306. #define MUIA_Bitmap_Height              0x80421560 /* V8 isg LONG              */
  1307. #define MUIA_Bitmap_MappingTable        0x8042e23d /* V8 isg UBYTE *           */
  1308. #define MUIA_Bitmap_SourceColors        0x80425360 /* V8 isg ULONG *           */
  1309. #define MUIA_Bitmap_Transparent         0x80422805 /* V8 isg LONG              */
  1310. #define MUIA_Bitmap_Width               0x8042eb3a /* V8 isg LONG              */
  1311.  
  1312.  
  1313.  
  1314. /****************************************************************************/
  1315. /** Bodychunk                                                              **/
  1316. /****************************************************************************/
  1317.  
  1318. #ifdef _DCC
  1319. extern char MUIC_Bodychunk[];
  1320. #else
  1321. #define MUIC_Bodychunk "Bodychunk.mui"
  1322. #endif
  1323.  
  1324. /* Attributes */
  1325.  
  1326. #define MUIA_Bodychunk_Body             0x8042ca67 /* V8 isg UBYTE *           */
  1327. #define MUIA_Bodychunk_Compression      0x8042de5f /* V8 isg UBYTE             */
  1328. #define MUIA_Bodychunk_Depth            0x8042c392 /* V8 isg LONG              */
  1329. #define MUIA_Bodychunk_Masking          0x80423b0e /* V8 isg UBYTE             */
  1330.  
  1331.  
  1332.  
  1333. /****************************************************************************/
  1334. /** Text                                                                   **/
  1335. /****************************************************************************/
  1336.  
  1337. #ifdef _DCC
  1338. extern char MUIC_Text[];
  1339. #else
  1340. #define MUIC_Text "Text.mui"
  1341. #endif
  1342.  
  1343. /* Attributes */
  1344.  
  1345. #define MUIA_Text_Contents              0x8042f8dc /* V4 isg STRPTR            */
  1346. #define MUIA_Text_HiChar                0x804218ff /* V4 i.. char              */
  1347. #define MUIA_Text_PreParse              0x8042566d /* V4 isg STRPTR            */
  1348. #define MUIA_Text_SetMax                0x80424d0a /* V4 i.. BOOL              */
  1349. #define MUIA_Text_SetMin                0x80424e10 /* V4 i.. BOOL              */
  1350.  
  1351.  
  1352.  
  1353. /****************************************************************************/
  1354. /** String                                                                 **/
  1355. /****************************************************************************/
  1356.  
  1357. #ifdef _DCC
  1358. extern char MUIC_String[];
  1359. #else
  1360. #define MUIC_String "String.mui"
  1361. #endif
  1362.  
  1363. /* Attributes */
  1364.  
  1365. #define MUIA_String_Accept              0x8042e3e1 /* V4 isg STRPTR            */
  1366. #define MUIA_String_Acknowledge         0x8042026c /* V4 ..g STRPTR            */
  1367. #define MUIA_String_AttachedList        0x80420fd2 /* V4 i.. Object *          */
  1368. #define MUIA_String_BufferPos           0x80428b6c /* V4 .sg LONG              */
  1369. #define MUIA_String_Contents            0x80428ffd /* V4 isg STRPTR            */
  1370. #define MUIA_String_DisplayPos          0x8042ccbf /* V4 .sg LONG              */
  1371. #define MUIA_String_EditHook            0x80424c33 /* V7 isg struct Hook *     */
  1372. #define MUIA_String_Format              0x80427484 /* V4 i.g LONG              */
  1373. #define MUIA_String_Integer             0x80426e8a /* V4 isg ULONG             */
  1374. #define MUIA_String_MaxLen              0x80424984 /* V4 i.. LONG              */
  1375. #define MUIA_String_Reject              0x8042179c /* V4 isg STRPTR            */
  1376. #define MUIA_String_Secret              0x80428769 /* V4 i.g BOOL              */
  1377.  
  1378. #define MUIV_String_Format_Left 0
  1379. #define MUIV_String_Format_Center 1
  1380. #define MUIV_String_Format_Right 2
  1381.  
  1382.  
  1383. /****************************************************************************/
  1384. /** Prop                                                                   **/
  1385. /****************************************************************************/
  1386.  
  1387. #ifdef _DCC
  1388. extern char MUIC_Prop[];
  1389. #else
  1390. #define MUIC_Prop "Prop.mui"
  1391. #endif
  1392.  
  1393. /* Attributes */
  1394.  
  1395. #define MUIA_Prop_Entries               0x8042fbdb /* V4 isg LONG              */
  1396. #define MUIA_Prop_First                 0x8042d4b2 /* V4 isg LONG              */
  1397. #define MUIA_Prop_Horiz                 0x8042f4f3 /* V4 i.g BOOL              */
  1398. #define MUIA_Prop_Slider                0x80429c3a /* V4 isg BOOL              */
  1399. #define MUIA_Prop_Visible               0x8042fea6 /* V4 isg LONG              */
  1400.  
  1401.  
  1402.  
  1403. /****************************************************************************/
  1404. /** Gauge                                                                  **/
  1405. /****************************************************************************/
  1406.  
  1407. #ifdef _DCC
  1408. extern char MUIC_Gauge[];
  1409. #else
  1410. #define MUIC_Gauge "Gauge.mui"
  1411. #endif
  1412.  
  1413. /* Attributes */
  1414.  
  1415. #define MUIA_Gauge_Current              0x8042f0dd /* V4 isg LONG              */
  1416. #define MUIA_Gauge_Divide               0x8042d8df /* V4 isg BOOL              */
  1417. #define MUIA_Gauge_Horiz                0x804232dd /* V4 i.. BOOL              */
  1418. #define MUIA_Gauge_InfoText             0x8042bf15 /* V7 isg char *            */
  1419. #define MUIA_Gauge_Max                  0x8042bcdb /* V4 isg LONG              */
  1420.  
  1421.  
  1422.  
  1423. /****************************************************************************/
  1424. /** Scale                                                                  **/
  1425. /****************************************************************************/
  1426.  
  1427. #ifdef _DCC
  1428. extern char MUIC_Scale[];
  1429. #else
  1430. #define MUIC_Scale "Scale.mui"
  1431. #endif
  1432.  
  1433. /* Attributes */
  1434.  
  1435. #define MUIA_Scale_Horiz                0x8042919a /* V4 isg BOOL              */
  1436.  
  1437.  
  1438.  
  1439. /****************************************************************************/
  1440. /** Boopsi                                                                 **/
  1441. /****************************************************************************/
  1442.  
  1443. #ifdef _DCC
  1444. extern char MUIC_Boopsi[];
  1445. #else
  1446. #define MUIC_Boopsi "Boopsi.mui"
  1447. #endif
  1448.  
  1449. /* Attributes */
  1450.  
  1451. #define MUIA_Boopsi_Class               0x80426999 /* V4 isg struct IClass *   */
  1452. #define MUIA_Boopsi_ClassID             0x8042bfa3 /* V4 isg char *            */
  1453. #define MUIA_Boopsi_MaxHeight           0x8042757f /* V4 isg ULONG             */
  1454. #define MUIA_Boopsi_MaxWidth            0x8042bcb1 /* V4 isg ULONG             */
  1455. #define MUIA_Boopsi_MinHeight           0x80422c93 /* V4 isg ULONG             */
  1456. #define MUIA_Boopsi_MinWidth            0x80428fb2 /* V4 isg ULONG             */
  1457. #define MUIA_Boopsi_Object              0x80420178 /* V4 ..g Object *          */
  1458. #define MUIA_Boopsi_Remember            0x8042f4bd /* V4 i.. ULONG             */
  1459. #define MUIA_Boopsi_TagDrawInfo         0x8042bae7 /* V4 isg ULONG             */
  1460. #define MUIA_Boopsi_TagScreen           0x8042bc71 /* V4 isg ULONG             */
  1461. #define MUIA_Boopsi_TagWindow           0x8042e11d /* V4 isg ULONG             */
  1462.  
  1463.  
  1464.  
  1465. /****************************************************************************/
  1466. /** Colorfield                                                             **/
  1467. /****************************************************************************/
  1468.  
  1469. #ifdef _DCC
  1470. extern char MUIC_Colorfield[];
  1471. #else
  1472. #define MUIC_Colorfield "Colorfield.mui"
  1473. #endif
  1474.  
  1475. /* Attributes */
  1476.  
  1477. #define MUIA_Colorfield_Blue            0x8042d3b0 /* V4 isg ULONG             */
  1478. #define MUIA_Colorfield_Green           0x80424466 /* V4 isg ULONG             */
  1479. #define MUIA_Colorfield_Pen             0x8042713a /* V4 ..g ULONG             */
  1480. #define MUIA_Colorfield_Red             0x804279f6 /* V4 isg ULONG             */
  1481. #define MUIA_Colorfield_RGB             0x8042677a /* V4 isg ULONG *           */
  1482.  
  1483.  
  1484.  
  1485. /****************************************************************************/
  1486. /** List                                                                   **/
  1487. /****************************************************************************/
  1488.  
  1489. #ifdef _DCC
  1490. extern char MUIC_List[];
  1491. #else
  1492. #define MUIC_List "List.mui"
  1493. #endif
  1494.  
  1495. /* Methods */
  1496.  
  1497. #define MUIM_List_Clear                0x8042ad89 /* V4 */
  1498. #define MUIM_List_Exchange             0x8042468c /* V4 */
  1499. #define MUIM_List_GetEntry             0x804280ec /* V4 */
  1500. #define MUIM_List_Insert               0x80426c87 /* V4 */
  1501. #define MUIM_List_InsertSingle         0x804254d5 /* V7 */
  1502. #define MUIM_List_Jump                 0x8042baab /* V4 */
  1503. #define MUIM_List_Move                 0x804253c2 /* V9 */
  1504. #define MUIM_List_NextSelected         0x80425f17 /* V6 */
  1505. #define MUIM_List_Redraw               0x80427993 /* V4 */
  1506. #define MUIM_List_Remove               0x8042647e /* V4 */
  1507. #define MUIM_List_Select               0x804252d8 /* V4 */
  1508. #define MUIM_List_Sort                 0x80422275 /* V4 */
  1509. struct  MUIP_List_Exchange             { ULONG id; LONG pos1; LONG pos2; };
  1510. struct  MUIP_List_GetEntry             { ULONG id; LONG pos; APTR *entry; };
  1511. struct  MUIP_List_Insert               { ULONG id; APTR *entries; LONG count; LONG pos; };
  1512. struct  MUIP_List_InsertSingle         { ULONG id; APTR entry; LONG pos; };
  1513. struct  MUIP_List_Jump                 { ULONG id; LONG pos; };
  1514. struct  MUIP_List_Move                 { ULONG id; LONG from; LONG to; };
  1515. struct  MUIP_List_NextSelected         { ULONG id; LONG *pos; };
  1516. struct  MUIP_List_Redraw               { ULONG id; LONG pos; };
  1517. struct  MUIP_List_Remove               { ULONG id; LONG pos; };
  1518. struct  MUIP_List_Select               { ULONG id; LONG pos; LONG seltype; LONG *state; };
  1519.  
  1520. /* Attributes */
  1521.  
  1522. #define MUIA_List_Active                0x8042391c /* V4 isg LONG              */
  1523. #define MUIA_List_AdjustHeight          0x8042850d /* V4 i.. BOOL              */
  1524. #define MUIA_List_AdjustWidth           0x8042354a /* V4 i.. BOOL              */
  1525. #define MUIA_List_CompareHook           0x80425c14 /* V4 is. struct Hook *     */
  1526. #define MUIA_List_ConstructHook         0x8042894f /* V4 is. struct Hook *     */
  1527. #define MUIA_List_DestructHook          0x804297ce /* V4 is. struct Hook *     */
  1528. #define MUIA_List_DisplayHook           0x8042b4d5 /* V4 is. struct Hook *     */
  1529. #define MUIA_List_Entries               0x80421654 /* V4 ..g LONG              */
  1530. #define MUIA_List_First                 0x804238d4 /* V4 ..g LONG              */
  1531. #define MUIA_List_Format                0x80423c0a /* V4 isg STRPTR            */
  1532. #define MUIA_List_InsertPosition        0x8042d0cd /* V9 ..g LONG              */
  1533. #define MUIA_List_MultiTestHook         0x8042c2c6 /* V4 is. struct Hook *     */
  1534. #define MUIA_List_Quiet                 0x8042d8c7 /* V4 .s. BOOL              */
  1535. #define MUIA_List_SourceArray           0x8042c0a0 /* V4 i.. APTR              */
  1536. #define MUIA_List_Title                 0x80423e66 /* V6 isg char *            */
  1537. #define MUIA_List_Visible               0x8042191f /* V4 ..g LONG              */
  1538.  
  1539. #define MUIV_List_Active_Off -1
  1540. #define MUIV_List_Active_Top -2
  1541. #define MUIV_List_Active_Bottom -3
  1542. #define MUIV_List_Active_Up -4
  1543. #define MUIV_List_Active_Down -5
  1544. #define MUIV_List_Active_PageUp -6
  1545. #define MUIV_List_Active_PageDown -7
  1546. #define MUIV_List_ConstructHook_String -1
  1547. #define MUIV_List_CopyHook_String -1
  1548. #define MUIV_List_CursorType_None 0
  1549. #define MUIV_List_CursorType_Bar 1
  1550. #define MUIV_List_CursorType_Rect 2
  1551. #define MUIV_List_DestructHook_String -1
  1552.  
  1553.  
  1554. /****************************************************************************/
  1555. /** Floattext                                                              **/
  1556. /****************************************************************************/
  1557.  
  1558. #ifdef _DCC
  1559. extern char MUIC_Floattext[];
  1560. #else
  1561. #define MUIC_Floattext "Floattext.mui"
  1562. #endif
  1563.  
  1564. /* Attributes */
  1565.  
  1566. #define MUIA_Floattext_Justify          0x8042dc03 /* V4 isg BOOL              */
  1567. #define MUIA_Floattext_SkipChars        0x80425c7d /* V4 is. STRPTR            */
  1568. #define MUIA_Floattext_TabSize          0x80427d17 /* V4 is. LONG              */
  1569. #define MUIA_Floattext_Text             0x8042d16a /* V4 isg STRPTR            */
  1570.  
  1571.  
  1572.  
  1573. /****************************************************************************/
  1574. /** Volumelist                                                             **/
  1575. /****************************************************************************/
  1576.  
  1577. #ifdef _DCC
  1578. extern char MUIC_Volumelist[];
  1579. #else
  1580. #define MUIC_Volumelist "Volumelist.mui"
  1581. #endif
  1582.  
  1583.  
  1584. /****************************************************************************/
  1585. /** Scrmodelist                                                            **/
  1586. /****************************************************************************/
  1587.  
  1588. #ifdef _DCC
  1589. extern char MUIC_Scrmodelist[];
  1590. #else
  1591. #define MUIC_Scrmodelist "Scrmodelist.mui"
  1592. #endif
  1593.  
  1594. /* Attributes */
  1595.  
  1596.  
  1597.  
  1598.  
  1599. /****************************************************************************/
  1600. /** Dirlist                                                                **/
  1601. /****************************************************************************/
  1602.  
  1603. #ifdef _DCC
  1604. extern char MUIC_Dirlist[];
  1605. #else
  1606. #define MUIC_Dirlist "Dirlist.mui"
  1607. #endif
  1608.  
  1609. /* Methods */
  1610.  
  1611. #define MUIM_Dirlist_ReRead            0x80422d71 /* V4 */
  1612.  
  1613. /* Attributes */
  1614.  
  1615. #define MUIA_Dirlist_AcceptPattern      0x8042760a /* V4 is. STRPTR            */
  1616. #define MUIA_Dirlist_Directory          0x8042ea41 /* V4 is. STRPTR            */
  1617. #define MUIA_Dirlist_DrawersOnly        0x8042b379 /* V4 is. BOOL              */
  1618. #define MUIA_Dirlist_FilesOnly          0x8042896a /* V4 is. BOOL              */
  1619. #define MUIA_Dirlist_FilterDrawers      0x80424ad2 /* V4 is. BOOL              */
  1620. #define MUIA_Dirlist_FilterHook         0x8042ae19 /* V4 is. struct Hook *     */
  1621. #define MUIA_Dirlist_MultiSelDirs       0x80428653 /* V6 is. BOOL              */
  1622. #define MUIA_Dirlist_NumBytes           0x80429e26 /* V4 ..g LONG              */
  1623. #define MUIA_Dirlist_NumDrawers         0x80429cb8 /* V4 ..g LONG              */
  1624. #define MUIA_Dirlist_NumFiles           0x8042a6f0 /* V4 ..g LONG              */
  1625. #define MUIA_Dirlist_Path               0x80426176 /* V4 ..g STRPTR            */
  1626. #define MUIA_Dirlist_RejectIcons        0x80424808 /* V4 is. BOOL              */
  1627. #define MUIA_Dirlist_RejectPattern      0x804259c7 /* V4 is. STRPTR            */
  1628. #define MUIA_Dirlist_SortDirs           0x8042bbb9 /* V4 is. LONG              */
  1629. #define MUIA_Dirlist_SortHighLow        0x80421896 /* V4 is. BOOL              */
  1630. #define MUIA_Dirlist_SortType           0x804228bc /* V4 is. LONG              */
  1631. #define MUIA_Dirlist_Status             0x804240de /* V4 ..g LONG              */
  1632.  
  1633. #define MUIV_Dirlist_SortDirs_First 0
  1634. #define MUIV_Dirlist_SortDirs_Last 1
  1635. #define MUIV_Dirlist_SortDirs_Mix 2
  1636. #define MUIV_Dirlist_SortType_Name 0
  1637. #define MUIV_Dirlist_SortType_Date 1
  1638. #define MUIV_Dirlist_SortType_Size 2
  1639. #define MUIV_Dirlist_Status_Invalid 0
  1640. #define MUIV_Dirlist_Status_Reading 1
  1641. #define MUIV_Dirlist_Status_Valid 2
  1642.  
  1643.  
  1644. /****************************************************************************/
  1645. /** Group                                                                  **/
  1646. /****************************************************************************/
  1647.  
  1648. #ifdef _DCC
  1649. extern char MUIC_Group[];
  1650. #else
  1651. #define MUIC_Group "Group.mui"
  1652. #endif
  1653.  
  1654. /* Methods */
  1655.  
  1656.  
  1657. /* Attributes */
  1658.  
  1659. #define MUIA_Group_ActivePage           0x80424199 /* V5 isg LONG              */
  1660. #define MUIA_Group_Child                0x804226e6 /* V4 i.. Object *          */
  1661. #define MUIA_Group_Columns              0x8042f416 /* V4 is. LONG              */
  1662. #define MUIA_Group_Horiz                0x8042536b /* V4 i.. BOOL              */
  1663. #define MUIA_Group_HorizSpacing         0x8042c651 /* V4 is. LONG              */
  1664. #define MUIA_Group_PageMode             0x80421a5f /* V5 is. BOOL              */
  1665. #define MUIA_Group_Rows                 0x8042b68f /* V4 is. LONG              */
  1666. #define MUIA_Group_SameHeight           0x8042037e /* V4 i.. BOOL              */
  1667. #define MUIA_Group_SameSize             0x80420860 /* V4 i.. BOOL              */
  1668. #define MUIA_Group_SameWidth            0x8042b3ec /* V4 i.. BOOL              */
  1669. #define MUIA_Group_Spacing              0x8042866d /* V4 is. LONG              */
  1670. #define MUIA_Group_VertSpacing          0x8042e1bf /* V4 is. LONG              */
  1671.  
  1672. #define MUIV_Group_ActivePage_First 0
  1673. #define MUIV_Group_ActivePage_Last -1
  1674. #define MUIV_Group_ActivePage_Prev -2
  1675. #define MUIV_Group_ActivePage_Next -3
  1676.  
  1677.  
  1678. /****************************************************************************/
  1679. /** Register                                                               **/
  1680. /****************************************************************************/
  1681.  
  1682. #ifdef _DCC
  1683. extern char MUIC_Register[];
  1684. #else
  1685. #define MUIC_Register "Register.mui"
  1686. #endif
  1687.  
  1688. /* Attributes */
  1689.  
  1690. #define MUIA_Register_Frame             0x8042349b /* V7 i.g BOOL              */
  1691. #define MUIA_Register_Titles            0x804297ec /* V7 i.g STRPTR *          */
  1692.  
  1693.  
  1694.  
  1695. /****************************************************************************/
  1696. /** Virtgroup                                                              **/
  1697. /****************************************************************************/
  1698.  
  1699. #ifdef _DCC
  1700. extern char MUIC_Virtgroup[];
  1701. #else
  1702. #define MUIC_Virtgroup "Virtgroup.mui"
  1703. #endif
  1704.  
  1705. /* Methods */
  1706.  
  1707.  
  1708. /* Attributes */
  1709.  
  1710. #define MUIA_Virtgroup_Height           0x80423038 /* V6 ..g LONG              */
  1711. #define MUIA_Virtgroup_Left             0x80429371 /* V6 isg LONG              */
  1712. #define MUIA_Virtgroup_Top              0x80425200 /* V6 isg LONG              */
  1713. #define MUIA_Virtgroup_Width            0x80427c49 /* V6 ..g LONG              */
  1714.  
  1715.  
  1716.  
  1717. /****************************************************************************/
  1718. /** Scrollgroup                                                            **/
  1719. /****************************************************************************/
  1720.  
  1721. #ifdef _DCC
  1722. extern char MUIC_Scrollgroup[];
  1723. #else
  1724. #define MUIC_Scrollgroup "Scrollgroup.mui"
  1725. #endif
  1726.  
  1727. /* Attributes */
  1728.  
  1729. #define MUIA_Scrollgroup_Contents       0x80421261 /* V4 i.. Object *          */
  1730. #define MUIA_Scrollgroup_FreeHoriz      0x804292f3 /* V9 i.. BOOL              */
  1731. #define MUIA_Scrollgroup_FreeVert       0x804224f2 /* V9 i.. BOOL              */
  1732.  
  1733.  
  1734.  
  1735. /****************************************************************************/
  1736. /** Scrollbar                                                              **/
  1737. /****************************************************************************/
  1738.  
  1739. #ifdef _DCC
  1740. extern char MUIC_Scrollbar[];
  1741. #else
  1742. #define MUIC_Scrollbar "Scrollbar.mui"
  1743. #endif
  1744.  
  1745.  
  1746. /****************************************************************************/
  1747. /** Listview                                                               **/
  1748. /****************************************************************************/
  1749.  
  1750. #ifdef _DCC
  1751. extern char MUIC_Listview[];
  1752. #else
  1753. #define MUIC_Listview "Listview.mui"
  1754. #endif
  1755.  
  1756. /* Attributes */
  1757.  
  1758. #define MUIA_Listview_ClickColumn       0x8042d1b3 /* V7 ..g LONG              */
  1759. #define MUIA_Listview_DefClickColumn    0x8042b296 /* V7 isg LONG              */
  1760. #define MUIA_Listview_DoubleClick       0x80424635 /* V4 i.g BOOL              */
  1761. #define MUIA_Listview_Input             0x8042682d /* V4 i.. BOOL              */
  1762. #define MUIA_Listview_List              0x8042bcce /* V4 i.. Object *          */
  1763. #define MUIA_Listview_MultiSelect       0x80427e08 /* V7 i.. LONG              */
  1764. #define MUIA_Listview_SelectChange      0x8042178f /* V4 ..g BOOL              */
  1765.  
  1766. #define MUIV_Listview_MultiSelect_None 0
  1767. #define MUIV_Listview_MultiSelect_Default 1
  1768. #define MUIV_Listview_MultiSelect_Shifted 2
  1769. #define MUIV_Listview_MultiSelect_Always 3
  1770.  
  1771.  
  1772. /****************************************************************************/
  1773. /** Radio                                                                  **/
  1774. /****************************************************************************/
  1775.  
  1776. #ifdef _DCC
  1777. extern char MUIC_Radio[];
  1778. #else
  1779. #define MUIC_Radio "Radio.mui"
  1780. #endif
  1781.  
  1782. /* Attributes */
  1783.  
  1784. #define MUIA_Radio_Active               0x80429b41 /* V4 isg LONG              */
  1785. #define MUIA_Radio_Entries              0x8042b6a1 /* V4 i.. STRPTR *          */
  1786.  
  1787.  
  1788.  
  1789. /****************************************************************************/
  1790. /** Cycle                                                                  **/
  1791. /****************************************************************************/
  1792.  
  1793. #ifdef _DCC
  1794. extern char MUIC_Cycle[];
  1795. #else
  1796. #define MUIC_Cycle "Cycle.mui"
  1797. #endif
  1798.  
  1799. /* Attributes */
  1800.  
  1801. #define MUIA_Cycle_Active               0x80421788 /* V4 isg LONG              */
  1802. #define MUIA_Cycle_Entries              0x80420629 /* V4 i.. STRPTR *          */
  1803.  
  1804. #define MUIV_Cycle_Active_Next -1
  1805. #define MUIV_Cycle_Active_Prev -2
  1806.  
  1807.  
  1808. /****************************************************************************/
  1809. /** Slider                                                                 **/
  1810. /****************************************************************************/
  1811.  
  1812. #ifdef _DCC
  1813. extern char MUIC_Slider[];
  1814. #else
  1815. #define MUIC_Slider "Slider.mui"
  1816. #endif
  1817.  
  1818. /* Attributes */
  1819.  
  1820. #define MUIA_Slider_Level               0x8042ae3a /* V4 isg LONG              */
  1821. #define MUIA_Slider_Max                 0x8042d78a /* V4 isg LONG              */
  1822. #define MUIA_Slider_Min                 0x8042e404 /* V4 isg LONG              */
  1823. #define MUIA_Slider_Quiet               0x80420b26 /* V6 i.. BOOL              */
  1824. #define MUIA_Slider_Reverse             0x8042f2a0 /* V4 isg BOOL              */
  1825.  
  1826.  
  1827.  
  1828. /****************************************************************************/
  1829. /** Coloradjust                                                            **/
  1830. /****************************************************************************/
  1831.  
  1832. #ifdef _DCC
  1833. extern char MUIC_Coloradjust[];
  1834. #else
  1835. #define MUIC_Coloradjust "Coloradjust.mui"
  1836. #endif
  1837.  
  1838. /* Attributes */
  1839.  
  1840. #define MUIA_Coloradjust_Blue           0x8042b8a3 /* V4 isg ULONG             */
  1841. #define MUIA_Coloradjust_Green          0x804285ab /* V4 isg ULONG             */
  1842. #define MUIA_Coloradjust_ModeID         0x8042ec59 /* V4 isg ULONG             */
  1843. #define MUIA_Coloradjust_Red            0x80420eaa /* V4 isg ULONG             */
  1844. #define MUIA_Coloradjust_RGB            0x8042f899 /* V4 isg ULONG *           */
  1845.  
  1846.  
  1847.  
  1848. /****************************************************************************/
  1849. /** Palette                                                                **/
  1850. /****************************************************************************/
  1851.  
  1852. #ifdef _DCC
  1853. extern char MUIC_Palette[];
  1854. #else
  1855. #define MUIC_Palette "Palette.mui"
  1856. #endif
  1857.  
  1858. /* Attributes */
  1859.  
  1860. #define MUIA_Palette_Entries            0x8042a3d8 /* V6 i.g struct MUI_Palette_Entry * */
  1861. #define MUIA_Palette_Groupable          0x80423e67 /* V6 isg BOOL              */
  1862. #define MUIA_Palette_Names              0x8042c3a2 /* V6 isg char **           */
  1863.  
  1864.  
  1865.  
  1866. /****************************************************************************/
  1867. /** Colorpanel                                                             **/
  1868. /****************************************************************************/
  1869.  
  1870. #ifdef _DCC
  1871. extern char MUIC_Colorpanel[];
  1872. #else
  1873. #define MUIC_Colorpanel "Colorpanel.mui"
  1874. #endif
  1875.  
  1876. /* Methods */
  1877.  
  1878.  
  1879. /* Attributes */
  1880.  
  1881.  
  1882.  
  1883.  
  1884. /****************************************************************************/
  1885. /** Popstring                                                              **/
  1886. /****************************************************************************/
  1887.  
  1888. #ifdef _DCC
  1889. extern char MUIC_Popstring[];
  1890. #else
  1891. #define MUIC_Popstring "Popstring.mui"
  1892. #endif
  1893.  
  1894. /* Methods */
  1895.  
  1896. #define MUIM_Popstring_Close           0x8042dc52 /* V7 */
  1897. #define MUIM_Popstring_Open            0x804258ba /* V7 */
  1898. struct  MUIP_Popstring_Close           { ULONG id; LONG result; };
  1899.  
  1900. /* Attributes */
  1901.  
  1902. #define MUIA_Popstring_Button           0x8042d0b9 /* V7 i.g Object *          */
  1903. #define MUIA_Popstring_CloseHook        0x804256bf /* V7 isg struct Hook *     */
  1904. #define MUIA_Popstring_OpenHook         0x80429d00 /* V7 isg struct Hook *     */
  1905. #define MUIA_Popstring_String           0x804239ea /* V7 i.g Object *          */
  1906. #define MUIA_Popstring_Toggle           0x80422b7a /* V7 isg BOOL              */
  1907.  
  1908.  
  1909.  
  1910. /****************************************************************************/
  1911. /** Popobject                                                              **/
  1912. /****************************************************************************/
  1913.  
  1914. #ifdef _DCC
  1915. extern char MUIC_Popobject[];
  1916. #else
  1917. #define MUIC_Popobject "Popobject.mui"
  1918. #endif
  1919.  
  1920. /* Attributes */
  1921.  
  1922. #define MUIA_Popobject_Follow           0x80424cb5 /* V7 isg BOOL              */
  1923. #define MUIA_Popobject_Light            0x8042a5a3 /* V7 isg BOOL              */
  1924. #define MUIA_Popobject_Object           0x804293e3 /* V7 i.g Object *          */
  1925. #define MUIA_Popobject_ObjStrHook       0x8042db44 /* V7 isg struct Hook *     */
  1926. #define MUIA_Popobject_StrObjHook       0x8042fbe1 /* V7 isg struct Hook *     */
  1927. #define MUIA_Popobject_Volatile         0x804252ec /* V7 isg BOOL              */
  1928. #define MUIA_Popobject_WindowHook       0x8042f194 /* V9 isg struct Hook *     */
  1929.  
  1930.  
  1931.  
  1932. /****************************************************************************/
  1933. /** Poplist                                                                **/
  1934. /****************************************************************************/
  1935.  
  1936. #ifdef _DCC
  1937. extern char MUIC_Poplist[];
  1938. #else
  1939. #define MUIC_Poplist "Poplist.mui"
  1940. #endif
  1941.  
  1942. /* Attributes */
  1943.  
  1944. #define MUIA_Poplist_Array              0x8042084c /* V8 i.. char **           */
  1945.  
  1946.  
  1947.  
  1948. /****************************************************************************/
  1949. /** Popasl                                                                 **/
  1950. /****************************************************************************/
  1951.  
  1952. #ifdef _DCC
  1953. extern char MUIC_Popasl[];
  1954. #else
  1955. #define MUIC_Popasl "Popasl.mui"
  1956. #endif
  1957.  
  1958. /* Attributes */
  1959.  
  1960. #define MUIA_Popasl_Active              0x80421b37 /* V7 ..g BOOL              */
  1961. #define MUIA_Popasl_StartHook           0x8042b703 /* V7 isg struct Hook *     */
  1962. #define MUIA_Popasl_StopHook            0x8042d8d2 /* V7 isg struct Hook *     */
  1963. #define MUIA_Popasl_Type                0x8042df3d /* V7 i.g ULONG             */
  1964.  
  1965.  
  1966.  
  1967.  
  1968.  
  1969.  
  1970. /*************************************************************************
  1971. ** Structures and Macros for creating custom classes.
  1972. *************************************************************************/
  1973.  
  1974.  
  1975. /*
  1976. ** GENERAL NOTES:
  1977. **
  1978. ** - Everything described in this header file is only valid within
  1979. **   MUI classes. You may never use any of these things out of
  1980. **   a class, e.g. in a traditional MUI application.
  1981. **
  1982. ** - Except when otherwise stated, all structures are strictly read only.
  1983. */
  1984.  
  1985.  
  1986. /* Global information for every object */
  1987.  
  1988. struct MUI_GlobalInfo
  1989. {
  1990.     ULONG priv0;
  1991.     Object                   *mgi_ApplicationObject;
  1992.  
  1993.     /* ... private data follows ... */
  1994. };
  1995.  
  1996.  
  1997. /* Instance data of notify class */
  1998.  
  1999. struct MUI_NotifyData
  2000. {
  2001.     struct MUI_GlobalInfo *mnd_GlobalInfo;
  2002.     ULONG                  mnd_UserData;
  2003.     ULONG priv1;
  2004.     ULONG priv2;
  2005.     ULONG priv3;
  2006.     ULONG priv4;
  2007.     ULONG priv5;
  2008. };
  2009.  
  2010.  
  2011. /* MUI_MinMax structure holds information about minimum, maximum
  2012.    and default dimensions of an object. */
  2013.  
  2014. struct MUI_MinMax
  2015. {
  2016.     WORD MinWidth;
  2017.     WORD MinHeight;
  2018.     WORD MaxWidth;
  2019.     WORD MaxHeight;
  2020.     WORD DefWidth;
  2021.     WORD DefHeight;
  2022. };
  2023.  
  2024. #define MUI_MAXMAX 10000 /* use this if a dimension is not limited. */
  2025.  
  2026.  
  2027. /* (partial) instance data of area class */
  2028.  
  2029. struct MUI_AreaData
  2030. {
  2031.     struct MUI_RenderInfo *mad_RenderInfo;  /* RenderInfo for this object */
  2032.     ULONG priv6;
  2033.     struct TextFont       *mad_Font;        /* Font */
  2034.     struct MUI_MinMax      mad_MinMax;      /* min/max/default sizes */
  2035.     struct IBox            mad_Box;         /* position and dimension */
  2036.     BYTE                   mad_addleft;     /* frame & innerspacing left offset */
  2037.     BYTE                   mad_addtop;      /* frame & innerspacing top offset  */
  2038.     BYTE                   mad_subwidth;    /* frame & innerspacing add. width  */
  2039.     BYTE                   mad_subheight;   /* frame & innerspacing add. height */
  2040.     ULONG                  mad_Flags;       /* see definitions below */
  2041.  
  2042.     /* ... private data follows ... */
  2043. };
  2044.  
  2045. /* Definitions for mad_Flags, other flags are private */
  2046.  
  2047. #define MADF_DRAWOBJECT        (1<< 0) /* completely redraw yourself */
  2048. #define MADF_DRAWUPDATE        (1<< 1) /* only update yourself */
  2049.  
  2050.  
  2051.  
  2052.  
  2053. /* MUI's draw pens */
  2054.  
  2055. #define MPEN_SHINE      0
  2056. #define MPEN_HALFSHINE  1
  2057. #define MPEN_BACKGROUND 2
  2058. #define MPEN_HALFSHADOW 3
  2059. #define MPEN_SHADOW     4
  2060. #define MPEN_TEXT       5
  2061. #define MPEN_FILL       6
  2062. #define MPEN_ACTIVEOBJ  7
  2063. #define MPEN_COUNT      8
  2064.  
  2065.  
  2066. /* Information on display environment */
  2067.  
  2068. struct MUI_RenderInfo
  2069. {
  2070.     Object          *mri_WindowObject;  /* valid between MUIM_Setup/MUIM_Cleanup */
  2071.  
  2072.     struct Screen   *mri_Screen;        /* valid between MUIM_Setup/MUIM_Cleanup */
  2073.     struct DrawInfo *mri_DrawInfo;      /* valid between MUIM_Setup/MUIM_Cleanup */
  2074.     UWORD           *mri_Pens;          /* valid between MUIM_Setup/MUIM_Cleanup */
  2075.     struct Window   *mri_Window;        /* valid between MUIM_Show/MUIM_Hide */
  2076.     struct RastPort *mri_RastPort;      /* valid between MUIM_Show/MUIM_Hide */
  2077.  
  2078.     /* ... private data follows ... */
  2079. };
  2080.  
  2081.  
  2082.  
  2083. /* the following macros can be used to get pointers to an objects
  2084.    GlobalInfo and RenderInfo structures. */
  2085.  
  2086. struct __dummyXFC2__
  2087. {
  2088.     struct MUI_NotifyData mnd;
  2089.     struct MUI_AreaData   mad;
  2090. };
  2091.  
  2092. #define muiNotifyData(obj) (&(((struct __dummyXFC2__ *)(obj))->mnd))
  2093. #define muiAreaData(obj)   (&(((struct __dummyXFC2__ *)(obj))->mad))
  2094.  
  2095. #define muiGlobalInfo(obj) (((struct __dummyXFC2__ *)(obj))->mnd.mnd_GlobalInfo)
  2096. #define muiUserData(obj)   (((struct __dummyXFC2__ *)(obj))->mnd.mnd_UserData)
  2097. #define muiRenderInfo(obj) (((struct __dummyXFC2__ *)(obj))->mad.mad_RenderInfo)
  2098.  
  2099.  
  2100.  
  2101. /* User configurable keyboard events coming with MUIM_HandleInput */
  2102.  
  2103. enum
  2104. {
  2105.     MUIKEY_RELEASE = -2, /* not a real key, faked when MUIKEY_PRESS is released */
  2106.     MUIKEY_NONE    = -1,
  2107.     MUIKEY_PRESS,
  2108.     MUIKEY_TOGGLE,
  2109.     MUIKEY_UP,
  2110.     MUIKEY_DOWN,
  2111.     MUIKEY_PAGEUP,
  2112.     MUIKEY_PAGEDOWN,
  2113.     MUIKEY_TOP,
  2114.     MUIKEY_BOTTOM,
  2115.     MUIKEY_LEFT,
  2116.     MUIKEY_RIGHT,
  2117.     MUIKEY_WORDLEFT,
  2118.     MUIKEY_WORDRIGHT,
  2119.     MUIKEY_LINESTART,
  2120.     MUIKEY_LINEEND,
  2121.     MUIKEY_GADGET_NEXT,
  2122.     MUIKEY_GADGET_PREV,
  2123.     MUIKEY_GADGET_OFF,
  2124.     MUIKEY_WINDOW_CLOSE,
  2125.     MUIKEY_WINDOW_NEXT,
  2126.     MUIKEY_WINDOW_PREV,
  2127.     MUIKEY_HELP,
  2128.     MUIKEY_POPUP,
  2129.     MUIKEY_COUNT /* counter */
  2130. };
  2131.  
  2132.  
  2133. /* Some useful shortcuts. define MUI_NOSHORTCUTS to get rid of them */
  2134.  
  2135. #ifndef MUI_NOSHORTCUTS
  2136.  
  2137. #define _app(obj)         (muiGlobalInfo(obj)->mgi_ApplicationObject)
  2138. #define _win(obj)         (muiRenderInfo(obj)->mri_WindowObject)
  2139. #define _dri(obj)         (muiRenderInfo(obj)->mri_DrawInfo)
  2140. #define _window(obj)      (muiRenderInfo(obj)->mri_Window)
  2141. #define _screen(obj)      (muiRenderInfo(obj)->mri_Screen)
  2142. #define _rp(obj)          (muiRenderInfo(obj)->mri_RastPort)
  2143. #define _left(obj)        (muiAreaData(obj)->mad_Box.Left)
  2144. #define _top(obj)         (muiAreaData(obj)->mad_Box.Top)
  2145. #define _width(obj)       (muiAreaData(obj)->mad_Box.Width)
  2146. #define _height(obj)      (muiAreaData(obj)->mad_Box.Height)
  2147. #define _right(obj)       (_left(obj)+_width(obj)-1)
  2148. #define _bottom(obj)      (_top(obj)+_height(obj)-1)
  2149. #define _addleft(obj)     (muiAreaData(obj)->mad_addleft  )
  2150. #define _addtop(obj)      (muiAreaData(obj)->mad_addtop   )
  2151. #define _subwidth(obj)    (muiAreaData(obj)->mad_subwidth )
  2152. #define _subheight(obj)   (muiAreaData(obj)->mad_subheight)
  2153. #define _mleft(obj)       (_left(obj)+_addleft(obj))
  2154. #define _mtop(obj)        (_top(obj)+_addtop(obj))
  2155. #define _mwidth(obj)      (_width(obj)-_subwidth(obj))
  2156. #define _mheight(obj)     (_height(obj)-_subheight(obj))
  2157. #define _mright(obj)      (_mleft(obj)+_mwidth(obj)-1)
  2158. #define _mbottom(obj)     (_mtop(obj)+_mheight(obj)-1)
  2159. #define _font(obj)        (muiAreaData(obj)->mad_Font)
  2160. #define _flags(obj)       (muiAreaData(obj)->mad_Flags)
  2161.  
  2162. #endif
  2163.  
  2164.  
  2165.  
  2166. /* MUI_CustomClass returned by MUI_CreateCustomClass() */
  2167.  
  2168. struct MUI_CustomClass
  2169. {
  2170.     APTR mcc_UserData;                  /* use for whatever you want */
  2171.  
  2172.     struct Library *mcc_UtilityBase;    /* MUI has opened these libraries */
  2173.     struct Library *mcc_DOSBase;        /* for you automatically. You can */
  2174.     struct Library *mcc_GfxBase;        /* use them or decide to open     */
  2175.     struct Library *mcc_IntuitionBase;  /* your libraries yourself.       */
  2176.  
  2177.     struct IClass *mcc_Super;           /* pointer to super class   */
  2178.     struct IClass *mcc_Class;           /* pointer to the new class */
  2179.  
  2180.     /* ... private data follows ... */
  2181. };
  2182.  
  2183.  
  2184. #endif /* MUI_H */
  2185.