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