home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 5 / FreshFish_July-August1994.bin / bbs / dev / mui-2.1.lha / MUI-2.1 / Developer / C / Include / libraries / mui.h
Encoding:
C/C++ Source or Header  |  1994-07-04  |  80.1 KB  |  2,154 lines

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