home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 5 / amigaformatcd05.iso / mui / developer / c / include / libraries / mui.h
Encoding:
C/C++ Source or Header  |  1996-08-13  |  118.5 KB  |  3,048 lines

  1. /***************************************************************************
  2. **
  3. ** MUI - MagicUserInterface
  4. ** (c) 1993-1995 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. ** !  !  \--Aboutmui             (About window of MUI preferences)
  21. ** !  +--Area                    (base class for all GUI elements)
  22. ** !  !  +--Rectangle            (creates (empty) rectangles)
  23. ** !  !  +--Balance              (creates a balancing separator bar)
  24. ** !  !  +--Image                (creates images)
  25. ** !  !  +--Bitmap               (draws bitmaps)
  26. ** !  !  !  \--Bodychunk         (makes bitmap from ILBM body chunk)
  27. ** !  !  +--Text                 (creates some text)
  28. ** !  !  +--Gadget               (base class for intuition gadgets)
  29. ** !  !  !  +--String            (creates a string gadget)
  30. ** !  !  !  +--Boopsi            (interface to BOOPSI gadgets)
  31. ** !  !  !  \--Prop              (creates a proportional gadget)
  32. ** !  !  +--Gauge                (creates a fule gauge)
  33. ** !  !  +--Scale                (creates a percentage scale)
  34. ** !  !  +--Colorfield           (creates a field with changeable color)
  35. ** !  !  +--List                 (creates a line-oriented list)
  36. ** !  !  !  +--Floattext         (special list with floating text)
  37. ** !  !  !  +--Volumelist        (special list with volumes)
  38. ** !  !  !  +--Scrmodelist       (special list with screen modes)
  39. ** !  !  !  \--Dirlist           (special list with files)
  40. ** !  !  +--Numeric              (base class for slider gadgets)
  41. ** !  !  +--Framedisplay         (displays a frame specification)
  42. ** !  !  !  \--Popframe          (popup button to adjust a frame)
  43. ** !  !  +--Imagedisplay         (displays an image specification)
  44. ** !  !  !  \--Popimage          (popup button to adjust an image spec)
  45. ** !  !  +--Pendisplay           (displays a pen specification)
  46. ** !  !  !  +--Poppen            (popup button to adjust a pen spec)
  47. ** !  !  !  +--Knob              (creates knobs)
  48. ** !  !  !  +--Levelmeter        (creates a level display)
  49. ** !  !  !  +--Numericbutton     (creates space saving popup sliders)
  50. ** !  !  !  \--Slider            (creates slider gadgets)
  51. ** !  !  +--Group                (groups other GUI elements)
  52. ** !  !  !  +--Mccprefs          (base class for extern custom class preferences classes)
  53. ** !  !  !  +--Register          (handles page groups with titles)
  54. ** !  !  !  +--Settingsgroup     (Creates GUI elements to adjust MUIs preferences)
  55. ** !  !  !  +--Settings          (Creates prefs)
  56. ** !  !  !  +--Frameadjust       (creates an object to adjust a frame)
  57. ** !  !  !  !  \--Penadjust      (creates a group to adjust a pen)
  58. ** !  !  !  +--Imageadjust       (creates a group to adjust an image)
  59. ** !  !  !  +--Virtgroup         (handles virtual groups)
  60. ** !  !  !  +--Scrollgroup       (handles virtual groups with scrollers)
  61. ** !  !  !  +--Scrollbar         (creates a scrollbar)
  62. ** !  !  !  +--Listview          (creates a listview)
  63. ** !  !  !  +--Radio             (creates radio buttons)
  64. ** !  !  !  +--Cycle             (creates cycle gadgets)
  65. ** !  !  !  +--Coloradjust       (creates some RGB sliders)
  66. ** !  !  !  +--Palette           (creates a complete palette gadget)
  67. ** !  !  !  +--Popstring         (base class for popups)
  68. ** !  !  !  !  +--Popobject      (popup a MUI object in a window)
  69. ** !  !  !  !  !  +--Poplist     (popup a simple listview)
  70. ** !  !  !  !  !  \--Popscreen   (popup a list of public screens)
  71. ** !  !  !  !  \--Popasl         (popup an asl requester)
  72. ** +--Semaphore                  (baseclass for semaphore equipped objects)
  73. **    +--Applist                 (private class)
  74. **    +--Dataspace               (handles general purpose data spaces)
  75. **       \--Configdata           (handles MUI configuration data)
  76. **
  77. ****************************************************************************
  78. ** General Header File Information
  79. ****************************************************************************
  80. **
  81. ** All macro and structure definitions follow these rules:
  82. **
  83. ** Name                       Meaning
  84. **
  85. ** MUIC_<class>               Name of a class
  86. ** MUIM_<class>_<method>      Method
  87. ** MUIP_<class>_<method>      Methods parameter structure
  88. ** MUIV_<class>_<method>_<x>  Special method value
  89. ** MUIA_<class>_<attrib>      Attribute
  90. ** MUIV_<class>_<attrib>_<x>  Special attribute value
  91. ** MUIE_<error>               Error return code from MUI_Error()
  92. ** MUII_<name>                Standard MUI image
  93. ** MUIX_<code>                Control codes for text strings
  94. ** MUIO_<name>                Object type for MUI_MakeObject()
  95. **
  96. ** MUIA_... attribute definitions are followed by a comment
  97. ** consisting of the three possible letters I, S and G.
  98. ** I: it's possible to specify this attribute at object creation time.
  99. ** S: it's possible to change this attribute with SetAttrs().
  100. ** G: it's possible to get this attribute with GetAttr().
  101. **
  102. ** Items marked with "Custom Class" are for use in custom classes only!
  103. */
  104.  
  105.  
  106. #ifndef LIBRARIES_MUI_H
  107. #define LIBRARIES_MUI_H
  108.  
  109. #ifndef EXEC_TYPES_H
  110. #include "exec/types.h"
  111. #endif
  112.  
  113. #ifndef DOS_DOS_H
  114. #include "dos/dos.h"
  115. #endif
  116.  
  117. #ifndef INTUITION_CLASSES_H
  118. #include "intuition/classes.h"
  119. #endif
  120.  
  121. #ifndef INTUITION_SCREENS_H
  122. #include "intuition/screens.h"
  123. #endif
  124.  
  125. #ifndef CLIB_INTUITION_PROTOS_H
  126. #include "clib/intuition_protos.h"
  127. #endif
  128.  
  129.  
  130. /***************************************************************************
  131. ** Library specification
  132. ***************************************************************************/
  133.  
  134. #define MUIMASTER_NAME    "muimaster.library"
  135. #define MUIMASTER_VMIN    12
  136. #define MUIMASTER_VLATEST 13
  137.  
  138. /*
  139. ** !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  140. ** Warning, some of the macros in this header file work only with
  141. ** muimaster.library V11 and above. If you recompile your programs,
  142. ** be sure to open muimaster.library with MUIMASTER_VMIN as version number.
  143. ** !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  144. */
  145.  
  146. #define MUI_OBSOLETE /* include obsolete identifiers */
  147.  
  148.  
  149.  
  150. /*************************************************************************
  151. ** Config items for MUIM_GetConfigItem
  152. *************************************************************************/
  153.  
  154.  
  155. #define MUICFG_PublicScreen            36
  156.  
  157.  
  158.  
  159.  
  160. /*************************************************************************
  161. ** Black box specification structures for images, pens, frames
  162. *************************************************************************/
  163.  
  164. struct MUI_PenSpec
  165. {
  166.     char buf[32];
  167. };
  168.  
  169.  
  170.  
  171. /*************************************************************************
  172. ** Public Screen Stuff
  173. *************************************************************************/
  174.  
  175. /*
  176. ** NOTE: This stuff is only included to allow compilation of the supplied
  177. **       public screen manager for educational purposes. Everything
  178. **       here is subject to change without notice and I guarantee to
  179. **       do that just for fun!
  180. **       More info can be found in the screen manager source file.
  181. */
  182.  
  183. #define PSD_INITIAL_NAME   "(unnamed)"
  184. #define PSD_INITIAL_TITLE  "MUI Public Screen"
  185. #define PSD_ID_MPUB        MAKE_ID('M','P','U','B')
  186.  
  187. #define PSD_NAME_FRONTMOST "«Frontmost»"
  188.  
  189. #define PSD_FILENAME_SAVE "envarc:mui/PublicScreens.iff"
  190. #define PSD_FILENAME_USE  "env:mui/PublicScreens.iff"
  191.  
  192. #define PSD_MAXLEN_NAME         32
  193. #define PSD_MAXLEN_TITLE       128
  194. #define PSD_MAXLEN_FONT         48
  195. #define PSD_MAXLEN_BACKGROUND  256
  196. #define PSD_NUMCOLS              8
  197. #define PSD_MAXSYSPENS          20
  198. #define PSD_NUMSYSPENS          12
  199. #define PSD_MAXMUIPENS          10
  200. #define PSD_NUMMUIPENS  MPEN_COUNT
  201.  
  202. struct MUI_RGBcolor
  203. {
  204.     ULONG red;
  205.     ULONG green;
  206.     ULONG blue;
  207. };
  208.  
  209. struct MUI_PubScreenDesc
  210. {
  211.     LONG  Version;
  212.  
  213.     char  Name[PSD_MAXLEN_NAME];
  214.     char  Title[PSD_MAXLEN_TITLE];
  215.     char  Font[PSD_MAXLEN_FONT];
  216.     char  Background[PSD_MAXLEN_BACKGROUND];
  217.  
  218.     ULONG DisplayID;
  219.  
  220.     UWORD DisplayWidth;
  221.     UWORD DisplayHeight;
  222.  
  223.     UBYTE DisplayDepth;
  224.     UBYTE OverscanType;
  225.     UBYTE AutoScroll;
  226.     UBYTE NoDrag;
  227.     UBYTE Exclusive;
  228.     UBYTE Interleaved;
  229.     UBYTE SysDefault;
  230.     UBYTE Behind;
  231.     UBYTE AutoClose;
  232.     UBYTE CloseGadget;
  233.     UBYTE DummyWasForeign;
  234.  
  235.     BYTE SystemPens[PSD_MAXSYSPENS];
  236.     UBYTE Reserved[1+7*4-PSD_MAXSYSPENS];
  237.  
  238.     struct MUI_RGBcolor Palette[PSD_NUMCOLS];
  239.     struct MUI_RGBcolor rsvd[PSD_MAXSYSPENS-PSD_NUMCOLS];
  240.  
  241.     struct MUI_PenSpec rsvd2[PSD_MAXMUIPENS];
  242.  
  243.     LONG Changed;
  244.     APTR UserData;
  245. };
  246.  
  247. struct MUIS_InfoClient
  248. {
  249.     struct MinNode node;
  250.     struct Task *task;
  251.     ULONG sigbit;
  252. };
  253.  
  254.  
  255. /***************************************************************************
  256. ** Object Types for MUI_MakeObject()
  257. ***************************************************************************/
  258.  
  259. #define MUIO_Label          1   /* STRPTR label, ULONG flags */
  260. #define MUIO_Button         2   /* STRPTR label */
  261. #define MUIO_Checkmark      3   /* STRPTR label */
  262. #define MUIO_Cycle          4   /* STRPTR label, STRPTR *entries */
  263. #define MUIO_Radio          5   /* STRPTR label, STRPTR *entries */
  264. #define MUIO_Slider         6   /* STRPTR label, LONG min, LONG max */
  265. #define MUIO_String         7   /* STRPTR label, LONG maxlen */
  266. #define MUIO_PopButton      8   /* STRPTR imagespec */
  267. #define MUIO_HSpace         9   /* LONG space   */
  268. #define MUIO_VSpace        10   /* LONG space   */
  269. #define MUIO_HBar          11   /* LONG space   */
  270. #define MUIO_VBar          12   /* LONG space   */
  271. #define MUIO_MenustripNM   13   /* struct NewMenu *nm, ULONG flags */
  272. #define MUIO_Menuitem      14   /* STRPTR label, STRPTR shortcut, ULONG flags, ULONG data  */
  273. #define MUIO_BarTitle      15   /* STRPTR label */
  274. #define MUIO_NumericButton 16   /* STRPTR label, LONG min, LONG max, STRPTR format */
  275.  
  276. #define MUIO_Label_SingleFrame   (1<< 8)
  277. #define MUIO_Label_DoubleFrame   (1<< 9)
  278. #define MUIO_Label_LeftAligned   (1<<10)
  279. #define MUIO_Label_Centered      (1<<11)
  280. #define MUIO_Label_FreeVert      (1<<12)
  281.  
  282. #define MUIO_MenustripNM_CommandKeyCheck (1<<0) /* check for "localized" menu items such as "O\0Open" */
  283.  
  284.  
  285.  
  286. /***************************************************************************
  287. ** ARexx Interface
  288. ***************************************************************************/
  289.  
  290. struct MUI_Command
  291. {
  292.     char        *mc_Name;
  293.     char        *mc_Template;
  294.     LONG         mc_Parameters;
  295.     struct Hook *mc_Hook;
  296.     LONG         mc_Reserved[5];
  297. };
  298.  
  299. #define MC_TEMPLATE_ID ((STRPTR)~0)
  300.  
  301. #define MUI_RXERR_BADDEFINITION  -1
  302. #define MUI_RXERR_OUTOFMEMORY    -2
  303. #define MUI_RXERR_UNKNOWNCOMMAND -3
  304. #define MUI_RXERR_BADSYNTAX      -4
  305.  
  306.  
  307. /***************************************************************************
  308. ** Return values for MUI_Error()
  309. ***************************************************************************/
  310.  
  311. #define MUIE_OK                  0
  312. #define MUIE_OutOfMemory         1
  313. #define MUIE_OutOfGfxMemory      2
  314. #define MUIE_InvalidWindowObject 3
  315. #define MUIE_MissingLibrary      4
  316. #define MUIE_NoARexx             5
  317. #define MUIE_SingleTask          6
  318.  
  319.  
  320.  
  321. /***************************************************************************
  322. ** Standard MUI Images & Backgrounds
  323. ***************************************************************************/
  324.  
  325. #define MUII_WindowBack      0   /* These images are configured   */
  326. #define MUII_RequesterBack   1   /* with the preferences program. */
  327. #define MUII_ButtonBack      2
  328. #define MUII_ListBack        3
  329. #define MUII_TextBack        4
  330. #define MUII_PropBack        5
  331. #define MUII_PopupBack       6
  332. #define MUII_SelectedBack    7
  333. #define MUII_ListCursor      8
  334. #define MUII_ListSelect      9
  335. #define MUII_ListSelCur     10
  336. #define MUII_ArrowUp        11
  337. #define MUII_ArrowDown      12
  338. #define MUII_ArrowLeft      13
  339. #define MUII_ArrowRight     14
  340. #define MUII_CheckMark      15
  341. #define MUII_RadioButton    16
  342. #define MUII_Cycle          17
  343. #define MUII_PopUp          18
  344. #define MUII_PopFile        19
  345. #define MUII_PopDrawer      20
  346. #define MUII_PropKnob       21
  347. #define MUII_Drawer         22
  348. #define MUII_HardDisk       23
  349. #define MUII_Disk           24
  350. #define MUII_Chip           25
  351. #define MUII_Volume         26
  352. #define MUII_RegisterBack   27
  353. #define MUII_Network        28
  354. #define MUII_Assign         29
  355. #define MUII_TapePlay       30
  356. #define MUII_TapePlayBack   31
  357. #define MUII_TapePause      32
  358. #define MUII_TapeStop       33
  359. #define MUII_TapeRecord     34
  360. #define MUII_GroupBack      35
  361. #define MUII_SliderBack     36
  362. #define MUII_SliderKnob     37
  363. #define MUII_TapeUp         38
  364. #define MUII_TapeDown       39
  365. #define MUII_PageBack       40
  366. #define MUII_ReadListBack   41
  367. #define MUII_Count          42
  368.  
  369. #define MUII_BACKGROUND     128    /* These are direct color    */
  370. #define MUII_SHADOW         129    /* combinations and are not  */
  371. #define MUII_SHINE          130    /* affected by users prefs.  */
  372. #define MUII_FILL           131
  373. #define MUII_SHADOWBACK     132    /* Generally, you should     */
  374. #define MUII_SHADOWFILL     133    /* avoid using them. Better  */
  375. #define MUII_SHADOWSHINE    134    /* use one of the customized */
  376. #define MUII_FILLBACK       135    /* images above.             */
  377. #define MUII_FILLSHINE      136
  378. #define MUII_SHINEBACK      137
  379. #define MUII_FILLBACK2      138
  380. #define MUII_HSHINEBACK     139
  381. #define MUII_HSHADOWBACK    140
  382. #define MUII_HSHINESHINE    141
  383. #define MUII_HSHADOWSHADOW  142
  384. #define MUII_MARKSHINE      143
  385. #define MUII_MARKHALFSHINE  144
  386. #define MUII_MARKBACKGROUND 145
  387. #define MUII_LASTPAT        145
  388.  
  389.  
  390.  
  391. /***************************************************************************
  392. ** Special values for some methods
  393. ***************************************************************************/
  394.  
  395. #define MUIV_TriggerValue    0x49893131
  396. #define MUIV_NotTriggerValue 0x49893133
  397. #define MUIV_EveryTime       0x49893131
  398.  
  399. #define MUIV_Notify_Self        1
  400. #define MUIV_Notify_Window      2
  401. #define MUIV_Notify_Application 3
  402. #define MUIV_Notify_Parent      4
  403.  
  404. #define MUIV_Application_Save_ENV     ((STRPTR) 0)
  405. #define MUIV_Application_Save_ENVARC  ((STRPTR)~0)
  406. #define MUIV_Application_Load_ENV     ((STRPTR) 0)
  407. #define MUIV_Application_Load_ENVARC  ((STRPTR)~0)
  408.  
  409. #define MUIV_Application_ReturnID_Quit -1
  410.  
  411. #define MUIV_List_Insert_Top             0
  412. #define MUIV_List_Insert_Active         -1
  413. #define MUIV_List_Insert_Sorted         -2
  414. #define MUIV_List_Insert_Bottom         -3
  415.  
  416. #define MUIV_List_Remove_First           0
  417. #define MUIV_List_Remove_Active         -1
  418. #define MUIV_List_Remove_Last           -2
  419. #define MUIV_List_Remove_Selected       -3
  420.  
  421. #define MUIV_List_Select_Off             0
  422. #define MUIV_List_Select_On              1
  423. #define MUIV_List_Select_Toggle          2
  424. #define MUIV_List_Select_Ask             3
  425.  
  426. #define MUIV_List_GetEntry_Active       -1
  427. #define MUIV_List_Select_Active         -1
  428. #define MUIV_List_Select_All            -2
  429.  
  430. #define MUIV_List_Redraw_Active         -1
  431. #define MUIV_List_Redraw_All            -2
  432.  
  433. #define MUIV_List_Move_Top               0
  434. #define MUIV_List_Move_Active           -1
  435. #define MUIV_List_Move_Bottom           -2
  436. #define MUIV_List_Move_Next             -3 /* only valid for second parameter */
  437. #define MUIV_List_Move_Previous         -4 /* only valid for second parameter */
  438.  
  439. #define MUIV_List_Exchange_Top           0
  440. #define MUIV_List_Exchange_Active       -1
  441. #define MUIV_List_Exchange_Bottom       -2
  442. #define MUIV_List_Exchange_Next         -3 /* only valid for second parameter */
  443. #define MUIV_List_Exchange_Previous     -4 /* only valid for second parameter */
  444.  
  445. #define MUIV_List_Jump_Top               0
  446. #define MUIV_List_Jump_Active           -1
  447. #define MUIV_List_Jump_Bottom           -2
  448. #define MUIV_List_Jump_Up               -4
  449. #define MUIV_List_Jump_Down             -3
  450.  
  451. #define MUIV_List_NextSelected_Start    -1
  452. #define MUIV_List_NextSelected_End      -1
  453.  
  454. #define MUIV_DragQuery_Refuse 0
  455. #define MUIV_DragQuery_Accept 1
  456.  
  457. #define MUIV_DragReport_Abort    0
  458. #define MUIV_DragReport_Continue 1
  459. #define MUIV_DragReport_Lock     2
  460. #define MUIV_DragReport_Refresh  3
  461.  
  462.  
  463.  
  464. /***************************************************************************
  465. ** Control codes for text strings
  466. ***************************************************************************/
  467.  
  468. #define MUIX_R "\033r"    /* right justified */
  469. #define MUIX_C "\033c"    /* centered        */
  470. #define MUIX_L "\033l"    /* left justified  */
  471.  
  472. #define MUIX_N "\033n"    /* normal     */
  473. #define MUIX_B "\033b"    /* bold       */
  474. #define MUIX_I "\033i"    /* italic     */
  475. #define MUIX_U "\033u"    /* underlined */
  476.  
  477. #define MUIX_PT "\0332"   /* text pen           */
  478. #define MUIX_PH "\0338"   /* highlight text pen */
  479.  
  480.  
  481.  
  482. /***************************************************************************
  483. ** Parameter structures for some classes
  484. ***************************************************************************/
  485.  
  486. struct MUI_Palette_Entry
  487. {
  488.     LONG  mpe_ID;
  489.     ULONG mpe_Red;
  490.     ULONG mpe_Green;
  491.     ULONG mpe_Blue;
  492.     LONG  mpe_Group;
  493. };
  494.  
  495. #define MUIV_Palette_Entry_End -1
  496.  
  497.  
  498. struct MUI_InputHandlerNode
  499. {
  500.     struct MinNode ihn_Node;
  501.     Object        *ihn_Object;
  502.  
  503.     union
  504.     {
  505.         ULONG ihn_sigs;
  506.         struct
  507.         {
  508.             UWORD ihn_millis;
  509.             UWORD ihn_current;
  510.         } ihn_timer;
  511.     }
  512.     ihn_stuff;
  513.  
  514.     ULONG          ihn_Flags; /* see below */
  515.     ULONG          ihn_Method;
  516. };
  517.  
  518. #define ihn_Signals ihn_stuff.ihn_sigs
  519. #define ihn_Millis  ihn_stuff.ihn_timer.ihn_millis
  520. #define ihn_Current ihn_stuff.ihn_timer.ihn_current
  521.  
  522. /* Flags for ihn_Flags */
  523.  
  524. #define MUIIHNF_TIMER (1<<0) /* set ihn_Ticks to number of 1/100 sec ticks you want to be triggered */
  525.  
  526.  
  527. struct MUI_List_TestPos_Result
  528. {
  529.     LONG  entry;   /* number of entry, -1 if mouse not over valid entry */
  530.     WORD  column;  /* numer of column, -1 if no valid column */
  531.     UWORD flags;   /* see below */
  532.     WORD  xoffset; /* currently unused */
  533.     WORD  yoffset; /* y offset of mouse click from center of line 
  534.                       (negative values mean click was above center,
  535.                        positive values mean click was below center) */
  536.  
  537. };
  538.  
  539. #define MUI_LPR_ABOVE  (1<<0)
  540. #define MUI_LPR_BELOW  (1<<1)
  541. #define MUI_LPR_LEFT   (1<<2)
  542. #define MUI_LPR_RIGHT  (1<<3)
  543.  
  544.  
  545. /***************************************************************************
  546. **
  547. ** Macro Section
  548. ** -------------
  549. **
  550. ** To make GUI creation more easy and understandable, you can use the
  551. ** macros below. If you dont want, just define MUI_NOSHORTCUTS to disable
  552. ** them.
  553. **
  554. ** These macros are available to C programmers only.
  555. **
  556. ***************************************************************************/
  557.  
  558. #ifndef MUI_NOSHORTCUTS
  559.  
  560.  
  561.  
  562. /***************************************************************************
  563. **
  564. ** Object Generation
  565. ** -----------------
  566. **
  567. ** The xxxObject (and xChilds) macros generate new instances of MUI classes.
  568. ** Every xxxObject can be followed by tagitems specifying initial create
  569. ** time attributes for the new object and must be terminated with the
  570. ** End macro:
  571. **
  572. ** obj = StringObject,
  573. **          MUIA_String_Contents, "foo",
  574. **          MUIA_String_MaxLen  , 40,
  575. **          End;
  576. **
  577. ** With the Child, SubWindow and WindowContents shortcuts you can
  578. ** construct a complete GUI within one command:
  579. **
  580. ** app = ApplicationObject,
  581. **
  582. **          ...
  583. **
  584. **          SubWindow, WindowObject,
  585. **             WindowContents, VGroup,
  586. **                Child, String("foo",40),
  587. **                Child, String("bar",50),
  588. **                Child, HGroup,
  589. **                   Child, CheckMark(TRUE),
  590. **                   Child, CheckMark(FALSE),
  591. **                   End,
  592. **                End,
  593. **             End,
  594. **
  595. **          SubWindow, WindowObject,
  596. **             WindowContents, HGroup,
  597. **                Child, ...,
  598. **                Child, ...,
  599. **                End,
  600. **             End,
  601. **
  602. **          ...
  603. **
  604. **          End;
  605. **
  606. ***************************************************************************/
  607.  
  608. #define MenustripObject     MUI_NewObject(MUIC_Menustrip
  609. #define MenuObject          MUI_NewObject(MUIC_Menu
  610. #define MenuObjectT(name)   MUI_NewObject(MUIC_Menu,MUIA_Menu_Title,name
  611. #define MenuitemObject      MUI_NewObject(MUIC_Menuitem
  612. #define WindowObject        MUI_NewObject(MUIC_Window
  613. #define ImageObject         MUI_NewObject(MUIC_Image
  614. #define BitmapObject        MUI_NewObject(MUIC_Bitmap
  615. #define BodychunkObject     MUI_NewObject(MUIC_Bodychunk
  616. #define NotifyObject        MUI_NewObject(MUIC_Notify
  617. #define ApplicationObject   MUI_NewObject(MUIC_Application
  618. #define TextObject          MUI_NewObject(MUIC_Text
  619. #define RectangleObject     MUI_NewObject(MUIC_Rectangle
  620. #define BalanceObject       MUI_NewObject(MUIC_Balance
  621. #define ListObject          MUI_NewObject(MUIC_List
  622. #define PropObject          MUI_NewObject(MUIC_Prop
  623. #define StringObject        MUI_NewObject(MUIC_String
  624. #define ScrollbarObject     MUI_NewObject(MUIC_Scrollbar
  625. #define ListviewObject      MUI_NewObject(MUIC_Listview
  626. #define RadioObject         MUI_NewObject(MUIC_Radio
  627. #define VolumelistObject    MUI_NewObject(MUIC_Volumelist
  628. #define FloattextObject     MUI_NewObject(MUIC_Floattext
  629. #define DirlistObject       MUI_NewObject(MUIC_Dirlist
  630. #define CycleObject         MUI_NewObject(MUIC_Cycle
  631. #define GaugeObject         MUI_NewObject(MUIC_Gauge
  632. #define ScaleObject         MUI_NewObject(MUIC_Scale
  633. #define NumericObject       MUI_NewObject(MUIC_Numeric
  634. #define SliderObject        MUI_NewObject(MUIC_Slider
  635. #define NumericbuttonObject MUI_NewObject(MUIC_Numericbutton
  636. #define KnobObject          MUI_NewObject(MUIC_Knob
  637. #define LevelmeterObject    MUI_NewObject(MUIC_Levelmeter
  638. #define BoopsiObject        MUI_NewObject(MUIC_Boopsi
  639. #define ColorfieldObject    MUI_NewObject(MUIC_Colorfield
  640. #define PenadjustObject     MUI_NewObject(MUIC_Penadjust
  641. #define ColoradjustObject   MUI_NewObject(MUIC_Coloradjust
  642. #define PaletteObject       MUI_NewObject(MUIC_Palette
  643. #define GroupObject         MUI_NewObject(MUIC_Group
  644. #define RegisterObject      MUI_NewObject(MUIC_Register
  645. #define VirtgroupObject     MUI_NewObject(MUIC_Virtgroup
  646. #define ScrollgroupObject   MUI_NewObject(MUIC_Scrollgroup
  647. #define PopstringObject     MUI_NewObject(MUIC_Popstring
  648. #define PopobjectObject     MUI_NewObject(MUIC_Popobject
  649. #define PoplistObject       MUI_NewObject(MUIC_Poplist
  650. #define PopaslObject        MUI_NewObject(MUIC_Popasl
  651. #define PendisplayObject    MUI_NewObject(MUIC_Pendisplay
  652. #define PoppenObject        MUI_NewObject(MUIC_Poppen
  653. #define AboutmuiObject      MUI_NewObject(MUIC_Aboutmui
  654. #define ScrmodelistObject   MUI_NewObject(MUIC_Scrmodelist
  655. #define KeyentryObject      MUI_NewObject(MUIC_Keyentry
  656. #define VGroup              MUI_NewObject(MUIC_Group
  657. #define HGroup              MUI_NewObject(MUIC_Group,MUIA_Group_Horiz,TRUE
  658. #define ColGroup(cols)      MUI_NewObject(MUIC_Group,MUIA_Group_Columns,(cols)
  659. #define RowGroup(rows)      MUI_NewObject(MUIC_Group,MUIA_Group_Rows   ,(rows)
  660. #define PageGroup           MUI_NewObject(MUIC_Group,MUIA_Group_PageMode,TRUE
  661. #define VGroupV             MUI_NewObject(MUIC_Virtgroup
  662. #define HGroupV             MUI_NewObject(MUIC_Virtgroup,MUIA_Group_Horiz,TRUE
  663. #define ColGroupV(cols)     MUI_NewObject(MUIC_Virtgroup,MUIA_Group_Columns,(cols)
  664. #define RowGroupV(rows)     MUI_NewObject(MUIC_Virtgroup,MUIA_Group_Rows   ,(rows)
  665. #define PageGroupV          MUI_NewObject(MUIC_Virtgroup,MUIA_Group_PageMode,TRUE
  666. #define RegisterGroup(t)    MUI_NewObject(MUIC_Register,MUIA_Register_Titles,(t)
  667. #define End                 TAG_DONE)
  668.  
  669. #define Child             MUIA_Group_Child
  670. #define SubWindow         MUIA_Application_Window
  671. #define WindowContents    MUIA_Window_RootObject
  672.  
  673.  
  674.  
  675. /***************************************************************************
  676. **
  677. ** Frame Types
  678. ** -----------
  679. **
  680. ** These macros may be used to specify one of MUI's different frame types.
  681. ** Note that every macro consists of one { ti_Tag, ti_Data } pair.
  682. **
  683. ** GroupFrameT() is a special kind of frame that contains a centered
  684. ** title text.
  685. **
  686. ** HGroup, GroupFrameT("Horiz Groups"),
  687. **    Child, RectangleObject, TextFrame  , End,
  688. **    Child, RectangleObject, StringFrame, End,
  689. **    Child, RectangleObject, ButtonFrame, End,
  690. **    Child, RectangleObject, ListFrame  , End,
  691. **    End,
  692. **
  693. ***************************************************************************/
  694.  
  695. #define NoFrame          MUIA_Frame, MUIV_Frame_None
  696. #define ButtonFrame      MUIA_Frame, MUIV_Frame_Button
  697. #define ImageButtonFrame MUIA_Frame, MUIV_Frame_ImageButton
  698. #define TextFrame        MUIA_Frame, MUIV_Frame_Text
  699. #define StringFrame      MUIA_Frame, MUIV_Frame_String
  700. #define ReadListFrame    MUIA_Frame, MUIV_Frame_ReadList
  701. #define InputListFrame   MUIA_Frame, MUIV_Frame_InputList
  702. #define PropFrame        MUIA_Frame, MUIV_Frame_Prop
  703. #define SliderFrame      MUIA_Frame, MUIV_Frame_Slider
  704. #define GaugeFrame       MUIA_Frame, MUIV_Frame_Gauge
  705. #define VirtualFrame     MUIA_Frame, MUIV_Frame_Virtual
  706. #define GroupFrame       MUIA_Frame, MUIV_Frame_Group
  707. #define GroupFrameT(s)   MUIA_Frame, MUIV_Frame_Group, MUIA_FrameTitle, s, MUIA_Background, MUII_GroupBack
  708.  
  709.  
  710.  
  711. /***************************************************************************
  712. **
  713. ** Spacing Macros
  714. ** --------------
  715. **
  716. ***************************************************************************/
  717.  
  718. #define HVSpace           MUI_NewObject(MUIC_Rectangle,TAG_DONE)
  719. #define HSpace(x)         MUI_MakeObject(MUIO_HSpace,x)
  720. #define VSpace(x)         MUI_MakeObject(MUIO_VSpace,x)
  721. #define HCenter(obj)      (HGroup, GroupSpacing(0), Child, HSpace(0), Child, (obj), Child, HSpace(0), End)
  722. #define VCenter(obj)      (VGroup, GroupSpacing(0), Child, VSpace(0), Child, (obj), Child, VSpace(0), End)
  723. #define InnerSpacing(h,v) MUIA_InnerLeft,(h),MUIA_InnerRight,(h),MUIA_InnerTop,(v),MUIA_InnerBottom,(v)
  724. #define GroupSpacing(x)   MUIA_Group_Spacing,x
  725.  
  726.  
  727.  
  728. #ifdef MUI_OBSOLETE
  729.  
  730. /***************************************************************************
  731. **
  732. ** String-Object
  733. ** -------------
  734. **
  735. ** The following macro creates a simple string gadget.
  736. **
  737. ***************************************************************************/
  738.  
  739. #define String(contents,maxlen)\
  740.     StringObject,\
  741.         StringFrame,\
  742.         MUIA_String_MaxLen  , maxlen,\
  743.         MUIA_String_Contents, contents,\
  744.         End
  745.  
  746. #define KeyString(contents,maxlen,controlchar)\
  747.     StringObject,\
  748.         StringFrame,\
  749.         MUIA_ControlChar    , controlchar,\
  750.         MUIA_String_MaxLen  , maxlen,\
  751.         MUIA_String_Contents, contents,\
  752.         End
  753.  
  754. #endif
  755.  
  756.  
  757.  
  758. #ifdef MUI_OBSOLETE
  759.  
  760. /***************************************************************************
  761. **
  762. ** CheckMark-Object
  763. ** ----------------
  764. **
  765. ** The following macro creates a checkmark gadget.
  766. **
  767. ***************************************************************************/
  768.  
  769. #define CheckMark(selected)\
  770.     ImageObject,\
  771.         ImageButtonFrame,\
  772.         MUIA_InputMode        , MUIV_InputMode_Toggle,\
  773.         MUIA_Image_Spec       , MUII_CheckMark,\
  774.         MUIA_Image_FreeVert   , TRUE,\
  775.         MUIA_Selected         , selected,\
  776.         MUIA_Background       , MUII_ButtonBack,\
  777.         MUIA_ShowSelState     , FALSE,\
  778.         End
  779.  
  780. #define KeyCheckMark(selected,control)\
  781.     ImageObject,\
  782.         ImageButtonFrame,\
  783.         MUIA_InputMode        , MUIV_InputMode_Toggle,\
  784.         MUIA_Image_Spec       , MUII_CheckMark,\
  785.         MUIA_Image_FreeVert   , TRUE,\
  786.         MUIA_Selected         , selected,\
  787.         MUIA_Background       , MUII_ButtonBack,\
  788.         MUIA_ShowSelState     , FALSE,\
  789.         MUIA_ControlChar      , control,\
  790.         End
  791.  
  792. #endif
  793.  
  794.  
  795. /***************************************************************************
  796. **
  797. ** Button-Objects
  798. ** --------------
  799. **
  800. ** Note: Use small letters for KeyButtons, e.g.
  801. **       KeyButton("Cancel",'c')  and not  KeyButton("Cancel",'C') !!
  802. **
  803. ***************************************************************************/
  804.  
  805. #define SimpleButton(label) MUI_MakeObject(MUIO_Button,label)
  806.  
  807. #ifdef MUI_OBSOLETE
  808.  
  809. #define KeyButton(name,key)\
  810.     TextObject,\
  811.         ButtonFrame,\
  812.         MUIA_Text_Contents, name,\
  813.         MUIA_Text_PreParse, "\33c",\
  814.         MUIA_Text_HiChar  , key,\
  815.         MUIA_ControlChar  , key,\
  816.         MUIA_InputMode    , MUIV_InputMode_RelVerify,\
  817.         MUIA_Background   , MUII_ButtonBack,\
  818.         End
  819.  
  820. #endif
  821.  
  822.  
  823. #ifdef MUI_OBSOLETE
  824.  
  825. /***************************************************************************
  826. **
  827. ** Cycle-Object
  828. ** ------------
  829. **
  830. ***************************************************************************/
  831.  
  832. #define Cycle(entries)        CycleObject, MUIA_Cycle_Entries, entries, End
  833. #define KeyCycle(entries,key) CycleObject, MUIA_Cycle_Entries, entries, MUIA_ControlChar, key, End
  834.  
  835.  
  836.  
  837. /***************************************************************************
  838. **
  839. ** Radio-Object
  840. ** ------------
  841. **
  842. ***************************************************************************/
  843.  
  844. #define Radio(name,array)\
  845.     RadioObject,\
  846.         GroupFrameT(name),\
  847.         MUIA_Radio_Entries,array,\
  848.         End
  849.  
  850. #define KeyRadio(name,array,key)\
  851.     RadioObject,\
  852.         GroupFrameT(name),\
  853.         MUIA_Radio_Entries,array,\
  854.         MUIA_ControlChar, key,\
  855.         End
  856.  
  857.  
  858.  
  859. /***************************************************************************
  860. **
  861. ** Slider-Object
  862. ** -------------
  863. **
  864. ***************************************************************************/
  865.  
  866.  
  867. #define Slider(min,max,level)\
  868.     SliderObject,\
  869.         MUIA_Numeric_Min  , min,\
  870.         MUIA_Numeric_Max  , max,\
  871.         MUIA_Numeric_Value, level,\
  872.         End
  873.  
  874. #define KeySlider(min,max,level,key)\
  875.     SliderObject,\
  876.         MUIA_Numeric_Min  , min,\
  877.         MUIA_Numeric_Max  , max,\
  878.         MUIA_Numeric_Value, level,\
  879.         MUIA_ControlChar , key,\
  880.         End
  881.  
  882. #endif
  883.  
  884.  
  885.  
  886. /***************************************************************************
  887. **
  888. ** Button to be used for popup objects
  889. **
  890. ***************************************************************************/
  891.  
  892. #define PopButton(img) MUI_MakeObject(MUIO_PopButton,img)
  893.  
  894.  
  895.  
  896. /***************************************************************************
  897. **
  898. ** Labeling Objects
  899. ** ----------------
  900. **
  901. ** Labeling objects, e.g. a group of string gadgets,
  902. **
  903. **   Small: |foo   |
  904. **  Normal: |bar   |
  905. **     Big: |foobar|
  906. **    Huge: |barfoo|
  907. **
  908. ** is done using a 2 column group:
  909. **
  910. ** ColGroup(2),
  911. **     Child, Label2("Small:" ),
  912. **    Child, StringObject, End,
  913. **     Child, Label2("Normal:"),
  914. **    Child, StringObject, End,
  915. **     Child, Label2("Big:"   ),
  916. **    Child, StringObject, End,
  917. **     Child, Label2("Huge:"  ),
  918. **    Child, StringObject, End,
  919. **    End,
  920. **
  921. ** Note that we have three versions of the label macro, depending on
  922. ** the frame type of the right hand object:
  923. **
  924. ** Label1(): For use with standard frames (e.g. checkmarks).
  925. ** Label2(): For use with double high frames (e.g. string gadgets).
  926. ** Label() : For use with objects without a frame.
  927. **
  928. ** These macros ensure that your label will look fine even if the
  929. ** user of your application configured some strange spacing values.
  930. ** If you want to use your own labeling, you'll have to pay attention
  931. ** on this topic yourself.
  932. **
  933. ***************************************************************************/
  934.  
  935. #define Label(label)   MUI_MakeObject(MUIO_Label,label,0)
  936. #define Label1(label)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_SingleFrame)
  937. #define Label2(label)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_DoubleFrame)
  938. #define LLabel(label)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned)
  939. #define LLabel1(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|MUIO_Label_SingleFrame)
  940. #define LLabel2(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|MUIO_Label_DoubleFrame)
  941. #define CLabel(label)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_Centered)
  942. #define CLabel1(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_Centered|MUIO_Label_SingleFrame)
  943. #define CLabel2(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_Centered|MUIO_Label_DoubleFrame)
  944.  
  945. #define FreeLabel(label)   MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert)
  946. #define FreeLabel1(label)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_SingleFrame)
  947. #define FreeLabel2(label)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_DoubleFrame)
  948. #define FreeLLabel(label)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_LeftAligned)
  949. #define FreeLLabel1(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_LeftAligned|MUIO_Label_SingleFrame)
  950. #define FreeLLabel2(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_LeftAligned|MUIO_Label_DoubleFrame)
  951. #define FreeCLabel(label)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_Centered)
  952. #define FreeCLabel1(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_Centered|MUIO_Label_SingleFrame)
  953. #define FreeCLabel2(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_Centered|MUIO_Label_DoubleFrame)
  954.  
  955. #define KeyLabel(label,key)   MUI_MakeObject(MUIO_Label,label,key)
  956. #define KeyLabel1(label,key)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_SingleFrame|(key))
  957. #define KeyLabel2(label,key)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_DoubleFrame|(key))
  958. #define KeyLLabel(label,key)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|(key))
  959. #define KeyLLabel1(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|MUIO_Label_SingleFrame|(key))
  960. #define KeyLLabel2(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|MUIO_Label_DoubleFrame|(key))
  961. #define KeyCLabel(label,key)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_Centered|(key))
  962. #define KeyCLabel1(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_Centered|MUIO_Label_SingleFrame|(key))
  963. #define KeyCLabel2(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_Centered|MUIO_Label_DoubleFrame|(key))
  964.  
  965. #define FreeKeyLabel(label,key)   MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|(key))
  966. #define FreeKeyLabel1(label,key)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_SingleFrame|(key))
  967. #define FreeKeyLabel2(label,key)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_DoubleFrame|(key))
  968. #define FreeKeyLLabel(label,key)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_LeftAligned|(key))
  969. #define FreeKeyLLabel1(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_LeftAligned|MUIO_Label_SingleFrame|(key))
  970. #define FreeKeyLLabel2(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_LeftAligned|MUIO_Label_DoubleFrame|(key))
  971. #define FreeKeyCLabel(label,key)  MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_Centered|(key))
  972. #define FreeKeyCLabel1(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_Centered|MUIO_Label_SingleFrame|(key))
  973. #define FreeKeyCLabel2(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_Centered|MUIO_Label_DoubleFrame|(key))
  974.  
  975.  
  976.  
  977. /***************************************************************************
  978. **
  979. ** Controlling Objects
  980. ** -------------------
  981. **
  982. ** set() and get() are two short stubs for BOOPSI GetAttr() and SetAttrs()
  983. ** calls:
  984. **
  985. ** {
  986. **    char *x;
  987. **
  988. **    set(obj,MUIA_String_Contents,"foobar");
  989. **    get(obj,MUIA_String_Contents,&x);
  990. **
  991. **    printf("gadget contains '%s'\n",x);
  992. ** }
  993. **
  994. ** nnset() sets an attribute without triggering a possible notification.
  995. **
  996. ***************************************************************************/
  997.  
  998. #ifndef __cplusplus
  999.  
  1000. #define get(obj,attr,store) GetAttr(attr,obj,(ULONG *)store)
  1001. #define set(obj,attr,value) SetAttrs(obj,attr,value,TAG_DONE)
  1002. #define nnset(obj,attr,value) SetAttrs(obj,MUIA_NoNotify,TRUE,attr,value,TAG_DONE)
  1003.  
  1004. #define setmutex(obj,n)     set(obj,MUIA_Radio_Active,n)
  1005. #define setcycle(obj,n)     set(obj,MUIA_Cycle_Active,n)
  1006. #define setstring(obj,s)    set(obj,MUIA_String_Contents,s)
  1007. #define setcheckmark(obj,b) set(obj,MUIA_Selected,b)
  1008. #define setslider(obj,l)    set(obj,MUIA_Numeric_Value,l)
  1009.  
  1010. #endif
  1011.  
  1012.  
  1013. #endif /* MUI_NOSHORTCUTS */
  1014.  
  1015.  
  1016. /***************************************************************************
  1017. **
  1018. ** For Boopsi Image Implementors Only:
  1019. **
  1020. ** If MUI is using a boopsi image object, it will send a special method
  1021. ** immediately after object creation. This method has a parameter structure
  1022. ** where the boopsi can fill in its minimum and maximum size and learn if
  1023. ** its used in a horizontal or vertical context.
  1024. **
  1025. ** The boopsi image must use the method id (MUIM_BoopsiQuery) as return
  1026. ** value. That's how MUI sees that the method is implemented.
  1027. **
  1028. ** Note: MUI does not depend on this method. If the boopsi image doesn't
  1029. **       implement it, minimum size will be 0 and maximum size unlimited.
  1030. **
  1031. ***************************************************************************/
  1032.  
  1033. #define MUIM_BoopsiQuery 0x80427157 /* this is send to the boopsi and */
  1034.                                     /* must be used as return value   */
  1035.  
  1036. struct MUI_BoopsiQuery              /* parameter structure */
  1037. {
  1038.     ULONG mbq_MethodID;              /* always MUIM_BoopsiQuery */
  1039.  
  1040.     struct Screen *mbq_Screen;       /* obsolete, use mbq_RenderInfo */
  1041.     ULONG mbq_Flags;                 /* read only, see below */
  1042.  
  1043.     LONG mbq_MinWidth ;              /* write only, fill in min width  */
  1044.     LONG mbq_MinHeight;              /* write only, fill in min height */
  1045.     LONG mbq_MaxWidth ;              /* write only, fill in max width  */
  1046.     LONG mbq_MaxHeight;              /* write only, fill in max height */
  1047.     LONG mbq_DefWidth ;              /* write only, fill in def width  */
  1048.     LONG mbq_DefHeight;              /* write only, fill in def height */
  1049.  
  1050.     struct MUI_RenderInfo *mbq_RenderInfo;  /* read only, display context */
  1051.  
  1052.     /* may grow in future ... */
  1053. };
  1054.  
  1055. #define MUIP_BoopsiQuery MUI_BoopsiQuery  /* old structure name */
  1056.  
  1057. #define MBQF_HORIZ (1<<0)           /* object used in a horizontal */
  1058.                                     /* context (else vertical)     */
  1059.  
  1060. #define MBQ_MUI_MAXMAX (10000)          /* use this for unlimited MaxWidth/Height */
  1061.  
  1062.  
  1063. /*******************************************/
  1064. /* Begin of automatic header file creation */
  1065. /*******************************************/
  1066.  
  1067.  
  1068.  
  1069.  
  1070. /****************************************************************************/
  1071. /** Notify                                                                 **/
  1072. /****************************************************************************/
  1073.  
  1074. #ifdef _DCC
  1075. extern char MUIC_Notify[];
  1076. #else
  1077. #define MUIC_Notify "Notify.mui"
  1078. #endif
  1079.  
  1080. /* Methods */
  1081.  
  1082. #define MUIM_CallHook                       0x8042b96b /* V4  */
  1083. #define MUIM_Export                         0x80420f1c /* V12 */
  1084. #define MUIM_FindUData                      0x8042c196 /* V8  */
  1085. #define MUIM_GetUData                       0x8042ed0c /* V8  */
  1086. #define MUIM_Import                         0x8042d012 /* V12 */
  1087. #define MUIM_KillNotify                     0x8042d240 /* V4  */
  1088. #define MUIM_MultiSet                       0x8042d356 /* V7  */
  1089. #define MUIM_NoNotifySet                    0x8042216f /* V9  */
  1090. #define MUIM_Notify                         0x8042c9cb /* V4  */
  1091. #define MUIM_Set                            0x8042549a /* V4  */
  1092. #define MUIM_SetAsString                    0x80422590 /* V4  */
  1093. #define MUIM_SetUData                       0x8042c920 /* V8  */
  1094. #define MUIM_SetUDataOnce                   0x8042ca19 /* V11 */
  1095. #define MUIM_WriteLong                      0x80428d86 /* V6  */
  1096. #define MUIM_WriteString                    0x80424bf4 /* V6  */
  1097. struct  MUIP_CallHook                       { ULONG MethodID; struct Hook *Hook; ULONG param1; /* ... */ };
  1098. struct  MUIP_Export                         { ULONG MethodID; Object *dataspace; };
  1099. struct  MUIP_FindUData                      { ULONG MethodID; ULONG udata; };
  1100. struct  MUIP_GetUData                       { ULONG MethodID; ULONG udata; ULONG attr; ULONG *storage; };
  1101. struct  MUIP_Import                         { ULONG MethodID; Object *dataspace; };
  1102. struct  MUIP_KillNotify                     { ULONG MethodID; ULONG TrigAttr; };
  1103. struct  MUIP_MultiSet                       { ULONG MethodID; ULONG attr; ULONG val; APTR obj; /* ... */ };
  1104. struct  MUIP_NoNotifySet                    { ULONG MethodID; ULONG attr; char *format; ULONG val; /* ... */ };
  1105. struct  MUIP_Notify                         { ULONG MethodID; ULONG TrigAttr; ULONG TrigVal; APTR DestObj; ULONG FollowParams; /* ... */ };
  1106. struct  MUIP_Set                            { ULONG MethodID; ULONG attr; ULONG val; };
  1107. struct  MUIP_SetAsString                    { ULONG MethodID; ULONG attr; char *format; ULONG val; /* ... */ };
  1108. struct  MUIP_SetUData                       { ULONG MethodID; ULONG udata; ULONG attr; ULONG val; };
  1109. struct  MUIP_SetUDataOnce                   { ULONG MethodID; ULONG udata; ULONG attr; ULONG val; };
  1110. struct  MUIP_WriteLong                      { ULONG MethodID; ULONG val; ULONG *memory; };
  1111. struct  MUIP_WriteString                    { ULONG MethodID; char *str; char *memory; };
  1112.  
  1113. /* Attributes */
  1114.  
  1115. #define MUIA_ApplicationObject              0x8042d3ee /* V4  ..g Object *          */
  1116. #define MUIA_AppMessage                     0x80421955 /* V5  ..g struct AppMessage * */
  1117. #define MUIA_HelpLine                       0x8042a825 /* V4  isg LONG              */
  1118. #define MUIA_HelpNode                       0x80420b85 /* V4  isg STRPTR            */
  1119. #define MUIA_NoNotify                       0x804237f9 /* V7  .s. BOOL              */
  1120. #define MUIA_Parent                         0x8042e35f /* V11 ..g Object *          */
  1121. #define MUIA_Revision                       0x80427eaa /* V4  ..g LONG              */
  1122. #define MUIA_UserData                       0x80420313 /* V4  isg ULONG             */
  1123. #define MUIA_Version                        0x80422301 /* V4  ..g LONG              */
  1124.  
  1125.  
  1126.  
  1127. /****************************************************************************/
  1128. /** Family                                                                 **/
  1129. /****************************************************************************/
  1130.  
  1131. #ifdef _DCC
  1132. extern char MUIC_Family[];
  1133. #else
  1134. #define MUIC_Family "Family.mui"
  1135. #endif
  1136.  
  1137. /* Methods */
  1138.  
  1139. #define MUIM_Family_AddHead                 0x8042e200 /* V8  */
  1140. #define MUIM_Family_AddTail                 0x8042d752 /* V8  */
  1141. #define MUIM_Family_Insert                  0x80424d34 /* V8  */
  1142. #define MUIM_Family_Remove                  0x8042f8a9 /* V8  */
  1143. #define MUIM_Family_Sort                    0x80421c49 /* V8  */
  1144. #define MUIM_Family_Transfer                0x8042c14a /* V8  */
  1145. struct  MUIP_Family_AddHead                 { ULONG MethodID; Object *obj; };
  1146. struct  MUIP_Family_AddTail                 { ULONG MethodID; Object *obj; };
  1147. struct  MUIP_Family_Insert                  { ULONG MethodID; Object *obj; Object *pred; };
  1148. struct  MUIP_Family_Remove                  { ULONG MethodID; Object *obj; };
  1149. struct  MUIP_Family_Sort                    { ULONG MethodID; Object *obj[1]; };
  1150. struct  MUIP_Family_Transfer                { ULONG MethodID; Object *family; };
  1151.  
  1152. /* Attributes */
  1153.  
  1154. #define MUIA_Family_Child                   0x8042c696 /* V8  i.. Object *          */
  1155. #define MUIA_Family_List                    0x80424b9e /* V8  ..g struct MinList *  */
  1156.  
  1157.  
  1158.  
  1159. /****************************************************************************/
  1160. /** Menustrip                                                              **/
  1161. /****************************************************************************/
  1162.  
  1163. #ifdef _DCC
  1164. extern char MUIC_Menustrip[];
  1165. #else
  1166. #define MUIC_Menustrip "Menustrip.mui"
  1167. #endif
  1168.  
  1169. /* Methods */
  1170.  
  1171.  
  1172. /* Attributes */
  1173.  
  1174. #define MUIA_Menustrip_Enabled              0x8042815b /* V8  isg BOOL              */
  1175.  
  1176.  
  1177.  
  1178. /****************************************************************************/
  1179. /** Menu                                                                   **/
  1180. /****************************************************************************/
  1181.  
  1182. #ifdef _DCC
  1183. extern char MUIC_Menu[];
  1184. #else
  1185. #define MUIC_Menu "Menu.mui"
  1186. #endif
  1187.  
  1188. /* Methods */
  1189.  
  1190.  
  1191. /* Attributes */
  1192.  
  1193. #define MUIA_Menu_Enabled                   0x8042ed48 /* V8  isg BOOL              */
  1194. #define MUIA_Menu_Title                     0x8042a0e3 /* V8  isg STRPTR            */
  1195.  
  1196.  
  1197.  
  1198. /****************************************************************************/
  1199. /** Menuitem                                                               **/
  1200. /****************************************************************************/
  1201.  
  1202. #ifdef _DCC
  1203. extern char MUIC_Menuitem[];
  1204. #else
  1205. #define MUIC_Menuitem "Menuitem.mui"
  1206. #endif
  1207.  
  1208. /* Methods */
  1209.  
  1210.  
  1211. /* Attributes */
  1212.  
  1213. #define MUIA_Menuitem_Checked               0x8042562a /* V8  isg BOOL              */
  1214. #define MUIA_Menuitem_Checkit               0x80425ace /* V8  isg BOOL              */
  1215. #define MUIA_Menuitem_Enabled               0x8042ae0f /* V8  isg BOOL              */
  1216. #define MUIA_Menuitem_Exclude               0x80420bc6 /* V8  isg LONG              */
  1217. #define MUIA_Menuitem_Shortcut              0x80422030 /* V8  isg STRPTR            */
  1218. #define MUIA_Menuitem_Title                 0x804218be /* V8  isg STRPTR            */
  1219. #define MUIA_Menuitem_Toggle                0x80424d5c /* V8  isg BOOL              */
  1220. #define MUIA_Menuitem_Trigger               0x80426f32 /* V8  ..g struct MenuItem * */
  1221.  
  1222. #define MUIV_Menuitem_Shortcut_Check -1
  1223.  
  1224.  
  1225. /****************************************************************************/
  1226. /** Application                                                            **/
  1227. /****************************************************************************/
  1228.  
  1229. #ifdef _DCC
  1230. extern char MUIC_Application[];
  1231. #else
  1232. #define MUIC_Application "Application.mui"
  1233. #endif
  1234.  
  1235. /* Methods */
  1236.  
  1237. #define MUIM_Application_AboutMUI           0x8042d21d /* V14 */
  1238. #define MUIM_Application_AddInputHandler    0x8042f099 /* V11 */
  1239. #define MUIM_Application_CheckRefresh       0x80424d68 /* V11 */
  1240. #ifdef MUI_OBSOLETE
  1241. #define MUIM_Application_GetMenuCheck       0x8042c0a7 /* V4  */
  1242. #endif /* MUI_OBSOLETE */
  1243. #ifdef MUI_OBSOLETE
  1244. #define MUIM_Application_GetMenuState       0x8042a58f /* V4  */
  1245. #endif /* MUI_OBSOLETE */
  1246. #ifdef MUI_OBSOLETE
  1247. #define MUIM_Application_Input              0x8042d0f5 /* V4  */
  1248. #endif /* MUI_OBSOLETE */
  1249. #define MUIM_Application_InputBuffered      0x80427e59 /* V4  */
  1250. #define MUIM_Application_Load               0x8042f90d /* V4  */
  1251. #define MUIM_Application_NewInput           0x80423ba6 /* V11 */
  1252. #define MUIM_Application_OpenConfigWindow   0x804299ba /* V11 */
  1253. #define MUIM_Application_PushMethod         0x80429ef8 /* V4  */
  1254. #define MUIM_Application_RemInputHandler    0x8042e7af /* V11 */
  1255. #define MUIM_Application_ReturnID           0x804276ef /* V4  */
  1256. #define MUIM_Application_Save               0x804227ef /* V4  */
  1257. #define MUIM_Application_SetConfigItem      0x80424a80 /* V11 */
  1258. #ifdef MUI_OBSOLETE
  1259. #define MUIM_Application_SetMenuCheck       0x8042a707 /* V4  */
  1260. #endif /* MUI_OBSOLETE */
  1261. #ifdef MUI_OBSOLETE
  1262. #define MUIM_Application_SetMenuState       0x80428bef /* V4  */
  1263. #endif /* MUI_OBSOLETE */
  1264. #define MUIM_Application_ShowHelp           0x80426479 /* V4  */
  1265. struct  MUIP_Application_AboutMUI           { ULONG MethodID; Object *refwindow; };
  1266. struct  MUIP_Application_AddInputHandler    { ULONG MethodID; struct MUI_InputHandlerNode *ihnode; };
  1267. struct  MUIP_Application_CheckRefresh       { ULONG MethodID; };
  1268. struct  MUIP_Application_GetMenuCheck       { ULONG MethodID; ULONG MenuID; };
  1269. struct  MUIP_Application_GetMenuState       { ULONG MethodID; ULONG MenuID; };
  1270. struct  MUIP_Application_Input              { ULONG MethodID; LONGBITS *signal; };
  1271. struct  MUIP_Application_InputBuffered      { ULONG MethodID; };
  1272. struct  MUIP_Application_Load               { ULONG MethodID; STRPTR name; };
  1273. struct  MUIP_Application_NewInput           { ULONG MethodID; LONGBITS *signal; };
  1274. struct  MUIP_Application_OpenConfigWindow   { ULONG MethodID; ULONG flags; };
  1275. struct  MUIP_Application_PushMethod         { ULONG MethodID; Object *dest; LONG count; /* ... */ };
  1276. struct  MUIP_Application_RemInputHandler    { ULONG MethodID; struct MUI_InputHandlerNode *ihnode; };
  1277. struct  MUIP_Application_ReturnID           { ULONG MethodID; ULONG retid; };
  1278. struct  MUIP_Application_Save               { ULONG MethodID; STRPTR name; };
  1279. struct  MUIP_Application_SetConfigItem      { ULONG MethodID; ULONG item; APTR data; };
  1280. struct  MUIP_Application_SetMenuCheck       { ULONG MethodID; ULONG MenuID; LONG stat; };
  1281. struct  MUIP_Application_SetMenuState       { ULONG MethodID; ULONG MenuID; LONG stat; };
  1282. struct  MUIP_Application_ShowHelp           { ULONG MethodID; Object *window; char *name; char *node; LONG line; };
  1283.  
  1284. /* Attributes */
  1285.  
  1286. #define MUIA_Application_Active             0x804260ab /* V4  isg BOOL              */
  1287. #define MUIA_Application_Author             0x80424842 /* V4  i.g STRPTR            */
  1288. #define MUIA_Application_Base               0x8042e07a /* V4  i.g STRPTR            */
  1289. #define MUIA_Application_Broker             0x8042dbce /* V4  ..g Broker *          */
  1290. #define MUIA_Application_BrokerHook         0x80428f4b /* V4  isg struct Hook *     */
  1291. #define MUIA_Application_BrokerPort         0x8042e0ad /* V6  ..g struct MsgPort *  */
  1292. #define MUIA_Application_BrokerPri          0x8042c8d0 /* V6  i.g LONG              */
  1293. #define MUIA_Application_Commands           0x80428648 /* V4  isg struct MUI_Command * */
  1294. #define MUIA_Application_Copyright          0x8042ef4d /* V4  i.g STRPTR            */
  1295. #define MUIA_Application_Description        0x80421fc6 /* V4  i.g STRPTR            */
  1296. #define MUIA_Application_DiskObject         0x804235cb /* V4  isg struct DiskObject * */
  1297. #define MUIA_Application_DoubleStart        0x80423bc6 /* V4  ..g BOOL              */
  1298. #define MUIA_Application_DropObject         0x80421266 /* V5  is. Object *          */
  1299. #define MUIA_Application_ForceQuit          0x804257df /* V8  ..g BOOL              */
  1300. #define MUIA_Application_HelpFile           0x804293f4 /* V8  isg STRPTR            */
  1301. #define MUIA_Application_Iconified          0x8042a07f /* V4  .sg BOOL              */
  1302. #ifdef MUI_OBSOLETE
  1303. #define MUIA_Application_Menu               0x80420e1f /* V4  i.g struct NewMenu *  */
  1304. #endif /* MUI_OBSOLETE */
  1305. #define MUIA_Application_MenuAction         0x80428961 /* V4  ..g ULONG             */
  1306. #define MUIA_Application_MenuHelp           0x8042540b /* V4  ..g ULONG             */
  1307. #define MUIA_Application_Menustrip          0x804252d9 /* V8  i.. Object *          */
  1308. #define MUIA_Application_RexxHook           0x80427c42 /* V7  isg struct Hook *     */
  1309. #define MUIA_Application_RexxMsg            0x8042fd88 /* V4  ..g struct RxMsg *    */
  1310. #define MUIA_Application_RexxString         0x8042d711 /* V4  .s. STRPTR            */
  1311. #define MUIA_Application_SingleTask         0x8042a2c8 /* V4  i.. BOOL              */
  1312. #define MUIA_Application_Sleep              0x80425711 /* V4  .s. BOOL              */
  1313. #define MUIA_Application_Title              0x804281b8 /* V4  i.g STRPTR            */
  1314. #define MUIA_Application_UseCommodities     0x80425ee5 /* V10 i.. BOOL              */
  1315. #define MUIA_Application_UseRexx            0x80422387 /* V10 i.. BOOL              */
  1316. #define MUIA_Application_Version            0x8042b33f /* V4  i.g STRPTR            */
  1317. #define MUIA_Application_Window             0x8042bfe0 /* V4  i.. Object *          */
  1318. #define MUIA_Application_WindowList         0x80429abe /* V13 ..g struct List *     */
  1319.  
  1320.  
  1321.  
  1322. /****************************************************************************/
  1323. /** Window                                                                 **/
  1324. /****************************************************************************/
  1325.  
  1326. #ifdef _DCC
  1327. extern char MUIC_Window[];
  1328. #else
  1329. #define MUIC_Window "Window.mui"
  1330. #endif
  1331.  
  1332. /* Methods */
  1333.  
  1334. #ifdef MUI_OBSOLETE
  1335. #define MUIM_Window_GetMenuCheck            0x80420414 /* V4  */
  1336. #endif /* MUI_OBSOLETE */
  1337. #ifdef MUI_OBSOLETE
  1338. #define MUIM_Window_GetMenuState            0x80420d2f /* V4  */
  1339. #endif /* MUI_OBSOLETE */
  1340. #define MUIM_Window_ScreenToBack            0x8042913d /* V4  */
  1341. #define MUIM_Window_ScreenToFront           0x804227a4 /* V4  */
  1342. #ifdef MUI_OBSOLETE
  1343. #define MUIM_Window_SetCycleChain           0x80426510 /* V4  */
  1344. #endif /* MUI_OBSOLETE */
  1345. #ifdef MUI_OBSOLETE
  1346. #define MUIM_Window_SetMenuCheck            0x80422243 /* V4  */
  1347. #endif /* MUI_OBSOLETE */
  1348. #ifdef MUI_OBSOLETE
  1349. #define MUIM_Window_SetMenuState            0x80422b5e /* V4  */
  1350. #endif /* MUI_OBSOLETE */
  1351. #define MUIM_Window_ToBack                  0x8042152e /* V4  */
  1352. #define MUIM_Window_ToFront                 0x8042554f /* V4  */
  1353. struct  MUIP_Window_GetMenuCheck            { ULONG MethodID; ULONG MenuID; };
  1354. struct  MUIP_Window_GetMenuState            { ULONG MethodID; ULONG MenuID; };
  1355. struct  MUIP_Window_ScreenToBack            { ULONG MethodID; };
  1356. struct  MUIP_Window_ScreenToFront           { ULONG MethodID; };
  1357. struct  MUIP_Window_SetCycleChain           { ULONG MethodID; Object *obj[1]; };
  1358. struct  MUIP_Window_SetMenuCheck            { ULONG MethodID; ULONG MenuID; LONG stat; };
  1359. struct  MUIP_Window_SetMenuState            { ULONG MethodID; ULONG MenuID; LONG stat; };
  1360. struct  MUIP_Window_ToBack                  { ULONG MethodID; };
  1361. struct  MUIP_Window_ToFront                 { ULONG MethodID; };
  1362.  
  1363. /* Attributes */
  1364.  
  1365. #define MUIA_Window_Activate                0x80428d2f /* V4  isg BOOL              */
  1366. #define MUIA_Window_ActiveObject            0x80427925 /* V4  .sg Object *          */
  1367. #define MUIA_Window_AltHeight               0x8042cce3 /* V4  i.g LONG              */
  1368. #define MUIA_Window_AltLeftEdge             0x80422d65 /* V4  i.g LONG              */
  1369. #define MUIA_Window_AltTopEdge              0x8042e99b /* V4  i.g LONG              */
  1370. #define MUIA_Window_AltWidth                0x804260f4 /* V4  i.g LONG              */
  1371. #define MUIA_Window_AppWindow               0x804280cf /* V5  i.. BOOL              */
  1372. #define MUIA_Window_Backdrop                0x8042c0bb /* V4  i.. BOOL              */
  1373. #define MUIA_Window_Borderless              0x80429b79 /* V4  i.. BOOL              */
  1374. #define MUIA_Window_CloseGadget             0x8042a110 /* V4  i.. BOOL              */
  1375. #define MUIA_Window_CloseRequest            0x8042e86e /* V4  ..g BOOL              */
  1376. #define MUIA_Window_DefaultObject           0x804294d7 /* V4  isg Object *          */
  1377. #define MUIA_Window_DepthGadget             0x80421923 /* V4  i.. BOOL              */
  1378. #define MUIA_Window_DragBar                 0x8042045d /* V4  i.. BOOL              */
  1379. #define MUIA_Window_FancyDrawing            0x8042bd0e /* V8  isg BOOL              */
  1380. #define MUIA_Window_Height                  0x80425846 /* V4  i.g LONG              */
  1381. #define MUIA_Window_ID                      0x804201bd /* V4  isg ULONG             */
  1382. #define MUIA_Window_InputEvent              0x804247d8 /* V4  ..g struct InputEvent * */
  1383. #define MUIA_Window_IsSubWindow             0x8042b5aa /* V4  isg BOOL              */
  1384. #define MUIA_Window_LeftEdge                0x80426c65 /* V4  i.g LONG              */
  1385. #ifdef MUI_OBSOLETE
  1386. #define MUIA_Window_Menu                    0x8042db94 /* V4  i.. struct NewMenu *  */
  1387. #endif /* MUI_OBSOLETE */
  1388. #define MUIA_Window_MenuAction              0x80427521 /* V8  isg ULONG             */
  1389. #define MUIA_Window_Menustrip               0x8042855e /* V8  i.g Object *          */
  1390. #define MUIA_Window_MouseObject             0x8042bf9b /* V10 ..g Object *          */
  1391. #define MUIA_Window_NeedsMouseObject        0x8042372a /* V10 i.. BOOL              */
  1392. #define MUIA_Window_NoMenus                 0x80429df5 /* V4  is. BOOL              */
  1393. #define MUIA_Window_Open                    0x80428aa0 /* V4  .sg BOOL              */
  1394. #define MUIA_Window_PublicScreen            0x804278e4 /* V6  isg STRPTR            */
  1395. #define MUIA_Window_RefWindow               0x804201f4 /* V4  is. Object *          */
  1396. #define MUIA_Window_RootObject              0x8042cba5 /* V4  isg Object *          */
  1397. #define MUIA_Window_Screen                  0x8042df4f /* V4  isg struct Screen *   */
  1398. #define MUIA_Window_ScreenTitle             0x804234b0 /* V5  isg STRPTR            */
  1399. #define MUIA_Window_SizeGadget              0x8042e33d /* V4  i.. BOOL              */
  1400. #define MUIA_Window_SizeRight               0x80424780 /* V4  i.. BOOL              */
  1401. #define MUIA_Window_Sleep                   0x8042e7db /* V4  .sg BOOL              */
  1402. #define MUIA_Window_Title                   0x8042ad3d /* V4  isg STRPTR            */
  1403. #define MUIA_Window_TopEdge                 0x80427c66 /* V4  i.g LONG              */
  1404. #define MUIA_Window_UseBottomBorderScroller 0x80424e79 /* V13 is. BOOL              */
  1405. #define MUIA_Window_UseLeftBorderScroller   0x8042433e /* V13 is. BOOL              */
  1406. #define MUIA_Window_UseRightBorderScroller  0x8042c05e /* V13 is. BOOL              */
  1407. #define MUIA_Window_Width                   0x8042dcae /* V4  i.g LONG              */
  1408. #define MUIA_Window_Window                  0x80426a42 /* V4  ..g struct Window *   */
  1409.  
  1410. #define MUIV_Window_ActiveObject_None 0
  1411. #define MUIV_Window_ActiveObject_Next -1
  1412. #define MUIV_Window_ActiveObject_Prev -2
  1413. #define MUIV_Window_AltHeight_MinMax(p) (0-(p))
  1414. #define MUIV_Window_AltHeight_Visible(p) (-100-(p))
  1415. #define MUIV_Window_AltHeight_Screen(p) (-200-(p))
  1416. #define MUIV_Window_AltHeight_Scaled -1000
  1417. #define MUIV_Window_AltLeftEdge_Centered -1
  1418. #define MUIV_Window_AltLeftEdge_Moused -2
  1419. #define MUIV_Window_AltLeftEdge_NoChange -1000
  1420. #define MUIV_Window_AltTopEdge_Centered -1
  1421. #define MUIV_Window_AltTopEdge_Moused -2
  1422. #define MUIV_Window_AltTopEdge_Delta(p) (-3-(p))
  1423. #define MUIV_Window_AltTopEdge_NoChange -1000
  1424. #define MUIV_Window_AltWidth_MinMax(p) (0-(p))
  1425. #define MUIV_Window_AltWidth_Visible(p) (-100-(p))
  1426. #define MUIV_Window_AltWidth_Screen(p) (-200-(p))
  1427. #define MUIV_Window_AltWidth_Scaled -1000
  1428. #define MUIV_Window_Height_MinMax(p) (0-(p))
  1429. #define MUIV_Window_Height_Visible(p) (-100-(p))
  1430. #define MUIV_Window_Height_Screen(p) (-200-(p))
  1431. #define MUIV_Window_Height_Scaled -1000
  1432. #define MUIV_Window_Height_Default -1001
  1433. #define MUIV_Window_LeftEdge_Centered -1
  1434. #define MUIV_Window_LeftEdge_Moused -2
  1435. #ifdef MUI_OBSOLETE
  1436. #define MUIV_Window_Menu_NoMenu -1
  1437. #endif /* MUI_OBSOLETE */
  1438. #define MUIV_Window_TopEdge_Centered -1
  1439. #define MUIV_Window_TopEdge_Moused -2
  1440. #define MUIV_Window_TopEdge_Delta(p) (-3-(p))
  1441. #define MUIV_Window_Width_MinMax(p) (0-(p))
  1442. #define MUIV_Window_Width_Visible(p) (-100-(p))
  1443. #define MUIV_Window_Width_Screen(p) (-200-(p))
  1444. #define MUIV_Window_Width_Scaled -1000
  1445. #define MUIV_Window_Width_Default -1001
  1446.  
  1447.  
  1448. /****************************************************************************/
  1449. /** Aboutmui                                                               **/
  1450. /****************************************************************************/
  1451.  
  1452. #ifdef _DCC
  1453. extern char MUIC_Aboutmui[];
  1454. #else
  1455. #define MUIC_Aboutmui "Aboutmui.mui"
  1456. #endif
  1457.  
  1458. /* Methods */
  1459.  
  1460.  
  1461. /* Attributes */
  1462.  
  1463. #define MUIA_Aboutmui_Application           0x80422523 /* V11 i.. Object *          */
  1464.  
  1465.  
  1466.  
  1467. /****************************************************************************/
  1468. /** Area                                                                   **/
  1469. /****************************************************************************/
  1470.  
  1471. #ifdef _DCC
  1472. extern char MUIC_Area[];
  1473. #else
  1474. #define MUIC_Area "Area.mui"
  1475. #endif
  1476.  
  1477. /* Methods */
  1478.  
  1479. #define MUIM_AskMinMax                      0x80423874 /* Custom Class */ /* V4  */
  1480. #define MUIM_Cleanup                        0x8042d985 /* Custom Class */ /* V4  */
  1481. #define MUIM_ContextMenuBuild               0x80429d2e /* V11 */
  1482. #define MUIM_ContextMenuChoice              0x80420f0e /* V11 */
  1483. #define MUIM_DragBegin                      0x8042c03a /* V11 */
  1484. #define MUIM_DragDrop                       0x8042c555 /* V11 */
  1485. #define MUIM_DragFinish                     0x804251f0 /* V11 */
  1486. #define MUIM_DragQuery                      0x80420261 /* V11 */
  1487. #define MUIM_DragReport                     0x8042edad /* V11 */
  1488. #define MUIM_Draw                           0x80426f3f /* Custom Class */ /* V4  */
  1489. #define MUIM_HandleInput                    0x80422a1a /* Custom Class */ /* V4  */
  1490. #define MUIM_Hide                           0x8042f20f /* Custom Class */ /* V4  */
  1491. #define MUIM_Setup                          0x80428354 /* Custom Class */ /* V4  */
  1492. #define MUIM_Show                           0x8042cc84 /* Custom Class */ /* V4  */
  1493. struct  MUIP_AskMinMax                      { ULONG MethodID; struct MUI_MinMax *MinMaxInfo; }; /* Custom Class */
  1494. struct  MUIP_Cleanup                        { ULONG MethodID; }; /* Custom Class */
  1495. struct  MUIP_ContextMenuBuild               { ULONG MethodID; LONG mx; LONG my; };
  1496. struct  MUIP_ContextMenuChoice              { ULONG MethodID; Object *item; };
  1497. struct  MUIP_DragBegin                      { ULONG MethodID; Object *obj; };
  1498. struct  MUIP_DragDrop                       { ULONG MethodID; Object *obj; LONG x; LONG y; };
  1499. struct  MUIP_DragFinish                     { ULONG MethodID; Object *obj; };
  1500. struct  MUIP_DragQuery                      { ULONG MethodID; Object *obj; };
  1501. struct  MUIP_DragReport                     { ULONG MethodID; Object *obj; LONG x; LONG y; LONG update; };
  1502. struct  MUIP_Draw                           { ULONG MethodID; ULONG flags; }; /* Custom Class */
  1503. struct  MUIP_HandleInput                    { ULONG MethodID; struct IntuiMessage *imsg; LONG muikey; }; /* Custom Class */
  1504. struct  MUIP_Hide                           { ULONG MethodID; }; /* Custom Class */
  1505. struct  MUIP_Setup                          { ULONG MethodID; struct MUI_RenderInfo *RenderInfo; }; /* Custom Class */
  1506. struct  MUIP_Show                           { ULONG MethodID; }; /* Custom Class */
  1507.  
  1508. /* Attributes */
  1509.  
  1510. #define MUIA_Background                     0x8042545b /* V4  is. LONG              */
  1511. #define MUIA_BottomEdge                     0x8042e552 /* V4  ..g LONG              */
  1512. #define MUIA_ContextMenu                    0x8042b704 /* V11 isg Object *          */
  1513. #define MUIA_ContextMenuTrigger             0x8042a2c1 /* V11 ..g Object *          */
  1514. #define MUIA_ControlChar                    0x8042120b /* V4  isg char              */
  1515. #define MUIA_CycleChain                     0x80421ce7 /* V11 isg LONG              */
  1516. #define MUIA_Disabled                       0x80423661 /* V4  isg BOOL              */
  1517. #define MUIA_Draggable                      0x80420b6e /* V11 isg BOOL              */
  1518. #define MUIA_Dropable                       0x8042fbce /* V11 isg BOOL              */
  1519. #ifdef MUI_OBSOLETE
  1520. #define MUIA_ExportID                       0x8042d76e /* V4  isg ULONG             */
  1521. #endif /* MUI_OBSOLETE */
  1522. #define MUIA_FillArea                       0x804294a3 /* V4  is. BOOL              */
  1523. #define MUIA_FixHeight                      0x8042a92b /* V4  i.. LONG              */
  1524. #define MUIA_FixHeightTxt                   0x804276f2 /* V4  i.. STRPTR            */
  1525. #define MUIA_FixWidth                       0x8042a3f1 /* V4  i.. LONG              */
  1526. #define MUIA_FixWidthTxt                    0x8042d044 /* V4  i.. STRPTR            */
  1527. #define MUIA_Font                           0x8042be50 /* V4  i.g struct TextFont * */
  1528. #define MUIA_Frame                          0x8042ac64 /* V4  i.. LONG              */
  1529. #define MUIA_FramePhantomHoriz              0x8042ed76 /* V4  i.. BOOL              */
  1530. #define MUIA_FrameTitle                     0x8042d1c7 /* V4  i.. STRPTR            */
  1531. #define MUIA_Height                         0x80423237 /* V4  ..g LONG              */
  1532. #define MUIA_HorizDisappear                 0x80429615 /* V11 isg LONG              */
  1533. #define MUIA_HorizWeight                    0x80426db9 /* V4  isg WORD              */
  1534. #define MUIA_InnerBottom                    0x8042f2c0 /* V4  i.g LONG              */
  1535. #define MUIA_InnerLeft                      0x804228f8 /* V4  i.g LONG              */
  1536. #define MUIA_InnerRight                     0x804297ff /* V4  i.g LONG              */
  1537. #define MUIA_InnerTop                       0x80421eb6 /* V4  i.g LONG              */
  1538. #define MUIA_InputMode                      0x8042fb04 /* V4  i.. LONG              */
  1539. #define MUIA_LeftEdge                       0x8042bec6 /* V4  ..g LONG              */
  1540. #define MUIA_MaxHeight                      0x804293e4 /* V11 i.. LONG              */
  1541. #define MUIA_MaxWidth                       0x8042f112 /* V11 i.. LONG              */
  1542. #define MUIA_ObjectID                       0x8042d76e /* V11 isg ULONG             */
  1543. #define MUIA_Pressed                        0x80423535 /* V4  ..g BOOL              */
  1544. #define MUIA_RightEdge                      0x8042ba82 /* V4  ..g LONG              */
  1545. #define MUIA_Selected                       0x8042654b /* V4  isg BOOL              */
  1546. #define MUIA_ShortHelp                      0x80428fe3 /* V11 isg STRPTR            */
  1547. #define MUIA_ShowMe                         0x80429ba8 /* V4  isg BOOL              */
  1548. #define MUIA_ShowSelState                   0x8042caac /* V4  i.. BOOL              */
  1549. #define MUIA_Timer                          0x80426435 /* V4  ..g LONG              */
  1550. #define MUIA_TopEdge                        0x8042509b /* V4  ..g LONG              */
  1551. #define MUIA_VertDisappear                  0x8042d12f /* V11 isg LONG              */
  1552. #define MUIA_VertWeight                     0x804298d0 /* V4  isg WORD              */
  1553. #define MUIA_Weight                         0x80421d1f /* V4  i.. WORD              */
  1554. #define MUIA_Width                          0x8042b59c /* V4  ..g LONG              */
  1555. #define MUIA_Window                         0x80421591 /* V4  ..g struct Window *   */
  1556. #define MUIA_WindowObject                   0x8042669e /* V4  ..g Object *          */
  1557.  
  1558. #define MUIV_Font_Inherit 0
  1559. #define MUIV_Font_Normal -1
  1560. #define MUIV_Font_List -2
  1561. #define MUIV_Font_Tiny -3
  1562. #define MUIV_Font_Fixed -4
  1563. #define MUIV_Font_Title -5
  1564. #define MUIV_Font_Big -6
  1565. #define MUIV_Font_Button -7
  1566. #define MUIV_Frame_None 0
  1567. #define MUIV_Frame_Button 1
  1568. #define MUIV_Frame_ImageButton 2
  1569. #define MUIV_Frame_Text 3
  1570. #define MUIV_Frame_String 4
  1571. #define MUIV_Frame_ReadList 5
  1572. #define MUIV_Frame_InputList 6
  1573. #define MUIV_Frame_Prop 7
  1574. #define MUIV_Frame_Gauge 8
  1575. #define MUIV_Frame_Group 9
  1576. #define MUIV_Frame_PopUp 10
  1577. #define MUIV_Frame_Virtual 11
  1578. #define MUIV_Frame_Slider 12
  1579. #define MUIV_Frame_Count 13
  1580. #define MUIV_InputMode_None 0
  1581. #define MUIV_InputMode_RelVerify 1
  1582. #define MUIV_InputMode_Immediate 2
  1583. #define MUIV_InputMode_Toggle 3
  1584.  
  1585.  
  1586. /****************************************************************************/
  1587. /** Rectangle                                                              **/
  1588. /****************************************************************************/
  1589.  
  1590. #ifdef _DCC
  1591. extern char MUIC_Rectangle[];
  1592. #else
  1593. #define MUIC_Rectangle "Rectangle.mui"
  1594. #endif
  1595.  
  1596. /* Attributes */
  1597.  
  1598. #define MUIA_Rectangle_BarTitle             0x80426689 /* V11 i.g STRPTR            */
  1599. #define MUIA_Rectangle_HBar                 0x8042c943 /* V7  i.g BOOL              */
  1600. #define MUIA_Rectangle_VBar                 0x80422204 /* V7  i.g BOOL              */
  1601.  
  1602.  
  1603.  
  1604. /****************************************************************************/
  1605. /** Balance                                                                **/
  1606. /****************************************************************************/
  1607.  
  1608. #ifdef _DCC
  1609. extern char MUIC_Balance[];
  1610. #else
  1611. #define MUIC_Balance "Balance.mui"
  1612. #endif
  1613.  
  1614.  
  1615. /****************************************************************************/
  1616. /** Image                                                                  **/
  1617. /****************************************************************************/
  1618.  
  1619. #ifdef _DCC
  1620. extern char MUIC_Image[];
  1621. #else
  1622. #define MUIC_Image "Image.mui"
  1623. #endif
  1624.  
  1625. /* Attributes */
  1626.  
  1627. #define MUIA_Image_FontMatch                0x8042815d /* V4  i.. BOOL              */
  1628. #define MUIA_Image_FontMatchHeight          0x80429f26 /* V4  i.. BOOL              */
  1629. #define MUIA_Image_FontMatchWidth           0x804239bf /* V4  i.. BOOL              */
  1630. #define MUIA_Image_FreeHoriz                0x8042da84 /* V4  i.. BOOL              */
  1631. #define MUIA_Image_FreeVert                 0x8042ea28 /* V4  i.. BOOL              */
  1632. #define MUIA_Image_OldImage                 0x80424f3d /* V4  i.. struct Image *    */
  1633. #define MUIA_Image_Spec                     0x804233d5 /* V4  i.. char *            */
  1634. #define MUIA_Image_State                    0x8042a3ad /* V4  is. LONG              */
  1635.  
  1636.  
  1637.  
  1638. /****************************************************************************/
  1639. /** Bitmap                                                                 **/
  1640. /****************************************************************************/
  1641.  
  1642. #ifdef _DCC
  1643. extern char MUIC_Bitmap[];
  1644. #else
  1645. #define MUIC_Bitmap "Bitmap.mui"
  1646. #endif
  1647.  
  1648. /* Attributes */
  1649.  
  1650. #define MUIA_Bitmap_Bitmap                  0x804279bd /* V8  isg struct BitMap *   */
  1651. #define MUIA_Bitmap_Height                  0x80421560 /* V8  isg LONG              */
  1652. #define MUIA_Bitmap_MappingTable            0x8042e23d /* V8  isg UBYTE *           */
  1653. #define MUIA_Bitmap_Precision               0x80420c74 /* V11 isg LONG              */
  1654. #define MUIA_Bitmap_RemappedBitmap          0x80423a47 /* V11 ..g struct BitMap *   */
  1655. #define MUIA_Bitmap_SourceColors            0x80425360 /* V8  isg ULONG *           */
  1656. #define MUIA_Bitmap_Transparent             0x80422805 /* V8  isg LONG              */
  1657. #define MUIA_Bitmap_UseFriend               0x804239d8 /* V11 i.. BOOL              */
  1658. #define MUIA_Bitmap_Width                   0x8042eb3a /* V8  isg LONG              */
  1659.  
  1660.  
  1661.  
  1662. /****************************************************************************/
  1663. /** Bodychunk                                                              **/
  1664. /****************************************************************************/
  1665.  
  1666. #ifdef _DCC
  1667. extern char MUIC_Bodychunk[];
  1668. #else
  1669. #define MUIC_Bodychunk "Bodychunk.mui"
  1670. #endif
  1671.  
  1672. /* Attributes */
  1673.  
  1674. #define MUIA_Bodychunk_Body                 0x8042ca67 /* V8  isg UBYTE *           */
  1675. #define MUIA_Bodychunk_Compression          0x8042de5f /* V8  isg UBYTE             */
  1676. #define MUIA_Bodychunk_Depth                0x8042c392 /* V8  isg LONG              */
  1677. #define MUIA_Bodychunk_Masking              0x80423b0e /* V8  isg UBYTE             */
  1678.  
  1679.  
  1680.  
  1681. /****************************************************************************/
  1682. /** Text                                                                   **/
  1683. /****************************************************************************/
  1684.  
  1685. #ifdef _DCC
  1686. extern char MUIC_Text[];
  1687. #else
  1688. #define MUIC_Text "Text.mui"
  1689. #endif
  1690.  
  1691. /* Attributes */
  1692.  
  1693. #define MUIA_Text_Contents                  0x8042f8dc /* V4  isg STRPTR            */
  1694. #define MUIA_Text_HiChar                    0x804218ff /* V4  i.. char              */
  1695. #define MUIA_Text_PreParse                  0x8042566d /* V4  isg STRPTR            */
  1696. #define MUIA_Text_SetMax                    0x80424d0a /* V4  i.. BOOL              */
  1697. #define MUIA_Text_SetMin                    0x80424e10 /* V4  i.. BOOL              */
  1698. #define MUIA_Text_SetVMax                   0x80420d8b /* V11 i.. BOOL              */
  1699.  
  1700.  
  1701.  
  1702. /****************************************************************************/
  1703. /** Gadget                                                                 **/
  1704. /****************************************************************************/
  1705.  
  1706. #ifdef _DCC
  1707. extern char MUIC_Gadget[];
  1708. #else
  1709. #define MUIC_Gadget "Gadget.mui"
  1710. #endif
  1711.  
  1712. /* Attributes */
  1713.  
  1714. #define MUIA_Gadget_Gadget                  0x8042ec1a /* V11 ..g struct Gadget *   */
  1715.  
  1716.  
  1717.  
  1718. /****************************************************************************/
  1719. /** String                                                                 **/
  1720. /****************************************************************************/
  1721.  
  1722. #ifdef _DCC
  1723. extern char MUIC_String[];
  1724. #else
  1725. #define MUIC_String "String.mui"
  1726. #endif
  1727.  
  1728. /* Methods */
  1729.  
  1730.  
  1731. /* Attributes */
  1732.  
  1733. #define MUIA_String_Accept                  0x8042e3e1 /* V4  isg STRPTR            */
  1734. #define MUIA_String_Acknowledge             0x8042026c /* V4  ..g STRPTR            */
  1735. #define MUIA_String_AdvanceOnCR             0x804226de /* V11 isg BOOL              */
  1736. #define MUIA_String_AttachedList            0x80420fd2 /* V4  i.. Object *          */
  1737. #define MUIA_String_BufferPos               0x80428b6c /* V4  .sg LONG              */
  1738. #define MUIA_String_Contents                0x80428ffd /* V4  isg STRPTR            */
  1739. #define MUIA_String_DisplayPos              0x8042ccbf /* V4  .sg LONG              */
  1740. #define MUIA_String_EditHook                0x80424c33 /* V7  isg struct Hook *     */
  1741. #define MUIA_String_Format                  0x80427484 /* V4  i.g LONG              */
  1742. #define MUIA_String_Integer                 0x80426e8a /* V4  isg ULONG             */
  1743. #define MUIA_String_LonelyEditHook          0x80421569 /* V11 isg BOOL              */
  1744. #define MUIA_String_MaxLen                  0x80424984 /* V4  i.g LONG              */
  1745. #define MUIA_String_Reject                  0x8042179c /* V4  isg STRPTR            */
  1746. #define MUIA_String_Secret                  0x80428769 /* V4  i.g BOOL              */
  1747.  
  1748. #define MUIV_String_Format_Left 0
  1749. #define MUIV_String_Format_Center 1
  1750. #define MUIV_String_Format_Right 2
  1751.  
  1752.  
  1753. /****************************************************************************/
  1754. /** Boopsi                                                                 **/
  1755. /****************************************************************************/
  1756.  
  1757. #ifdef _DCC
  1758. extern char MUIC_Boopsi[];
  1759. #else
  1760. #define MUIC_Boopsi "Boopsi.mui"
  1761. #endif
  1762.  
  1763. /* Attributes */
  1764.  
  1765. #define MUIA_Boopsi_Class                   0x80426999 /* V4  isg struct IClass *   */
  1766. #define MUIA_Boopsi_ClassID                 0x8042bfa3 /* V4  isg char *            */
  1767. #define MUIA_Boopsi_MaxHeight               0x8042757f /* V4  isg ULONG             */
  1768. #define MUIA_Boopsi_MaxWidth                0x8042bcb1 /* V4  isg ULONG             */
  1769. #define MUIA_Boopsi_MinHeight               0x80422c93 /* V4  isg ULONG             */
  1770. #define MUIA_Boopsi_MinWidth                0x80428fb2 /* V4  isg ULONG             */
  1771. #define MUIA_Boopsi_Object                  0x80420178 /* V4  ..g Object *          */
  1772. #define MUIA_Boopsi_Remember                0x8042f4bd /* V4  i.. ULONG             */
  1773. #define MUIA_Boopsi_Smart                   0x8042b8d7 /* V9  i.. BOOL              */
  1774. #define MUIA_Boopsi_TagDrawInfo             0x8042bae7 /* V4  isg ULONG             */
  1775. #define MUIA_Boopsi_TagScreen               0x8042bc71 /* V4  isg ULONG             */
  1776. #define MUIA_Boopsi_TagWindow               0x8042e11d /* V4  isg ULONG             */
  1777.  
  1778.  
  1779.  
  1780. /****************************************************************************/
  1781. /** Prop                                                                   **/
  1782. /****************************************************************************/
  1783.  
  1784. #ifdef _DCC
  1785. extern char MUIC_Prop[];
  1786. #else
  1787. #define MUIC_Prop "Prop.mui"
  1788. #endif
  1789.  
  1790. /* Attributes */
  1791.  
  1792. #define MUIA_Prop_Entries                   0x8042fbdb /* V4  isg LONG              */
  1793. #define MUIA_Prop_First                     0x8042d4b2 /* V4  isg LONG              */
  1794. #define MUIA_Prop_Horiz                     0x8042f4f3 /* V4  i.g BOOL              */
  1795. #define MUIA_Prop_Slider                    0x80429c3a /* V4  isg BOOL              */
  1796. #define MUIA_Prop_UseWinBorder              0x8042deee /* V13 i.. LONG              */
  1797. #define MUIA_Prop_Visible                   0x8042fea6 /* V4  isg LONG              */
  1798.  
  1799. #define MUIV_Prop_UseWinBorder_None 0
  1800. #define MUIV_Prop_UseWinBorder_Left 1
  1801. #define MUIV_Prop_UseWinBorder_Right 2
  1802. #define MUIV_Prop_UseWinBorder_Bottom 3
  1803.  
  1804.  
  1805. /****************************************************************************/
  1806. /** Gauge                                                                  **/
  1807. /****************************************************************************/
  1808.  
  1809. #ifdef _DCC
  1810. extern char MUIC_Gauge[];
  1811. #else
  1812. #define MUIC_Gauge "Gauge.mui"
  1813. #endif
  1814.  
  1815. /* Attributes */
  1816.  
  1817. #define MUIA_Gauge_Current                  0x8042f0dd /* V4  isg LONG              */
  1818. #define MUIA_Gauge_Divide                   0x8042d8df /* V4  isg BOOL              */
  1819. #define MUIA_Gauge_Horiz                    0x804232dd /* V4  i.. BOOL              */
  1820. #define MUIA_Gauge_InfoText                 0x8042bf15 /* V7  isg STRPTR            */
  1821. #define MUIA_Gauge_Max                      0x8042bcdb /* V4  isg LONG              */
  1822.  
  1823.  
  1824.  
  1825. /****************************************************************************/
  1826. /** Scale                                                                  **/
  1827. /****************************************************************************/
  1828.  
  1829. #ifdef _DCC
  1830. extern char MUIC_Scale[];
  1831. #else
  1832. #define MUIC_Scale "Scale.mui"
  1833. #endif
  1834.  
  1835. /* Attributes */
  1836.  
  1837. #define MUIA_Scale_Horiz                    0x8042919a /* V4  isg BOOL              */
  1838.  
  1839.  
  1840.  
  1841. /****************************************************************************/
  1842. /** Colorfield                                                             **/
  1843. /****************************************************************************/
  1844.  
  1845. #ifdef _DCC
  1846. extern char MUIC_Colorfield[];
  1847. #else
  1848. #define MUIC_Colorfield "Colorfield.mui"
  1849. #endif
  1850.  
  1851. /* Attributes */
  1852.  
  1853. #define MUIA_Colorfield_Blue                0x8042d3b0 /* V4  isg ULONG             */
  1854. #define MUIA_Colorfield_Green               0x80424466 /* V4  isg ULONG             */
  1855. #define MUIA_Colorfield_Pen                 0x8042713a /* V4  ..g ULONG             */
  1856. #define MUIA_Colorfield_Red                 0x804279f6 /* V4  isg ULONG             */
  1857. #define MUIA_Colorfield_RGB                 0x8042677a /* V4  isg ULONG *           */
  1858.  
  1859.  
  1860.  
  1861. /****************************************************************************/
  1862. /** List                                                                   **/
  1863. /****************************************************************************/
  1864.  
  1865. #ifdef _DCC
  1866. extern char MUIC_List[];
  1867. #else
  1868. #define MUIC_List "List.mui"
  1869. #endif
  1870.  
  1871. /* Methods */
  1872.  
  1873. #define MUIM_List_Clear                     0x8042ad89 /* V4  */
  1874. #define MUIM_List_CreateImage               0x80429804 /* V11 */
  1875. #define MUIM_List_DeleteImage               0x80420f58 /* V11 */
  1876. #define MUIM_List_Exchange                  0x8042468c /* V4  */
  1877. #define MUIM_List_GetEntry                  0x804280ec /* V4  */
  1878. #define MUIM_List_Insert                    0x80426c87 /* V4  */
  1879. #define MUIM_List_InsertSingle              0x804254d5 /* V7  */
  1880. #define MUIM_List_Jump                      0x8042baab /* V4  */
  1881. #define MUIM_List_Move                      0x804253c2 /* V9  */
  1882. #define MUIM_List_NextSelected              0x80425f17 /* V6  */
  1883. #define MUIM_List_Redraw                    0x80427993 /* V4  */
  1884. #define MUIM_List_Remove                    0x8042647e /* V4  */
  1885. #define MUIM_List_Select                    0x804252d8 /* V4  */
  1886. #define MUIM_List_Sort                      0x80422275 /* V4  */
  1887. #define MUIM_List_TestPos                   0x80425f48 /* V11 */
  1888. struct  MUIP_List_Clear                     { ULONG MethodID; };
  1889. struct  MUIP_List_CreateImage               { ULONG MethodID; Object *obj; ULONG flags; };
  1890. struct  MUIP_List_DeleteImage               { ULONG MethodID; APTR listimg; };
  1891. struct  MUIP_List_Exchange                  { ULONG MethodID; LONG pos1; LONG pos2; };
  1892. struct  MUIP_List_GetEntry                  { ULONG MethodID; LONG pos; APTR *entry; };
  1893. struct  MUIP_List_Insert                    { ULONG MethodID; APTR *entries; LONG count; LONG pos; };
  1894. struct  MUIP_List_InsertSingle              { ULONG MethodID; APTR entry; LONG pos; };
  1895. struct  MUIP_List_Jump                      { ULONG MethodID; LONG pos; };
  1896. struct  MUIP_List_Move                      { ULONG MethodID; LONG from; LONG to; };
  1897. struct  MUIP_List_NextSelected              { ULONG MethodID; LONG *pos; };
  1898. struct  MUIP_List_Redraw                    { ULONG MethodID; LONG pos; };
  1899. struct  MUIP_List_Remove                    { ULONG MethodID; LONG pos; };
  1900. struct  MUIP_List_Select                    { ULONG MethodID; LONG pos; LONG seltype; LONG *state; };
  1901. struct  MUIP_List_Sort                      { ULONG MethodID; };
  1902. struct  MUIP_List_TestPos                   { ULONG MethodID; LONG x; LONG y; struct MUI_List_TestPos_Result *res; };
  1903.  
  1904. /* Attributes */
  1905.  
  1906. #define MUIA_List_Active                    0x8042391c /* V4  isg LONG              */
  1907. #define MUIA_List_AdjustHeight              0x8042850d /* V4  i.. BOOL              */
  1908. #define MUIA_List_AdjustWidth               0x8042354a /* V4  i.. BOOL              */
  1909. #define MUIA_List_AutoVisible               0x8042a445 /* V11 isg BOOL              */
  1910. #define MUIA_List_CompareHook               0x80425c14 /* V4  is. struct Hook *     */
  1911. #define MUIA_List_ConstructHook             0x8042894f /* V4  is. struct Hook *     */
  1912. #define MUIA_List_DestructHook              0x804297ce /* V4  is. struct Hook *     */
  1913. #define MUIA_List_DisplayHook               0x8042b4d5 /* V4  is. struct Hook *     */
  1914. #define MUIA_List_DragSortable              0x80426099 /* V11 isg BOOL              */
  1915. #define MUIA_List_DropMark                  0x8042aba6 /* V11 ..g LONG              */
  1916. #define MUIA_List_Entries                   0x80421654 /* V4  ..g LONG              */
  1917. #define MUIA_List_First                     0x804238d4 /* V4  ..g LONG              */
  1918. #define MUIA_List_Format                    0x80423c0a /* V4  isg STRPTR            */
  1919. #define MUIA_List_InsertPosition            0x8042d0cd /* V9  ..g LONG              */
  1920. #define MUIA_List_MinLineHeight             0x8042d1c3 /* V4  i.. LONG              */
  1921. #define MUIA_List_MultiTestHook             0x8042c2c6 /* V4  is. struct Hook *     */
  1922. #define MUIA_List_Pool                      0x80423431 /* V13 i.. APTR              */
  1923. #define MUIA_List_PoolPuddleSize            0x8042a4eb /* V13 i.. ULONG             */
  1924. #define MUIA_List_PoolThreshSize            0x8042c48c /* V13 i.. ULONG             */
  1925. #define MUIA_List_Quiet                     0x8042d8c7 /* V4  .s. BOOL              */
  1926. #define MUIA_List_ShowDropMarks             0x8042c6f3 /* V11 isg BOOL              */
  1927. #define MUIA_List_SourceArray               0x8042c0a0 /* V4  i.. APTR              */
  1928. #define MUIA_List_Title                     0x80423e66 /* V6  isg char *            */
  1929. #define MUIA_List_Visible                   0x8042191f /* V4  ..g LONG              */
  1930.  
  1931. #define MUIV_List_Active_Off -1
  1932. #define MUIV_List_Active_Top -2
  1933. #define MUIV_List_Active_Bottom -3
  1934. #define MUIV_List_Active_Up -4
  1935. #define MUIV_List_Active_Down -5
  1936. #define MUIV_List_Active_PageUp -6
  1937. #define MUIV_List_Active_PageDown -7
  1938. #define MUIV_List_ConstructHook_String -1
  1939. #define MUIV_List_CopyHook_String -1
  1940. #define MUIV_List_CursorType_None 0
  1941. #define MUIV_List_CursorType_Bar 1
  1942. #define MUIV_List_CursorType_Rect 2
  1943. #define MUIV_List_DestructHook_String -1
  1944.  
  1945.  
  1946. /****************************************************************************/
  1947. /** Floattext                                                              **/
  1948. /****************************************************************************/
  1949.  
  1950. #ifdef _DCC
  1951. extern char MUIC_Floattext[];
  1952. #else
  1953. #define MUIC_Floattext "Floattext.mui"
  1954. #endif
  1955.  
  1956. /* Attributes */
  1957.  
  1958. #define MUIA_Floattext_Justify              0x8042dc03 /* V4  isg BOOL              */
  1959. #define MUIA_Floattext_SkipChars            0x80425c7d /* V4  is. STRPTR            */
  1960. #define MUIA_Floattext_TabSize              0x80427d17 /* V4  is. LONG              */
  1961. #define MUIA_Floattext_Text                 0x8042d16a /* V4  isg STRPTR            */
  1962.  
  1963.  
  1964.  
  1965. /****************************************************************************/
  1966. /** Volumelist                                                             **/
  1967. /****************************************************************************/
  1968.  
  1969. #ifdef _DCC
  1970. extern char MUIC_Volumelist[];
  1971. #else
  1972. #define MUIC_Volumelist "Volumelist.mui"
  1973. #endif
  1974.  
  1975.  
  1976. /****************************************************************************/
  1977. /** Scrmodelist                                                            **/
  1978. /****************************************************************************/
  1979.  
  1980. #ifdef _DCC
  1981. extern char MUIC_Scrmodelist[];
  1982. #else
  1983. #define MUIC_Scrmodelist "Scrmodelist.mui"
  1984. #endif
  1985.  
  1986. /* Attributes */
  1987.  
  1988.  
  1989.  
  1990.  
  1991. /****************************************************************************/
  1992. /** Dirlist                                                                **/
  1993. /****************************************************************************/
  1994.  
  1995. #ifdef _DCC
  1996. extern char MUIC_Dirlist[];
  1997. #else
  1998. #define MUIC_Dirlist "Dirlist.mui"
  1999. #endif
  2000.  
  2001. /* Methods */
  2002.  
  2003. #define MUIM_Dirlist_ReRead                 0x80422d71 /* V4  */
  2004. struct  MUIP_Dirlist_ReRead                 { ULONG MethodID; };
  2005.  
  2006. /* Attributes */
  2007.  
  2008. #define MUIA_Dirlist_AcceptPattern          0x8042760a /* V4  is. STRPTR            */
  2009. #define MUIA_Dirlist_Directory              0x8042ea41 /* V4  isg STRPTR            */
  2010. #define MUIA_Dirlist_DrawersOnly            0x8042b379 /* V4  is. BOOL              */
  2011. #define MUIA_Dirlist_FilesOnly              0x8042896a /* V4  is. BOOL              */
  2012. #define MUIA_Dirlist_FilterDrawers          0x80424ad2 /* V4  is. BOOL              */
  2013. #define MUIA_Dirlist_FilterHook             0x8042ae19 /* V4  is. struct Hook *     */
  2014. #define MUIA_Dirlist_MultiSelDirs           0x80428653 /* V6  is. BOOL              */
  2015. #define MUIA_Dirlist_NumBytes               0x80429e26 /* V4  ..g LONG              */
  2016. #define MUIA_Dirlist_NumDrawers             0x80429cb8 /* V4  ..g LONG              */
  2017. #define MUIA_Dirlist_NumFiles               0x8042a6f0 /* V4  ..g LONG              */
  2018. #define MUIA_Dirlist_Path                   0x80426176 /* V4  ..g STRPTR            */
  2019. #define MUIA_Dirlist_RejectIcons            0x80424808 /* V4  is. BOOL              */
  2020. #define MUIA_Dirlist_RejectPattern          0x804259c7 /* V4  is. STRPTR            */
  2021. #define MUIA_Dirlist_SortDirs               0x8042bbb9 /* V4  is. LONG              */
  2022. #define MUIA_Dirlist_SortHighLow            0x80421896 /* V4  is. BOOL              */
  2023. #define MUIA_Dirlist_SortType               0x804228bc /* V4  is. LONG              */
  2024. #define MUIA_Dirlist_Status                 0x804240de /* V4  ..g LONG              */
  2025.  
  2026. #define MUIV_Dirlist_SortDirs_First 0
  2027. #define MUIV_Dirlist_SortDirs_Last 1
  2028. #define MUIV_Dirlist_SortDirs_Mix 2
  2029. #define MUIV_Dirlist_SortType_Name 0
  2030. #define MUIV_Dirlist_SortType_Date 1
  2031. #define MUIV_Dirlist_SortType_Size 2
  2032. #define MUIV_Dirlist_Status_Invalid 0
  2033. #define MUIV_Dirlist_Status_Reading 1
  2034. #define MUIV_Dirlist_Status_Valid 2
  2035.  
  2036.  
  2037. /****************************************************************************/
  2038. /** Numeric                                                                **/
  2039. /****************************************************************************/
  2040.  
  2041. #ifdef _DCC
  2042. extern char MUIC_Numeric[];
  2043. #else
  2044. #define MUIC_Numeric "Numeric.mui"
  2045. #endif
  2046.  
  2047. /* Methods */
  2048.  
  2049. #define MUIM_Numeric_Decrease               0x804243a7 /* V11 */
  2050. #define MUIM_Numeric_Increase               0x80426ecd /* V11 */
  2051. #define MUIM_Numeric_ScaleToValue           0x8042032c /* V11 */
  2052. #define MUIM_Numeric_SetDefault             0x8042ab0a /* V11 */
  2053. #define MUIM_Numeric_Stringify              0x80424891 /* V11 */
  2054. #define MUIM_Numeric_ValueToScale           0x80423e4f /* V11 */
  2055. struct  MUIP_Numeric_Decrease               { ULONG MethodID; LONG amount; };
  2056. struct  MUIP_Numeric_Increase               { ULONG MethodID; LONG amount; };
  2057. struct  MUIP_Numeric_ScaleToValue           { ULONG MethodID; LONG scalemin; LONG scalemax; LONG scale; };
  2058. struct  MUIP_Numeric_SetDefault             { ULONG MethodID; };
  2059. struct  MUIP_Numeric_Stringify              { ULONG MethodID; LONG value; };
  2060. struct  MUIP_Numeric_ValueToScale           { ULONG MethodID; LONG scalemin; LONG scalemax; };
  2061.  
  2062. /* Attributes */
  2063.  
  2064. #define MUIA_Numeric_Default                0x804263e8 /* V11 isg LONG              */
  2065. #define MUIA_Numeric_Format                 0x804263e9 /* V11 isg STRPTR            */
  2066. #define MUIA_Numeric_Max                    0x8042d78a /* V11 isg LONG              */
  2067. #define MUIA_Numeric_Min                    0x8042e404 /* V11 isg LONG              */
  2068. #define MUIA_Numeric_Reverse                0x8042f2a0 /* V11 isg BOOL              */
  2069. #define MUIA_Numeric_RevLeftRight           0x804294a7 /* V11 isg BOOL              */
  2070. #define MUIA_Numeric_RevUpDown              0x804252dd /* V11 isg BOOL              */
  2071. #define MUIA_Numeric_Value                  0x8042ae3a /* V11 isg LONG              */
  2072.  
  2073.  
  2074.  
  2075. /****************************************************************************/
  2076. /** Framedisplay                                                           **/
  2077. /****************************************************************************/
  2078.  
  2079. #ifdef _DCC
  2080. extern char MUIC_Framedisplay[];
  2081. #else
  2082. #define MUIC_Framedisplay "Framedisplay.mui"
  2083. #endif
  2084.  
  2085. /* Attributes */
  2086.  
  2087.  
  2088.  
  2089.  
  2090. /****************************************************************************/
  2091. /** Popframe                                                               **/
  2092. /****************************************************************************/
  2093.  
  2094. #ifdef _DCC
  2095. extern char MUIC_Popframe[];
  2096. #else
  2097. #define MUIC_Popframe "Popframe.mui"
  2098. #endif
  2099.  
  2100.  
  2101. /****************************************************************************/
  2102. /** Imagedisplay                                                           **/
  2103. /****************************************************************************/
  2104.  
  2105. #ifdef _DCC
  2106. extern char MUIC_Imagedisplay[];
  2107. #else
  2108. #define MUIC_Imagedisplay "Imagedisplay.mui"
  2109. #endif
  2110.  
  2111. /* Attributes */
  2112.  
  2113.  
  2114.  
  2115.  
  2116. /****************************************************************************/
  2117. /** Popimage                                                               **/
  2118. /****************************************************************************/
  2119.  
  2120. #ifdef _DCC
  2121. extern char MUIC_Popimage[];
  2122. #else
  2123. #define MUIC_Popimage "Popimage.mui"
  2124. #endif
  2125.  
  2126.  
  2127. /****************************************************************************/
  2128. /** Pendisplay                                                             **/
  2129. /****************************************************************************/
  2130.  
  2131. #ifdef _DCC
  2132. extern char MUIC_Pendisplay[];
  2133. #else
  2134. #define MUIC_Pendisplay "Pendisplay.mui"
  2135. #endif
  2136.  
  2137. /* Methods */
  2138.  
  2139. #define MUIM_Pendisplay_SetColormap         0x80426c80 /* V13 */
  2140. #define MUIM_Pendisplay_SetMUIPen           0x8042039d /* V13 */
  2141. #define MUIM_Pendisplay_SetRGB              0x8042c131 /* V13 */
  2142. struct  MUIP_Pendisplay_SetColormap         { ULONG MethodID; LONG colormap; };
  2143. struct  MUIP_Pendisplay_SetMUIPen           { ULONG MethodID; LONG muipen; };
  2144. struct  MUIP_Pendisplay_SetRGB              { ULONG MethodID; ULONG red; ULONG green; ULONG blue; };
  2145.  
  2146. /* Attributes */
  2147.  
  2148. #define MUIA_Pendisplay_Pen                 0x8042a748 /* V13 ..g Object *          */
  2149. #define MUIA_Pendisplay_Reference           0x8042dc24 /* V13 isg Object *          */
  2150. #define MUIA_Pendisplay_RGBcolor            0x8042a1a9 /* V11 isg struct MUI_RBBcolor * */
  2151. #define MUIA_Pendisplay_Spec                0x8042a204 /* V11 isg struct MUI_PenSpec  * */
  2152.  
  2153.  
  2154.  
  2155. /****************************************************************************/
  2156. /** Poppen                                                                 **/
  2157. /****************************************************************************/
  2158.  
  2159. #ifdef _DCC
  2160. extern char MUIC_Poppen[];
  2161. #else
  2162. #define MUIC_Poppen "Poppen.mui"
  2163. #endif
  2164.  
  2165.  
  2166. /****************************************************************************/
  2167. /** Knob                                                                   **/
  2168. /****************************************************************************/
  2169.  
  2170. #ifdef _DCC
  2171. extern char MUIC_Knob[];
  2172. #else
  2173. #define MUIC_Knob "Knob.mui"
  2174. #endif
  2175.  
  2176.  
  2177. /****************************************************************************/
  2178. /** Levelmeter                                                             **/
  2179. /****************************************************************************/
  2180.  
  2181. #ifdef _DCC
  2182. extern char MUIC_Levelmeter[];
  2183. #else
  2184. #define MUIC_Levelmeter "Levelmeter.mui"
  2185. #endif
  2186.  
  2187. /* Attributes */
  2188.  
  2189. #define MUIA_Levelmeter_Label               0x80420dd5 /* V11 isg STRPTR            */
  2190.  
  2191.  
  2192.  
  2193. /****************************************************************************/
  2194. /** Numericbutton                                                          **/
  2195. /****************************************************************************/
  2196.  
  2197. #ifdef _DCC
  2198. extern char MUIC_Numericbutton[];
  2199. #else
  2200. #define MUIC_Numericbutton "Numericbutton.mui"
  2201. #endif
  2202.  
  2203.  
  2204. /****************************************************************************/
  2205. /** Slider                                                                 **/
  2206. /****************************************************************************/
  2207.  
  2208. #ifdef _DCC
  2209. extern char MUIC_Slider[];
  2210. #else
  2211. #define MUIC_Slider "Slider.mui"
  2212. #endif
  2213.  
  2214. /* Attributes */
  2215.  
  2216. #define MUIA_Slider_Horiz                   0x8042fad1 /* V11 isg BOOL              */
  2217. #ifdef MUI_OBSOLETE
  2218. #define MUIA_Slider_Level                   0x8042ae3a /* V4  isg LONG              */
  2219. #endif /* MUI_OBSOLETE */
  2220. #ifdef MUI_OBSOLETE
  2221. #define MUIA_Slider_Max                     0x8042d78a /* V4  isg LONG              */
  2222. #endif /* MUI_OBSOLETE */
  2223. #ifdef MUI_OBSOLETE
  2224. #define MUIA_Slider_Min                     0x8042e404 /* V4  isg LONG              */
  2225. #endif /* MUI_OBSOLETE */
  2226. #define MUIA_Slider_Quiet                   0x80420b26 /* V6  i.. BOOL              */
  2227. #ifdef MUI_OBSOLETE
  2228. #define MUIA_Slider_Reverse                 0x8042f2a0 /* V4  isg BOOL              */
  2229. #endif /* MUI_OBSOLETE */
  2230.  
  2231.  
  2232.  
  2233. /****************************************************************************/
  2234. /** Group                                                                  **/
  2235. /****************************************************************************/
  2236.  
  2237. #ifdef _DCC
  2238. extern char MUIC_Group[];
  2239. #else
  2240. #define MUIC_Group "Group.mui"
  2241. #endif
  2242.  
  2243. /* Methods */
  2244.  
  2245. #define MUIM_Group_ExitChange               0x8042d1cc /* V11 */
  2246. #define MUIM_Group_InitChange               0x80420887 /* V11 */
  2247. struct  MUIP_Group_ExitChange               { ULONG MethodID; };
  2248. struct  MUIP_Group_InitChange               { ULONG MethodID; };
  2249.  
  2250. /* Attributes */
  2251.  
  2252. #define MUIA_Group_ActivePage               0x80424199 /* V5  isg LONG              */
  2253. #define MUIA_Group_Child                    0x804226e6 /* V4  i.. Object *          */
  2254. #define MUIA_Group_ChildList                0x80424748 /* V4  ..g struct List *     */
  2255. #define MUIA_Group_Columns                  0x8042f416 /* V4  is. LONG              */
  2256. #define MUIA_Group_Horiz                    0x8042536b /* V4  i.. BOOL              */
  2257. #define MUIA_Group_HorizSpacing             0x8042c651 /* V4  isg LONG              */
  2258. #define MUIA_Group_LayoutHook               0x8042c3b2 /* V11 i.. struct Hook *     */
  2259. #define MUIA_Group_PageMode                 0x80421a5f /* V5  i.. BOOL              */
  2260. #define MUIA_Group_Rows                     0x8042b68f /* V4  is. LONG              */
  2261. #define MUIA_Group_SameHeight               0x8042037e /* V4  i.. BOOL              */
  2262. #define MUIA_Group_SameSize                 0x80420860 /* V4  i.. BOOL              */
  2263. #define MUIA_Group_SameWidth                0x8042b3ec /* V4  i.. BOOL              */
  2264. #define MUIA_Group_Spacing                  0x8042866d /* V4  is. LONG              */
  2265. #define MUIA_Group_VertSpacing              0x8042e1bf /* V4  isg LONG              */
  2266.  
  2267. #define MUIV_Group_ActivePage_First 0
  2268. #define MUIV_Group_ActivePage_Last -1
  2269. #define MUIV_Group_ActivePage_Prev -2
  2270. #define MUIV_Group_ActivePage_Next -3
  2271. #define MUIV_Group_ActivePage_Advance -4
  2272.  
  2273.  
  2274. /****************************************************************************/
  2275. /** Mccprefs                                                               **/
  2276. /****************************************************************************/
  2277.  
  2278. #ifdef _DCC
  2279. extern char MUIC_Mccprefs[];
  2280. #else
  2281. #define MUIC_Mccprefs "Mccprefs.mui"
  2282. #endif
  2283.  
  2284.  
  2285. /****************************************************************************/
  2286. /** Register                                                               **/
  2287. /****************************************************************************/
  2288.  
  2289. #ifdef _DCC
  2290. extern char MUIC_Register[];
  2291. #else
  2292. #define MUIC_Register "Register.mui"
  2293. #endif
  2294.  
  2295. /* Attributes */
  2296.  
  2297. #define MUIA_Register_Frame                 0x8042349b /* V7  i.g BOOL              */
  2298. #define MUIA_Register_Titles                0x804297ec /* V7  i.g STRPTR *          */
  2299.  
  2300.  
  2301.  
  2302. /****************************************************************************/
  2303. /** Settingsgroup                                                          **/
  2304. /****************************************************************************/
  2305.  
  2306. #ifdef _DCC
  2307. extern char MUIC_Settingsgroup[];
  2308. #else
  2309. #define MUIC_Settingsgroup "Settingsgroup.mui"
  2310. #endif
  2311.  
  2312. /* Methods */
  2313.  
  2314.  
  2315. /* Attributes */
  2316.  
  2317.  
  2318.  
  2319.  
  2320. /****************************************************************************/
  2321. /** Settings                                                               **/
  2322. /****************************************************************************/
  2323.  
  2324. #ifdef _DCC
  2325. extern char MUIC_Settings[];
  2326. #else
  2327. #define MUIC_Settings "Settings.mui"
  2328. #endif
  2329.  
  2330. /* Methods */
  2331.  
  2332.  
  2333. /* Attributes */
  2334.  
  2335.  
  2336.  
  2337.  
  2338. /****************************************************************************/
  2339. /** Frameadjust                                                            **/
  2340. /****************************************************************************/
  2341.  
  2342. #ifdef _DCC
  2343. extern char MUIC_Frameadjust[];
  2344. #else
  2345. #define MUIC_Frameadjust "Frameadjust.mui"
  2346. #endif
  2347.  
  2348. /* Methods */
  2349.  
  2350.  
  2351. /* Attributes */
  2352.  
  2353.  
  2354.  
  2355.  
  2356. /****************************************************************************/
  2357. /** Penadjust                                                              **/
  2358. /****************************************************************************/
  2359.  
  2360. #ifdef _DCC
  2361. extern char MUIC_Penadjust[];
  2362. #else
  2363. #define MUIC_Penadjust "Penadjust.mui"
  2364. #endif
  2365.  
  2366. /* Methods */
  2367.  
  2368.  
  2369. /* Attributes */
  2370.  
  2371. #define MUIA_Penadjust_PSIMode              0x80421cbb /* V11 i.. BOOL              */
  2372.  
  2373.  
  2374.  
  2375. /****************************************************************************/
  2376. /** Imageadjust                                                            **/
  2377. /****************************************************************************/
  2378.  
  2379. #ifdef _DCC
  2380. extern char MUIC_Imageadjust[];
  2381. #else
  2382. #define MUIC_Imageadjust "Imageadjust.mui"
  2383. #endif
  2384.  
  2385. /* Methods */
  2386.  
  2387.  
  2388. /* Attributes */
  2389.  
  2390.  
  2391. #define MUIV_Imageadjust_Type_All 0
  2392. #define MUIV_Imageadjust_Type_Image 1
  2393. #define MUIV_Imageadjust_Type_Background 2
  2394. #define MUIV_Imageadjust_Type_Pen 3
  2395.  
  2396.  
  2397. /****************************************************************************/
  2398. /** Virtgroup                                                              **/
  2399. /****************************************************************************/
  2400.  
  2401. #ifdef _DCC
  2402. extern char MUIC_Virtgroup[];
  2403. #else
  2404. #define MUIC_Virtgroup "Virtgroup.mui"
  2405. #endif
  2406.  
  2407. /* Methods */
  2408.  
  2409.  
  2410. /* Attributes */
  2411.  
  2412. #define MUIA_Virtgroup_Height               0x80423038 /* V6  ..g LONG              */
  2413. #define MUIA_Virtgroup_Input                0x80427f7e /* V11 i.. BOOL              */
  2414. #define MUIA_Virtgroup_Left                 0x80429371 /* V6  isg LONG              */
  2415. #define MUIA_Virtgroup_Top                  0x80425200 /* V6  isg LONG              */
  2416. #define MUIA_Virtgroup_Width                0x80427c49 /* V6  ..g LONG              */
  2417.  
  2418.  
  2419.  
  2420. /****************************************************************************/
  2421. /** Scrollgroup                                                            **/
  2422. /****************************************************************************/
  2423.  
  2424. #ifdef _DCC
  2425. extern char MUIC_Scrollgroup[];
  2426. #else
  2427. #define MUIC_Scrollgroup "Scrollgroup.mui"
  2428. #endif
  2429.  
  2430. /* Methods */
  2431.  
  2432.  
  2433. /* Attributes */
  2434.  
  2435. #define MUIA_Scrollgroup_Contents           0x80421261 /* V4  i.. Object *          */
  2436. #define MUIA_Scrollgroup_FreeHoriz          0x804292f3 /* V9  i.. BOOL              */
  2437. #define MUIA_Scrollgroup_FreeVert           0x804224f2 /* V9  i.. BOOL              */
  2438. #define MUIA_Scrollgroup_UseWinBorder       0x804284c1 /* V13 i.. BOOL              */
  2439.  
  2440.  
  2441.  
  2442. /****************************************************************************/
  2443. /** Scrollbar                                                              **/
  2444. /****************************************************************************/
  2445.  
  2446. #ifdef _DCC
  2447. extern char MUIC_Scrollbar[];
  2448. #else
  2449. #define MUIC_Scrollbar "Scrollbar.mui"
  2450. #endif
  2451.  
  2452. /* Attributes */
  2453.  
  2454. #define MUIA_Scrollbar_Type                 0x8042fb6b /* V11 i.. LONG              */
  2455.  
  2456. #define MUIV_Scrollbar_Type_Default 0
  2457. #define MUIV_Scrollbar_Type_Bottom 1
  2458. #define MUIV_Scrollbar_Type_Top 2
  2459. #define MUIV_Scrollbar_Type_Sym 3
  2460.  
  2461.  
  2462. /****************************************************************************/
  2463. /** Listview                                                               **/
  2464. /****************************************************************************/
  2465.  
  2466. #ifdef _DCC
  2467. extern char MUIC_Listview[];
  2468. #else
  2469. #define MUIC_Listview "Listview.mui"
  2470. #endif
  2471.  
  2472. /* Attributes */
  2473.  
  2474. #define MUIA_Listview_ClickColumn           0x8042d1b3 /* V7  ..g LONG              */
  2475. #define MUIA_Listview_DefClickColumn        0x8042b296 /* V7  isg LONG              */
  2476. #define MUIA_Listview_DoubleClick           0x80424635 /* V4  i.g BOOL              */
  2477. #define MUIA_Listview_DragType              0x80425cd3 /* V11 isg LONG              */
  2478. #define MUIA_Listview_Input                 0x8042682d /* V4  i.. BOOL              */
  2479. #define MUIA_Listview_List                  0x8042bcce /* V4  i.g Object *          */
  2480. #define MUIA_Listview_MultiSelect           0x80427e08 /* V7  i.. LONG              */
  2481. #define MUIA_Listview_ScrollerPos           0x8042b1b4 /* V10 i.. BOOL              */
  2482. #define MUIA_Listview_SelectChange          0x8042178f /* V4  ..g BOOL              */
  2483.  
  2484. #define MUIV_Listview_DragType_None 0
  2485. #define MUIV_Listview_DragType_Immediate 1
  2486. #define MUIV_Listview_MultiSelect_None 0
  2487. #define MUIV_Listview_MultiSelect_Default 1
  2488. #define MUIV_Listview_MultiSelect_Shifted 2
  2489. #define MUIV_Listview_MultiSelect_Always 3
  2490. #define MUIV_Listview_ScrollerPos_Default 0
  2491. #define MUIV_Listview_ScrollerPos_Left 1
  2492. #define MUIV_Listview_ScrollerPos_Right 2
  2493. #define MUIV_Listview_ScrollerPos_None 3
  2494.  
  2495.  
  2496. /****************************************************************************/
  2497. /** Radio                                                                  **/
  2498. /****************************************************************************/
  2499.  
  2500. #ifdef _DCC
  2501. extern char MUIC_Radio[];
  2502. #else
  2503. #define MUIC_Radio "Radio.mui"
  2504. #endif
  2505.  
  2506. /* Attributes */
  2507.  
  2508. #define MUIA_Radio_Active                   0x80429b41 /* V4  isg LONG              */
  2509. #define MUIA_Radio_Entries                  0x8042b6a1 /* V4  i.. STRPTR *          */
  2510.  
  2511.  
  2512.  
  2513. /****************************************************************************/
  2514. /** Cycle                                                                  **/
  2515. /****************************************************************************/
  2516.  
  2517. #ifdef _DCC
  2518. extern char MUIC_Cycle[];
  2519. #else
  2520. #define MUIC_Cycle "Cycle.mui"
  2521. #endif
  2522.  
  2523. /* Attributes */
  2524.  
  2525. #define MUIA_Cycle_Active                   0x80421788 /* V4  isg LONG              */
  2526. #define MUIA_Cycle_Entries                  0x80420629 /* V4  i.. STRPTR *          */
  2527.  
  2528. #define MUIV_Cycle_Active_Next -1
  2529. #define MUIV_Cycle_Active_Prev -2
  2530.  
  2531.  
  2532. /****************************************************************************/
  2533. /** Coloradjust                                                            **/
  2534. /****************************************************************************/
  2535.  
  2536. #ifdef _DCC
  2537. extern char MUIC_Coloradjust[];
  2538. #else
  2539. #define MUIC_Coloradjust "Coloradjust.mui"
  2540. #endif
  2541.  
  2542. /* Methods */
  2543.  
  2544.  
  2545. /* Attributes */
  2546.  
  2547. #define MUIA_Coloradjust_Blue               0x8042b8a3 /* V4  isg ULONG             */
  2548. #define MUIA_Coloradjust_Green              0x804285ab /* V4  isg ULONG             */
  2549. #define MUIA_Coloradjust_ModeID             0x8042ec59 /* V4  isg ULONG             */
  2550. #define MUIA_Coloradjust_Red                0x80420eaa /* V4  isg ULONG             */
  2551. #define MUIA_Coloradjust_RGB                0x8042f899 /* V4  isg ULONG *           */
  2552.  
  2553.  
  2554.  
  2555. /****************************************************************************/
  2556. /** Palette                                                                **/
  2557. /****************************************************************************/
  2558.  
  2559. #ifdef _DCC
  2560. extern char MUIC_Palette[];
  2561. #else
  2562. #define MUIC_Palette "Palette.mui"
  2563. #endif
  2564.  
  2565. /* Attributes */
  2566.  
  2567. #define MUIA_Palette_Entries                0x8042a3d8 /* V6  i.g struct MUI_Palette_Entry * */
  2568. #define MUIA_Palette_Groupable              0x80423e67 /* V6  isg BOOL              */
  2569. #define MUIA_Palette_Names                  0x8042c3a2 /* V6  isg char **           */
  2570.  
  2571.  
  2572.  
  2573. /****************************************************************************/
  2574. /** Popstring                                                              **/
  2575. /****************************************************************************/
  2576.  
  2577. #ifdef _DCC
  2578. extern char MUIC_Popstring[];
  2579. #else
  2580. #define MUIC_Popstring "Popstring.mui"
  2581. #endif
  2582.  
  2583. /* Methods */
  2584.  
  2585. #define MUIM_Popstring_Close                0x8042dc52 /* V7  */
  2586. #define MUIM_Popstring_Open                 0x804258ba /* V7  */
  2587. struct  MUIP_Popstring_Close                { ULONG MethodID; LONG result; };
  2588. struct  MUIP_Popstring_Open                 { ULONG MethodID; };
  2589.  
  2590. /* Attributes */
  2591.  
  2592. #define MUIA_Popstring_Button               0x8042d0b9 /* V7  i.g Object *          */
  2593. #define MUIA_Popstring_CloseHook            0x804256bf /* V7  isg struct Hook *     */
  2594. #define MUIA_Popstring_OpenHook             0x80429d00 /* V7  isg struct Hook *     */
  2595. #define MUIA_Popstring_String               0x804239ea /* V7  i.g Object *          */
  2596. #define MUIA_Popstring_Toggle               0x80422b7a /* V7  isg BOOL              */
  2597.  
  2598.  
  2599.  
  2600. /****************************************************************************/
  2601. /** Popobject                                                              **/
  2602. /****************************************************************************/
  2603.  
  2604. #ifdef _DCC
  2605. extern char MUIC_Popobject[];
  2606. #else
  2607. #define MUIC_Popobject "Popobject.mui"
  2608. #endif
  2609.  
  2610. /* Attributes */
  2611.  
  2612. #define MUIA_Popobject_Follow               0x80424cb5 /* V7  isg BOOL              */
  2613. #define MUIA_Popobject_Light                0x8042a5a3 /* V7  isg BOOL              */
  2614. #define MUIA_Popobject_Object               0x804293e3 /* V7  i.g Object *          */
  2615. #define MUIA_Popobject_ObjStrHook           0x8042db44 /* V7  isg struct Hook *     */
  2616. #define MUIA_Popobject_StrObjHook           0x8042fbe1 /* V7  isg struct Hook *     */
  2617. #define MUIA_Popobject_Volatile             0x804252ec /* V7  isg BOOL              */
  2618. #define MUIA_Popobject_WindowHook           0x8042f194 /* V9  isg struct Hook *     */
  2619.  
  2620.  
  2621.  
  2622. /****************************************************************************/
  2623. /** Poplist                                                                **/
  2624. /****************************************************************************/
  2625.  
  2626. #ifdef _DCC
  2627. extern char MUIC_Poplist[];
  2628. #else
  2629. #define MUIC_Poplist "Poplist.mui"
  2630. #endif
  2631.  
  2632. /* Attributes */
  2633.  
  2634. #define MUIA_Poplist_Array                  0x8042084c /* V8  i.. char **           */
  2635.  
  2636.  
  2637.  
  2638. /****************************************************************************/
  2639. /** Popscreen                                                              **/
  2640. /****************************************************************************/
  2641.  
  2642. #ifdef _DCC
  2643. extern char MUIC_Popscreen[];
  2644. #else
  2645. #define MUIC_Popscreen "Popscreen.mui"
  2646. #endif
  2647.  
  2648. /* Attributes */
  2649.  
  2650.  
  2651.  
  2652.  
  2653. /****************************************************************************/
  2654. /** Popasl                                                                 **/
  2655. /****************************************************************************/
  2656.  
  2657. #ifdef _DCC
  2658. extern char MUIC_Popasl[];
  2659. #else
  2660. #define MUIC_Popasl "Popasl.mui"
  2661. #endif
  2662.  
  2663. /* Attributes */
  2664.  
  2665. #define MUIA_Popasl_Active                  0x80421b37 /* V7  ..g BOOL              */
  2666. #define MUIA_Popasl_StartHook               0x8042b703 /* V7  isg struct Hook *     */
  2667. #define MUIA_Popasl_StopHook                0x8042d8d2 /* V7  isg struct Hook *     */
  2668. #define MUIA_Popasl_Type                    0x8042df3d /* V7  i.g ULONG             */
  2669.  
  2670.  
  2671.  
  2672. /****************************************************************************/
  2673. /** Semaphore                                                              **/
  2674. /****************************************************************************/
  2675.  
  2676. #ifdef _DCC
  2677. extern char MUIC_Semaphore[];
  2678. #else
  2679. #define MUIC_Semaphore "Semaphore.mui"
  2680. #endif
  2681.  
  2682. /* Methods */
  2683.  
  2684. #define MUIM_Semaphore_Attempt              0x80426ce2 /* V11 */
  2685. #define MUIM_Semaphore_AttemptShared        0x80422551 /* V11 */
  2686. #define MUIM_Semaphore_Obtain               0x804276f0 /* V11 */
  2687. #define MUIM_Semaphore_ObtainShared         0x8042ea02 /* V11 */
  2688. #define MUIM_Semaphore_Release              0x80421f2d /* V11 */
  2689. struct  MUIP_Semaphore_Attempt              { ULONG MethodID; };
  2690. struct  MUIP_Semaphore_AttemptShared        { ULONG MethodID; };
  2691. struct  MUIP_Semaphore_Obtain               { ULONG MethodID; };
  2692. struct  MUIP_Semaphore_ObtainShared         { ULONG MethodID; };
  2693. struct  MUIP_Semaphore_Release              { ULONG MethodID; };
  2694.  
  2695.  
  2696. /****************************************************************************/
  2697. /** Applist                                                                **/
  2698. /****************************************************************************/
  2699.  
  2700. #ifdef _DCC
  2701. extern char MUIC_Applist[];
  2702. #else
  2703. #define MUIC_Applist "Applist.mui"
  2704. #endif
  2705.  
  2706. /* Methods */
  2707.  
  2708.  
  2709.  
  2710. /****************************************************************************/
  2711. /** Dataspace                                                              **/
  2712. /****************************************************************************/
  2713.  
  2714. #ifdef _DCC
  2715. extern char MUIC_Dataspace[];
  2716. #else
  2717. #define MUIC_Dataspace "Dataspace.mui"
  2718. #endif
  2719.  
  2720. /* Methods */
  2721.  
  2722. #define MUIM_Dataspace_Add                  0x80423366 /* V11 */
  2723. #define MUIM_Dataspace_Clear                0x8042b6c9 /* V11 */
  2724. #define MUIM_Dataspace_Merge                0x80423e2b /* V11 */
  2725. #define MUIM_Dataspace_ReadIFF              0x80420dfb /* V11 */
  2726. #define MUIM_Dataspace_Remove               0x8042dce1 /* V11 */
  2727. #define MUIM_Dataspace_WriteIFF             0x80425e8e /* V11 */
  2728. struct  MUIP_Dataspace_Add                  { ULONG MethodID; APTR data; LONG len; ULONG id; };
  2729. struct  MUIP_Dataspace_Clear                { ULONG MethodID; };
  2730. struct  MUIP_Dataspace_Merge                { ULONG MethodID; Object *dataspace; };
  2731. struct  MUIP_Dataspace_ReadIFF              { ULONG MethodID; struct IFFHandle *handle; };
  2732. struct  MUIP_Dataspace_Remove               { ULONG MethodID; ULONG id; };
  2733. struct  MUIP_Dataspace_WriteIFF             { ULONG MethodID; struct IFFHandle *handle; ULONG type; ULONG id; };
  2734.  
  2735. /* Attributes */
  2736.  
  2737. #define MUIA_Dataspace_Pool                 0x80424cf9 /* V11 i.. APTR              */
  2738.  
  2739.  
  2740.  
  2741. /****************************************************************************/
  2742. /** Configdata                                                             **/
  2743. /****************************************************************************/
  2744.  
  2745. #ifdef _DCC
  2746. extern char MUIC_Configdata[];
  2747. #else
  2748. #define MUIC_Configdata "Configdata.mui"
  2749. #endif
  2750.  
  2751. /* Methods */
  2752.  
  2753.  
  2754. /* Attributes */
  2755.  
  2756.  
  2757.  
  2758.  
  2759. /*****************************************/
  2760. /* End of automatic header file creation */
  2761. /*****************************************/
  2762.  
  2763.  
  2764.  
  2765.  
  2766.  
  2767.  
  2768.  
  2769. /*************************************************************************
  2770. ** Structures and Macros for creating custom classes.
  2771. *************************************************************************/
  2772.  
  2773.  
  2774. /*
  2775. ** GENERAL NOTES:
  2776. **
  2777. ** - Everything described in this header file is only valid within
  2778. **   MUI classes. You may never use any of these things out of
  2779. **   a class, e.g. in a traditional MUI application.
  2780. **
  2781. ** - Except when otherwise stated, all structures are strictly read only.
  2782. */
  2783.  
  2784.  
  2785. /* Global information for every object */
  2786.  
  2787. struct MUI_GlobalInfo
  2788. {
  2789.     ULONG priv0;
  2790.     Object *mgi_ApplicationObject;
  2791.  
  2792.     /* ... private data follows ... */
  2793. };
  2794.  
  2795.  
  2796. /* Instance data of notify class */
  2797.  
  2798. struct MUI_NotifyData
  2799. {
  2800.     struct MUI_GlobalInfo *mnd_GlobalInfo;
  2801.     ULONG                  mnd_UserData;
  2802.     ULONG priv1;
  2803.     ULONG priv2;
  2804.     ULONG priv3;
  2805.     ULONG priv4;
  2806.     ULONG priv5;
  2807. };
  2808.  
  2809.  
  2810. /* MUI_MinMax structure holds information about minimum, maximum
  2811.    and default dimensions of an object. */
  2812.  
  2813. struct MUI_MinMax
  2814. {
  2815.     WORD MinWidth;
  2816.     WORD MinHeight;
  2817.     WORD MaxWidth;
  2818.     WORD MaxHeight;
  2819.     WORD DefWidth;
  2820.     WORD DefHeight;
  2821. };
  2822.  
  2823. #define MUI_MAXMAX 10000 /* use this if a dimension is not limited. */
  2824.  
  2825.  
  2826. /* Hook message for custom layout */
  2827.  
  2828. struct MUI_LayoutMsg
  2829. {
  2830.     ULONG                  lm_Type;     /* type of message (see defines below)                      */
  2831.     struct MinList        *lm_Children; /* list of this groups children, traverse with NextObject() */
  2832.     struct MUI_MinMax      lm_MinMax;   /* results for MUILM_MINMAX                                 */
  2833.     struct
  2834.     {
  2835.         LONG Width;
  2836.         LONG Height;
  2837.     }                      lm_Layout;   /* size (and result) for MUILM_LAYOUT                       */
  2838. };
  2839.  
  2840. #define MUILM_MINMAX    1  /* MUI wants you to calc your min & max sizes */
  2841. #define MUILM_LAYOUT    2  /* MUI wants you to layout your children      */
  2842.  
  2843. #define MUILM_UNKNOWN  -1  /* return this if your hook doesn't implement lm_Type */
  2844.  
  2845.  
  2846. /* (partial) instance data of area class */
  2847.  
  2848. struct MUI_AreaData
  2849. {
  2850.     struct MUI_RenderInfo *mad_RenderInfo;     /* RenderInfo for this object */
  2851.     ULONG priv6;
  2852.     struct TextFont       *mad_Font;           /* Font */
  2853.     struct MUI_MinMax      mad_MinMax;         /* min/max/default sizes */
  2854.     struct IBox            mad_Box;            /* position and dimension */
  2855.     BYTE                   mad_addleft;        /* frame & innerspacing left offset */
  2856.     BYTE                   mad_addtop;         /* frame & innerspacing top offset  */
  2857.     BYTE                   mad_subwidth;       /* frame & innerspacing add. width  */
  2858.     BYTE                   mad_subheight;      /* frame & innerspacing add. height */
  2859.     ULONG                  mad_Flags;          /* see definitions below */
  2860.  
  2861.     /* ... private data follows ... */
  2862. };
  2863.  
  2864. /* Definitions for mad_Flags, other flags are private */
  2865.  
  2866. #define MADF_DRAWOBJECT        (1<< 0) /* completely redraw yourself */
  2867. #define MADF_DRAWUPDATE        (1<< 1) /* only update yourself */
  2868.  
  2869.  
  2870.  
  2871. /* MUI's draw pens */
  2872.  
  2873. #define MPEN_SHINE      0
  2874. #define MPEN_HALFSHINE  1
  2875. #define MPEN_BACKGROUND 2
  2876. #define MPEN_HALFSHADOW 3
  2877. #define MPEN_SHADOW     4
  2878. #define MPEN_TEXT       5
  2879. #define MPEN_FILL       6
  2880. #define MPEN_MARK       7
  2881. #define MPEN_COUNT      8
  2882.  
  2883.  
  2884. /* Mask for pens from MUI_ObtainPen() */
  2885.  
  2886. #define MUIPEN_MASK 0x0000ffff
  2887. #define MUIPEN(pen) ((pen) & MUIPEN_MASK)
  2888.  
  2889.  
  2890. /* Information on display environment */
  2891.  
  2892. struct MUI_RenderInfo
  2893. {
  2894.     Object          *mri_WindowObject;  /* valid between MUIM_Setup/MUIM_Cleanup */
  2895.  
  2896.     struct Screen   *mri_Screen;        /* valid between MUIM_Setup/MUIM_Cleanup */
  2897.     struct DrawInfo *mri_DrawInfo;      /* valid between MUIM_Setup/MUIM_Cleanup */
  2898.     UWORD           *mri_Pens;          /* valid between MUIM_Setup/MUIM_Cleanup */
  2899.     struct Window   *mri_Window;        /* valid between MUIM_Show/MUIM_Hide */
  2900.     struct RastPort *mri_RastPort;      /* valid between MUIM_Show/MUIM_Hide */
  2901.  
  2902.     ULONG            mri_Flags;         /* valid between MUIM_Setup/MUIM_Cleanup */
  2903.  
  2904.     /* ... private data follows ... */
  2905. };
  2906.  
  2907. /*
  2908. ** If mri_Flags & MUIMRI_RECTFILL, RectFill() is quicker
  2909. ** than Move()/Draw() for horizontal or vertical lines.
  2910. ** on the current display.
  2911. */
  2912. #define MUIMRI_RECTFILL (1<<0)
  2913.  
  2914. /*
  2915. ** If mri_Flags & MUIMRI_TRUECOLOR, display environment is a
  2916. ** cybergraphics emulated hicolor or true color display with
  2917. ** an unlimited number of pens available. Obtain/ReleasePen()s
  2918. ** as many as you want... :-)
  2919. */
  2920. #define MUIMRI_TRUECOLOR (1<<1)
  2921.  
  2922. /*
  2923. ** If mri_Flags & MUIMRI_THINFRAMES, MUI uses thin frames
  2924. ** (1:1) apsect ratio instead of standard 2:1 frames.
  2925. */
  2926. #define MUIMRI_THINFRAMES (1<<2)
  2927.  
  2928. /*
  2929. ** If mri_Flags & MUIMRI_REFRESHMODE, MUI is currently
  2930. ** refreshing a WFLG_SIMPLEREFRESH window and is between
  2931. ** a BeginRefresh()/EndRefresh() pair.
  2932. */
  2933. #define MUIMRI_REFRESHMODE (1<<3)
  2934.  
  2935.  
  2936. /* the following macros can be used to get pointers to an objects
  2937.    GlobalInfo and RenderInfo structures. */
  2938.  
  2939. struct __dummyXFC2__
  2940. {
  2941.     struct MUI_NotifyData mnd;
  2942.     struct MUI_AreaData   mad;
  2943. };
  2944.  
  2945. #define muiNotifyData(obj) (&(((struct __dummyXFC2__ *)(obj))->mnd))
  2946. #define muiAreaData(obj)   (&(((struct __dummyXFC2__ *)(obj))->mad))
  2947.  
  2948. #define muiGlobalInfo(obj) (((struct __dummyXFC2__ *)(obj))->mnd.mnd_GlobalInfo)
  2949. #define muiUserData(obj)   (((struct __dummyXFC2__ *)(obj))->mnd.mnd_UserData)
  2950. #define muiRenderInfo(obj) (((struct __dummyXFC2__ *)(obj))->mad.mad_RenderInfo)
  2951.  
  2952.  
  2953.  
  2954. /* User configurable keyboard events coming with MUIM_HandleInput */
  2955.  
  2956. enum
  2957. {
  2958.     MUIKEY_RELEASE = -2, /* not a real key, faked when MUIKEY_PRESS is released */
  2959.     MUIKEY_NONE    = -1,
  2960.     MUIKEY_PRESS,
  2961.     MUIKEY_TOGGLE,
  2962.     MUIKEY_UP,
  2963.     MUIKEY_DOWN,
  2964.     MUIKEY_PAGEUP,
  2965.     MUIKEY_PAGEDOWN,
  2966.     MUIKEY_TOP,
  2967.     MUIKEY_BOTTOM,
  2968.     MUIKEY_LEFT,
  2969.     MUIKEY_RIGHT,
  2970.     MUIKEY_WORDLEFT,
  2971.     MUIKEY_WORDRIGHT,
  2972.     MUIKEY_LINESTART,
  2973.     MUIKEY_LINEEND,
  2974.     MUIKEY_GADGET_NEXT,
  2975.     MUIKEY_GADGET_PREV,
  2976.     MUIKEY_GADGET_OFF,
  2977.     MUIKEY_WINDOW_CLOSE,
  2978.     MUIKEY_WINDOW_NEXT,
  2979.     MUIKEY_WINDOW_PREV,
  2980.     MUIKEY_HELP,
  2981.     MUIKEY_POPUP,
  2982.     MUIKEY_COUNT /* counter */
  2983. };
  2984.  
  2985.  
  2986. /* Some useful shortcuts. define MUI_NOSHORTCUTS to get rid of them */
  2987. /* NOTE: These macros may only be used in custom classes and are    */
  2988. /* only valid if your class is inbetween the specified methods!     */
  2989.  
  2990. #ifndef MUI_NOSHORTCUTS
  2991.  
  2992. #define _app(obj)         (muiGlobalInfo(obj)->mgi_ApplicationObject) /* valid between MUIM_Setup/Cleanup */
  2993. #define _win(obj)         (muiRenderInfo(obj)->mri_WindowObject)      /* valid between MUIM_Setup/Cleanup */
  2994. #define _dri(obj)         (muiRenderInfo(obj)->mri_DrawInfo)          /* valid between MUIM_Setup/Cleanup */
  2995. #define _screen(obj)      (muiRenderInfo(obj)->mri_Screen)            /* valid between MUIM_Setup/Cleanup */
  2996. #define _pens(obj)        (muiRenderInfo(obj)->mri_Pens)              /* valid between MUIM_Setup/Cleanup */
  2997. #define _window(obj)      (muiRenderInfo(obj)->mri_Window)            /* valid between MUIM_Show/Hide */
  2998. #define _rp(obj)          (muiRenderInfo(obj)->mri_RastPort)          /* valid between MUIM_Show/Hide */
  2999. #define _left(obj)        (muiAreaData(obj)->mad_Box.Left)            /* valid during MUIM_Draw */
  3000. #define _top(obj)         (muiAreaData(obj)->mad_Box.Top)             /* valid during MUIM_Draw */
  3001. #define _width(obj)       (muiAreaData(obj)->mad_Box.Width)           /* valid during MUIM_Draw */
  3002. #define _height(obj)      (muiAreaData(obj)->mad_Box.Height)          /* valid during MUIM_Draw */
  3003. #define _right(obj)       (_left(obj)+_width(obj)-1)                  /* valid during MUIM_Draw */
  3004. #define _bottom(obj)      (_top(obj)+_height(obj)-1)                  /* valid during MUIM_Draw */
  3005. #define _addleft(obj)     (muiAreaData(obj)->mad_addleft  )           /* valid during MUIM_Draw */
  3006. #define _addtop(obj)      (muiAreaData(obj)->mad_addtop   )           /* valid during MUIM_Draw */
  3007. #define _subwidth(obj)    (muiAreaData(obj)->mad_subwidth )           /* valid during MUIM_Draw */
  3008. #define _subheight(obj)   (muiAreaData(obj)->mad_subheight)           /* valid during MUIM_Draw */
  3009. #define _mleft(obj)       (_left(obj)+_addleft(obj))                  /* valid during MUIM_Draw */
  3010. #define _mtop(obj)        (_top(obj)+_addtop(obj))                    /* valid during MUIM_Draw */
  3011. #define _mwidth(obj)      (_width(obj)-_subwidth(obj))                /* valid during MUIM_Draw */
  3012. #define _mheight(obj)     (_height(obj)-_subheight(obj))              /* valid during MUIM_Draw */
  3013. #define _mright(obj)      (_mleft(obj)+_mwidth(obj)-1)                /* valid during MUIM_Draw */
  3014. #define _mbottom(obj)     (_mtop(obj)+_mheight(obj)-1)                /* valid during MUIM_Draw */
  3015. #define _font(obj)        (muiAreaData(obj)->mad_Font)                /* valid between MUIM_Setup/Cleanup */
  3016. #define _minwidth(obj)    (muiAreaData(obj)->mad_MinMax.MinWidth)     /* valid between MUIM_Show/Hide */
  3017. #define _minheight(obj)   (muiAreaData(obj)->mad_MinMax.MinHeight)    /* valid between MUIM_Show/Hide */
  3018. #define _maxwidth(obj)    (muiAreaData(obj)->mad_MinMax.MaxWidth)     /* valid between MUIM_Show/Hide */
  3019. #define _maxheight(obj)   (muiAreaData(obj)->mad_MinMax.MaxHeight)    /* valid between MUIM_Show/Hide */
  3020. #define _defwidth(obj)    (muiAreaData(obj)->mad_MinMax.DefWidth)     /* valid between MUIM_Show/Hide */
  3021. #define _defheight(obj)   (muiAreaData(obj)->mad_MinMax.DefHeight)    /* valid between MUIM_Show/Hide */
  3022. #define _flags(obj)       (muiAreaData(obj)->mad_Flags)
  3023.  
  3024. #endif
  3025.  
  3026.  
  3027.  
  3028. /* MUI_CustomClass returned by MUI_CreateCustomClass() */
  3029.  
  3030. struct MUI_CustomClass
  3031. {
  3032.     APTR mcc_UserData;                  /* use for whatever you want */
  3033.  
  3034.     struct Library *mcc_UtilityBase;    /* MUI has opened these libraries */
  3035.     struct Library *mcc_DOSBase;        /* for you automatically. You can */
  3036.     struct Library *mcc_GfxBase;        /* use them or decide to open     */
  3037.     struct Library *mcc_IntuitionBase;  /* your libraries yourself.       */
  3038.  
  3039.     struct IClass *mcc_Super;           /* pointer to super class   */
  3040.     struct IClass *mcc_Class;           /* pointer to the new class */
  3041.  
  3042.     /* ... private data follows ... */
  3043. };
  3044.  
  3045.  
  3046.  
  3047. #endif /* MUI_H */
  3048.