mui.h updated.
[AROS.git] / workbench / libs / openurl / include / libraries / mui.h
blobcb7baa745c220b20c574e4cd346be7e529cf6458
1 #ifdef __AROS__
2 #include "libraries/muiaros.h"
3 #else
5 /***************************************************************************
6 **
7 ** MUI - MagicUserInterface
8 ** (c) 1993-2006 Stefan Stuntz
9 **
10 ** $VER 20.1 (06.12.2006)
12 ** Main Header File
14 ****************************************************************************
15 ** Class Tree
16 ****************************************************************************
18 ** rootclass (BOOPSI's base class)
19 ** +--Notify (implements notification mechanism)
20 ** ! +--Family (handles multiple children)
21 ** ! ! +--Menustrip (describes a complete menu strip)
22 ** ! ! +--Menu (describes a single menu)
23 ** ! ! \--Menuitem (describes a single menu item)
24 ** ! +--Application (main class for all applications)
25 ** ! +--Window (main class for all windows)
26 ** ! ! \--Aboutmui (About window of MUI preferences)
27 ** ! +--Area (base class for all GUI elements)
28 ** ! +--Rectangle (spacing object)
29 ** ! +--Balance (balancing separator bar)
30 ** ! +--Image (image display)
31 ** ! +--Bitmap (draws bitmaps)
32 ** ! ! \--Bodychunk (makes bitmap from ILBM body chunk)
33 ** ! +--Text (text display)
34 ** ! +--Gadget (base class for intuition gadgets)
35 ** ! ! +--String (string gadget)
36 ** ! ! +--Boopsi (interface to BOOPSI gadgets)
37 ** ! ! \--Prop (proportional gadget)
38 ** ! +--Gauge (fule gauge)
39 ** ! +--Scale (percentage scale)
40 ** ! +--Colorfield (field with changeable color)
41 ** ! +--List (line-oriented list)
42 ** ! ! +--Floattext (special list with floating text)
43 ** ! ! +--Volumelist (special list with volumes)
44 ** ! ! +--Scrmodelist (special list with screen modes)
45 ** ! ! \--Dirlist (special list with files)
46 ** ! +--Numeric (base class for slider gadgets)
47 ** ! ! +--Knob (turning knob)
48 ** ! ! +--Levelmeter (level display)
49 ** ! ! +--Numericbutton (space saving popup slider)
50 ** ! ! \--Slider (traditional slider)
51 ** ! +--Framedisplay (private)
52 ** ! ! \--Popframe (private)
53 ** ! +--Imagedisplay (private)
54 ** ! ! \--Popimage (private)
55 ** ! +--Pendisplay (displays a pen specification)
56 ** ! ! \--Poppen (popup button to adjust a pen spec)
57 ** ! +--Group (groups other GUI elements)
58 ** ! +--Mccprefs (private)
59 ** ! +--Register (handles page groups with titles)
60 ** ! ! \--Penadjust (group to adjust a pen)
61 ** ! +--Settingsgroup (private)
62 ** ! +--Settings (private)
63 ** ! +--Frameadjust (private)
64 ** ! +--Imageadjust (private)
65 ** ! +--Virtgroup (handles virtual groups)
66 ** ! +--Scrollgroup (virtual groups with scrollbars)
67 ** ! +--Scrollbar (traditional scrollbar)
68 ** ! +--Listview (listview)
69 ** ! +--Radio (radio button)
70 ** ! +--Cycle (cycle gadget)
71 ** ! +--Coloradjust (several gadgets to adjust a color)
72 ** ! +--Palette (complete palette gadget)
73 ** ! +--Popstring (base class for popup objects)
74 ** ! +--Popobject (popup aynthing in a separate window)
75 ** ! ! +--Poplist (popup a simple listview)
76 ** ! ! \--Popscreen (popup a list of public screens)
77 ** ! \--Popasl (popup an asl requester)
78 ** +--Semaphore (semaphore equipped objects)
79 ** +--Applist (private)
80 ** +--Dataspace (handles general purpose data spaces)
81 ** \--Configdata (private)
83 ****************************************************************************
84 ** General Header File Information
85 ****************************************************************************
87 ** All macro and structure definitions follow these rules:
89 ** Name Meaning
91 ** MUIC_<class> Name of a class
92 ** MUIM_<class>_<method> Method
93 ** MUIP_<class>_<method> Methods parameter structure
94 ** MUIV_<class>_<method>_<x> Special method value
95 ** MUIA_<class>_<attrib> Attribute
96 ** MUIV_<class>_<attrib>_<x> Special attribute value
97 ** MUIE_<error> Error return code from MUI_Error()
98 ** MUII_<name> Standard MUI image
99 ** MUIX_<code> Control codes for text strings
100 ** MUIO_<name> Object type for MUI_MakeObject()
102 ** MUIA_... attribute definitions are followed by a comment
103 ** consisting of the three possible letters I, S and G.
104 ** I: it's possible to specify this attribute at object creation time.
105 ** S: it's possible to change this attribute with SetAttrs().
106 ** G: it's possible to get this attribute with GetAttr().
108 ** Items marked with "Custom Class" are for use in custom classes only!
112 #ifndef LIBRARIES_MUI_H
113 #define LIBRARIES_MUI_H
115 #ifndef EXEC_TYPES_H
116 #include <exec/types.h>
117 #endif
119 #ifndef DOS_DOS_H
120 #include <dos/dos.h>
121 #endif
123 #ifndef INTUITION_CLASSES_H
124 #include <intuition/classes.h>
125 #endif
127 #ifndef INTUITION_SCREENS_H
128 #include <intuition/screens.h>
129 #endif
131 #ifndef PROTO_INTUITION_H
132 #include <proto/intuition.h>
133 #endif
135 #if defined(__PPC__)
136 #if defined(__GNUC__)
137 #pragma pack(2)
138 #elif defined(__VBCC__)
139 #pragma amiga-align
140 #endif
141 #endif
144 /***************************************************************************
145 ** Library specification
146 ***************************************************************************/
148 #define MUIMASTER_NAME "muimaster.library"
149 #define MUIMASTER_VMIN 20
150 #define MUIMASTER_VLATEST 20
153 ** !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
154 ** Warning, some of the macros in this header file work only with
155 ** up2date versions of muimaster.library. If you recompile your programs,
156 ** be sure to open muimaster.library with MUIMASTER_VMIN as version number.
157 ** !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
161 #define MUI_OBSOLETE
164 /*************************************************************************
165 ** Config items for MUIM_GetConfigItem
166 *************************************************************************/
168 #define MUICFG_PublicScreen 36
172 /*************************************************************************
173 ** Black box specification structures for images, pens, frames
174 *************************************************************************/
176 struct MUI_PenSpec
178 char buf[32];
183 /*************************************************************************
184 ** Public Screen Stuff
185 *************************************************************************/
188 ** NOTE: This stuff is only included to allow compilation of the supplied
189 ** public screen manager for educational purposes. Everything
190 ** here is subject to change without notice and I guarantee to
191 ** do that just for fun!
192 ** More info can be found in the screen manager source file.
195 #define PSD_INITIAL_NAME "(unnamed)"
196 #define PSD_INITIAL_TITLE "MUI Public Screen"
197 #define PSD_ID_MPUB MAKE_ID('M','P','U','B')
199 #define PSD_NAME_FRONTMOST "«Frontmost»"
201 #define PSD_FILENAME_SAVE "envarc:mui/PublicScreens.iff"
202 #define PSD_FILENAME_USE "env:mui/PublicScreens.iff"
204 #define PSD_MAXLEN_NAME 32
205 #define PSD_MAXLEN_TITLE 128
206 #define PSD_MAXLEN_FONT 48
207 #define PSD_MAXLEN_BACKGROUND 256
208 #define PSD_NUMCOLS 8
209 #define PSD_MAXSYSPENS 20
210 #define PSD_NUMSYSPENS 12
211 #define PSD_MAXMUIPENS 10
212 #define PSD_NUMMUIPENS MPEN_COUNT
214 struct MUI_RGBcolor
216 ULONG red;
217 ULONG green;
218 ULONG blue;
221 struct MUI_PubScreenDesc
223 LONG Version;
225 char Name[PSD_MAXLEN_NAME];
226 char Title[PSD_MAXLEN_TITLE];
227 char Font[PSD_MAXLEN_FONT];
228 char Background[PSD_MAXLEN_BACKGROUND];
230 ULONG DisplayID;
232 UWORD DisplayWidth;
233 UWORD DisplayHeight;
235 UBYTE DisplayDepth;
236 UBYTE OverscanType;
237 UBYTE AutoScroll;
238 UBYTE NoDrag;
239 UBYTE Exclusive;
240 UBYTE Interleaved;
241 UBYTE SysDefault;
242 UBYTE Behind;
243 UBYTE AutoClose;
244 UBYTE CloseGadget;
245 UBYTE DummyWasForeign;
247 BYTE SystemPens[PSD_MAXSYSPENS];
248 UBYTE psd_Reserved[1+7*4-PSD_MAXSYSPENS];
250 struct MUI_RGBcolor Palette[PSD_NUMCOLS];
251 struct MUI_RGBcolor rsvd[PSD_MAXSYSPENS-PSD_NUMCOLS];
253 struct MUI_PenSpec rsvd2[PSD_MAXMUIPENS];
255 LONG Changed;
256 APTR UserData;
259 struct MUIS_InfoClient
261 struct MinNode node;
262 struct Task *task;
263 ULONG sigbit;
267 /***************************************************************************
268 ** Object Types for MUI_MakeObject()
269 ***************************************************************************/
271 #define MUIO_Label 1 /* STRPTR label, ULONG flags */
272 #define MUIO_Button 2 /* STRPTR label */
273 #define MUIO_Checkmark 3 /* STRPTR label */
274 #define MUIO_Cycle 4 /* STRPTR label, STRPTR *entries */
275 #define MUIO_Radio 5 /* STRPTR label, STRPTR *entries */
276 #define MUIO_Slider 6 /* STRPTR label, LONG min, LONG max */
277 #define MUIO_String 7 /* STRPTR label, LONG maxlen */
278 #define MUIO_PopButton 8 /* STRPTR imagespec */
279 #define MUIO_HSpace 9 /* LONG space */
280 #define MUIO_VSpace 10 /* LONG space */
281 #define MUIO_HBar 11 /* LONG space */
282 #define MUIO_VBar 12 /* LONG space */
283 #define MUIO_MenustripNM 13 /* struct NewMenu *nm, ULONG flags */
284 #define MUIO_Menuitem 14 /* STRPTR label, STRPTR shortcut, ULONG flags, ULONG data */
285 #define MUIO_BarTitle 15 /* STRPTR label */
286 #define MUIO_NumericButton 16 /* STRPTR label, LONG min, LONG max, STRPTR format */
288 #define MUIO_Menuitem_CopyStrings (1<<30)
290 #define MUIO_Label_SingleFrame (1<< 8)
291 #define MUIO_Label_DoubleFrame (1<< 9)
292 #define MUIO_Label_LeftAligned (1<<10)
293 #define MUIO_Label_Centered (1<<11)
294 #define MUIO_Label_FreeVert (1<<12)
295 #define MUIO_Label_Tiny (1<<13)
296 #define MUIO_Label_DontCopy (1<<14)
298 #define MUIO_MenustripNM_CommandKeyCheck (1<<0) /* check for "localized" menu items such as "O\0Open" */
302 /***************************************************************************
303 ** ARexx Interface
304 ***************************************************************************/
306 struct MUI_Command
308 char *mc_Name;
309 char *mc_Template;
310 LONG mc_Parameters;
311 struct Hook *mc_Hook;
312 LONG mc_Reserved[5];
315 #define MC_TEMPLATE_ID ((STRPTR)~0)
317 #define MUI_RXERR_BADDEFINITION -1
318 #define MUI_RXERR_OUTOFMEMORY -2
319 #define MUI_RXERR_UNKNOWNCOMMAND -3
320 #define MUI_RXERR_BADSYNTAX -4
323 /***************************************************************************
324 ** Return values for MUI_Error()
325 ***************************************************************************/
327 #define MUIE_OK 0
328 #define MUIE_OutOfMemory 1
329 #define MUIE_OutOfGfxMemory 2
330 #define MUIE_InvalidWindowObject 3
331 #define MUIE_MissingLibrary 4
332 #define MUIE_NoARexx 5
333 #define MUIE_SingleTask 6
337 /***************************************************************************
338 ** Standard MUI Images & Backgrounds
339 ***************************************************************************/
341 #define MUII_WindowBack 0 /* These images are configured */
342 #define MUII_RequesterBack 1 /* with the preferences program. */
343 #define MUII_ButtonBack 2
344 #define MUII_ListBack 3
345 #define MUII_TextBack 4
346 #define MUII_PropBack 5
347 #define MUII_PopupBack 6
348 #define MUII_SelectedBack 7
349 #define MUII_ListCursor 8
350 #define MUII_ListSelect 9
351 #define MUII_ListSelCur 10
352 #define MUII_ArrowUp 11
353 #define MUII_ArrowDown 12
354 #define MUII_ArrowLeft 13
355 #define MUII_ArrowRight 14
356 #define MUII_CheckMark 15
357 #define MUII_RadioButton 16
358 #define MUII_Cycle 17
359 #define MUII_PopUp 18
360 #define MUII_PopFile 19
361 #define MUII_PopDrawer 20
362 #define MUII_PropKnob 21
363 #define MUII_Drawer 22
364 #define MUII_HardDisk 23
365 #define MUII_Disk 24
366 #define MUII_Chip 25
367 #define MUII_Volume 26
368 #define MUII_RegisterBack 27
369 #define MUII_Network 28
370 #define MUII_Assign 29
371 #define MUII_TapePlay 30
372 #define MUII_TapePlayBack 31
373 #define MUII_TapePause 32
374 #define MUII_TapeStop 33
375 #define MUII_TapeRecord 34
376 #define MUII_GroupBack 35
377 #define MUII_SliderBack 36
378 #define MUII_SliderKnob 37
379 #define MUII_TapeUp 38
380 #define MUII_TapeDown 39
381 #define MUII_PageBack 40
382 #define MUII_ReadListBack 41
383 #define MUII_PopFont 42
384 #define MUII_Count 43
386 #define MUII_BACKGROUND 128 /* These are direct color */
387 #define MUII_SHADOW 129 /* combinations and are not */
388 #define MUII_SHINE 130 /* affected by users prefs. */
389 #define MUII_FILL 131
390 #define MUII_SHADOWBACK 132 /* Generally, you should */
391 #define MUII_SHADOWFILL 133 /* avoid using them. Better */
392 #define MUII_SHADOWSHINE 134 /* use one of the customized */
393 #define MUII_FILLBACK 135 /* images above. */
394 #define MUII_FILLSHINE 136
395 #define MUII_SHINEBACK 137
396 #define MUII_FILLBACK2 138
397 #define MUII_HSHINEBACK 139
398 #define MUII_HSHADOWBACK 140
399 #define MUII_HSHINESHINE 141
400 #define MUII_HSHADOWSHADOW 142
401 #define MUII_MARKSHINE 143
402 #define MUII_MARKHALFSHINE 144
403 #define MUII_MARKBACKGROUND 145
404 #define MUII_BARBLOCK 146
405 #define MUII_BARDETAIL 147
407 /***************************************************************************
408 ** Special values for some methods
409 ***************************************************************************/
411 #define MUIV_TriggerValue 0x49893131
412 #define MUIV_NotTriggerValue 0x49893133
413 #define MUIV_EveryTime 0x49893131
415 #define MUIV_Notify_Self 1
416 #define MUIV_Notify_Window 2
417 #define MUIV_Notify_Application 3
418 #define MUIV_Notify_Parent 4
420 #define MUIV_Application_Save_ENV ((STRPTR) 0)
421 #define MUIV_Application_Save_ENVARC ((STRPTR)~0)
422 #define MUIV_Application_Load_ENV ((STRPTR) 0)
423 #define MUIV_Application_Load_ENVARC ((STRPTR)~0)
425 #define MUIV_Application_ReturnID_Quit -1
427 #define MUIV_List_Insert_Top 0
428 #define MUIV_List_Insert_Active -1
429 #define MUIV_List_Insert_Sorted -2
430 #define MUIV_List_Insert_Bottom -3
432 #define MUIV_List_Remove_First 0
433 #define MUIV_List_Remove_Active -1
434 #define MUIV_List_Remove_Last -2
435 #define MUIV_List_Remove_Selected -3
437 #define MUIV_List_Select_Off 0
438 #define MUIV_List_Select_On 1
439 #define MUIV_List_Select_Toggle 2
440 #define MUIV_List_Select_Ask 3
442 #define MUIV_List_GetEntry_Active -1
443 #define MUIV_List_Select_Active -1
444 #define MUIV_List_Select_All -2
446 #define MUIV_List_Redraw_Active -1
447 #define MUIV_List_Redraw_All -2
449 #define MUIV_List_Move_Top 0
450 #define MUIV_List_Move_Active -1
451 #define MUIV_List_Move_Bottom -2
452 #define MUIV_List_Move_Next -3 /* only valid for second parameter */
453 #define MUIV_List_Move_Previous -4 /* only valid for second parameter */
455 #define MUIV_List_Exchange_Top 0
456 #define MUIV_List_Exchange_Active -1
457 #define MUIV_List_Exchange_Bottom -2
458 #define MUIV_List_Exchange_Next -3 /* only valid for second parameter */
459 #define MUIV_List_Exchange_Previous -4 /* only valid for second parameter */
461 #define MUIV_List_Jump_Top 0
462 #define MUIV_List_Jump_Active -1
463 #define MUIV_List_Jump_Bottom -2
464 #define MUIV_List_Jump_Up -4
465 #define MUIV_List_Jump_Down -3
467 #define MUIV_List_NextSelected_Start -1
468 #define MUIV_List_NextSelected_End -1
470 #define MUIV_DragQuery_Refuse 0
471 #define MUIV_DragQuery_Accept 1
473 #define MUIV_DragReport_Abort 0
474 #define MUIV_DragReport_Continue 1
475 #define MUIV_DragReport_Lock 2
476 #define MUIV_DragReport_Refresh 3
478 #define MUIV_CreateBubble_DontHidePointer (1<<0)
480 #define MUIV_Application_OCW_ScreenPage (1<<1) /* show just the screen page of the config window */
482 #define MUIV_ContextMenuBuild_Default 0xffffffff
484 #define MUIV_PushMethod_Delay(millis) (((ULONG)millis)<<8)
488 /***************************************************************************
489 ** Control codes for text strings
490 ***************************************************************************/
492 #define MUIX_R "\033r" /* right justified */
493 #define MUIX_C "\033c" /* centered */
494 #define MUIX_L "\033l" /* left justified */
496 #define MUIX_N "\033n" /* normal */
497 #define MUIX_B "\033b" /* bold */
498 #define MUIX_I "\033i" /* italic */
499 #define MUIX_U "\033u" /* underlined */
501 #define MUIX_PT "\0332" /* text pen */
502 #define MUIX_PH "\0338" /* highlight text pen */
506 /***************************************************************************
507 ** Parameter structures for some classes
508 ***************************************************************************/
510 struct MUI_Palette_Entry
512 LONG mpe_ID;
513 ULONG mpe_Red;
514 ULONG mpe_Green;
515 ULONG mpe_Blue;
516 LONG mpe_Group;
519 #define MUIV_Palette_Entry_End -1
522 /* Popmenu class item spec and definitions */
524 struct MUIP_Popmenu_Item
526 ULONG pi_Type;
527 STRPTR pi_Key;
528 STRPTR pi_Text;
529 ULONG pi_Flags;
530 struct MUIP_Popmenu_Item *pi_SubMenu;
531 APTR pi_UserData;
532 ULONG pi_MXField;
535 /* values for pi_Type */
537 #define PIT_END 0
538 #define PIT_TITLE 1
539 #define PIT_TEXT 2
540 #define PIT_IMAGE 3
541 #define PIT_SEPARATOR 4
542 #define PIT_SUBTITLE 5
543 #define PIT_IGNORE 6
546 /* values for pi_Flags */
548 #define PIB_TOGGLE 0
549 #define PIB_RADIO 1
550 #define PIB_DISABLED 2
551 #define PIB_SELECTED 3
552 #define PIB_RELATIVEMX 4
553 #define PIB_READONLY 5
554 #define PIB_PRESSED 6 /* Kind of private... */
555 #define PIB_CREATESUBMENU 7
556 #define PIB_MULTICOLUMNS 8
558 #define PIF_TOGGLE (1<<PIB_TOGGLE)
559 #define PIF_RADIO (1<<PIB_RADIO)
560 #define PIF_DISABLED (1<<PIB_DISABLED)
561 #define PIF_SELECTED (1<<PIB_SELECTED)
562 #define PIF_RELATIVEMX (1<<PIB_RELATIVEMX)
563 #define PIF_READONLY (1<<PIB_READONLY)
564 #define PIF_PRESSED (1<<PIB_PRESSED)
565 #define PIF_CREATESUBMENU (1<<PIB_CREATESUBMENU)
566 #define PIF_MULTICOLUMNS (1<<PIB_MULTICOLUMNS)
569 /*****************************/
570 /* Application Input Handler */
571 /*****************************/
573 struct MUI_InputHandlerNode
575 struct MinNode ihn_Node;
576 Object *ihn_Object;
578 union
580 ULONG ihn_sigs;
581 struct
583 UWORD ihn_millis;
584 UWORD ihn_current;
585 } ihn_timer;
586 } ihn_stuff;
588 ULONG ihn_Flags; /* see below */
589 ULONG ihn_Method;
592 #define ihn_Signals ihn_stuff.ihn_sigs
593 #define ihn_Millis ihn_stuff.ihn_timer.ihn_millis
594 #define ihn_Current ihn_stuff.ihn_timer.ihn_current
596 /* Flags for ihn_Flags */
597 #define MUIIHNF_TIMER (1<<0) /* set ihn_Millis to number of 1/1000 sec ticks you want to be triggered */
598 #define MUIIHNF_TIMER_SCALE10 (1<<1) /* ihn_Millis is in 1/100 seconds instead */
599 #define MUIIHNF_TIMER_SCALE100 (1<<2) /* ihn_Millis is in 1/10 seconds instead */
600 /* setting both SCALE10|SCALE100 makes ihn_Millis 1/1 seconds */
602 /************************/
603 /* Window Event Handler */
604 /************************/
606 struct MUI_EventHandlerNode
608 struct MinNode ehn_Node;
609 BYTE ehn_Reserved; /* don't touch! */
610 BYTE ehn_Priority; /* event handlers are inserted according to their priority. */
611 UWORD ehn_Flags; /* certain flags, see below for definitions. */
612 Object *ehn_Object; /* object which should receive MUIM_HandleEvent. */
613 struct IClass *ehn_Class; /* if !=NULL, MUIM_HandleEvent is invoked on exactly this class with CoerceMethod(). */
614 ULONG ehn_Events; /* one or more IDCMP flags this handler should react on. */
617 /* flags for ehn_Flags */
619 #define MUI_EHF_ALWAYSKEYS (1<<0) /* not for public use */
621 #define MUI_EHF_GUIMODE (1<<1) /* set this if you dont want your handler to be called */
622 /* when your object is disabled or invisible */
624 #define MUI_EHF_ISACTIVEGRP (1<<12) /* not for public use */
626 #define MUI_EHF_ISACTIVE (1<<13) /* this flag is maintained by MUI and READ-ONLY: */
627 /* set when ehn_Object is a window's active or default object. */
629 #define MUI_EHF_ISCALLING (1<<14) /* not for public use */
631 #define MUI_EHF_ISENABLED (1<<15) /* this flag is maintained by MUI and READ-ONLY: */
632 /* it is set when the handler is added (after MUIM_Window_AddEventHandler) */
633 /* and cleared when the handler is removed (after MUIM_Window_RemEventHandler). */
634 /* you may not change the state of this flag yourself, but you may read it */
635 /* to find out whether your handler is currently added to a window or not. */
638 /* other values reserved for future use */
640 /* return values for MUIM_HandleEvent (bit-masked, all other bits must be 0) */
641 #define MUI_EventHandlerRC_Eat (1<<0) /* stop MUI from calling other handlers */
644 /**********************/
645 /* List Position Test */
646 /**********************/
648 struct MUI_List_TestPos_Result
650 LONG entry; /* number of entry, -1 if mouse not over valid entry */
651 WORD column; /* numer of column, -1 if no valid column */
652 UWORD flags; /* see below */
653 WORD xoffset; /* x offset of mouse click relative to column start */
654 WORD yoffset; /* y offset of mouse click from center of line
655 (negative values mean click was above center,
656 positive values mean click was below center) */
659 #define MUI_LPR_ABOVE (1<<0)
660 #define MUI_LPR_BELOW (1<<1)
661 #define MUI_LPR_LEFT (1<<2)
662 #define MUI_LPR_RIGHT (1<<3)
665 /***************************************************************************
667 ** Macro Section
668 ** -------------
670 ** To make GUI creation more easy and understandable, you can use the
671 ** macros below. If you dont want, just define MUI_NOSHORTCUTS to disable
672 ** them.
674 ** These macros are available to C programmers only.
676 ***************************************************************************/
678 #ifndef MUI_NOSHORTCUTS
682 /***************************************************************************
684 ** Object Generation
685 ** -----------------
687 ** The xxxObject (and xChilds) macros generate new instances of MUI classes.
688 ** Every xxxObject can be followed by tagitems specifying initial create
689 ** time attributes for the new object and must be terminated with the
690 ** End macro:
692 ** obj = StringObject,
693 ** MUIA_String_Contents, "foo",
694 ** MUIA_String_MaxLen , 40,
695 ** End;
697 ** With the Child, SubWindow and WindowContents shortcuts you can
698 ** construct a complete GUI within one command:
700 ** app = ApplicationObject,
702 ** ...
704 ** SubWindow, WindowObject,
705 ** WindowContents, VGroup,
706 ** Child, String("foo",40),
707 ** Child, String("bar",50),
708 ** Child, HGroup,
709 ** Child, CheckMark(TRUE),
710 ** Child, CheckMark(FALSE),
711 ** End,
712 ** End,
713 ** End,
715 ** SubWindow, WindowObject,
716 ** WindowContents, HGroup,
717 ** Child, ...,
718 ** Child, ...,
719 ** End,
720 ** End,
722 ** ...
724 ** End;
726 ***************************************************************************/
728 #define MenustripObject MUI_NewObject(MUIC_Menustrip
729 #define MenuObject MUI_NewObject(MUIC_Menu
730 #define MenuObjectT(name) MUI_NewObject(MUIC_Menu,MUIA_Menu_Title,name
731 #define PopmenuObject MUI_NewObject(MUIC_Popmenu
732 #define MenuitemObject MUI_NewObject(MUIC_Menuitem
733 #define WindowObject MUI_NewObject(MUIC_Window
734 #define ImageObject MUI_NewObject(MUIC_Image
735 #define BitmapObject MUI_NewObject(MUIC_Bitmap
736 #define BodychunkObject MUI_NewObject(MUIC_Bodychunk
737 #define NotifyObject MUI_NewObject(MUIC_Notify
738 #define ApplicationObject MUI_NewObject(MUIC_Application
739 #define TextObject MUI_NewObject(MUIC_Text
740 #define RectangleObject MUI_NewObject(MUIC_Rectangle
741 #define BalanceObject MUI_NewObject(MUIC_Balance
742 #define ListObject MUI_NewObject(MUIC_List
743 #define PropObject MUI_NewObject(MUIC_Prop
744 #define StringObject MUI_NewObject(MUIC_String
745 #define ScrollbarObject MUI_NewObject(MUIC_Scrollbar
746 #define ListviewObject MUI_NewObject(MUIC_Listview
747 #define RadioObject MUI_NewObject(MUIC_Radio
748 #define VolumelistObject MUI_NewObject(MUIC_Volumelist
749 #define FloattextObject MUI_NewObject(MUIC_Floattext
750 #define DirlistObject MUI_NewObject(MUIC_Dirlist
751 #define CycleObject MUI_NewObject(MUIC_Cycle
752 #define GaugeObject MUI_NewObject(MUIC_Gauge
753 #define ScaleObject MUI_NewObject(MUIC_Scale
754 #define NumericObject MUI_NewObject(MUIC_Numeric
755 #define SliderObject MUI_NewObject(MUIC_Slider
756 #define NumericbuttonObject MUI_NewObject(MUIC_Numericbutton
757 #define KnobObject MUI_NewObject(MUIC_Knob
758 #define LevelmeterObject MUI_NewObject(MUIC_Levelmeter
759 #define BoopsiObject MUI_NewObject(MUIC_Boopsi
760 #define ColorfieldObject MUI_NewObject(MUIC_Colorfield
761 #define PenadjustObject MUI_NewObject(MUIC_Penadjust
762 #define ColoradjustObject MUI_NewObject(MUIC_Coloradjust
763 #define PaletteObject MUI_NewObject(MUIC_Palette
764 #define GroupObject MUI_NewObject(MUIC_Group
765 #define RegisterObject MUI_NewObject(MUIC_Register
766 #define VirtgroupObject MUI_NewObject(MUIC_Virtgroup
767 #define ScrollgroupObject MUI_NewObject(MUIC_Scrollgroup
768 #define PopstringObject MUI_NewObject(MUIC_Popstring
769 #define PopobjectObject MUI_NewObject(MUIC_Popobject
770 #define PoplistObject MUI_NewObject(MUIC_Poplist
771 #define PopaslObject MUI_NewObject(MUIC_Popasl
772 #define PendisplayObject MUI_NewObject(MUIC_Pendisplay
773 #define PoppenObject MUI_NewObject(MUIC_Poppen
774 #define AboutmuiObject MUI_NewObject(MUIC_Aboutmui
775 #define ScrmodelistObject MUI_NewObject(MUIC_Scrmodelist
776 #define KeyentryObject MUI_NewObject(MUIC_Keyentry
777 #define VGroup MUI_NewObject(MUIC_Group
778 #define HGroup MUI_NewObject(MUIC_Group,MUIA_Group_Horiz,TRUE
779 #define ColGroup(cols) MUI_NewObject(MUIC_Group,MUIA_Group_Columns,(cols)
780 #define RowGroup(rows) MUI_NewObject(MUIC_Group,MUIA_Group_Rows ,(rows)
781 #define PageGroup MUI_NewObject(MUIC_Group,MUIA_Group_PageMode,TRUE
782 #define VGroupV MUI_NewObject(MUIC_Virtgroup
783 #define HGroupV MUI_NewObject(MUIC_Virtgroup,MUIA_Group_Horiz,TRUE
784 #define ColGroupV(cols) MUI_NewObject(MUIC_Virtgroup,MUIA_Group_Columns,(cols)
785 #define RowGroupV(rows) MUI_NewObject(MUIC_Virtgroup,MUIA_Group_Rows ,(rows)
786 #define PageGroupV MUI_NewObject(MUIC_Virtgroup,MUIA_Group_PageMode,TRUE
787 #define RegisterGroup(t) MUI_NewObject(MUIC_Register,MUIA_Register_Titles,(t)
788 #define End TAG_DONE)
790 #define Child MUIA_Group_Child
791 #define SubWindow MUIA_Application_Window
792 #define WindowContents MUIA_Window_RootObject
796 /***************************************************************************
798 ** Frame Types
799 ** -----------
801 ** These macros may be used to specify one of MUI's different frame types.
802 ** Note that every macro consists of one { ti_Tag, ti_Data } pair.
804 ** GroupFrameT() is a special kind of frame that contains a centered
805 ** title text.
807 ** HGroup, GroupFrameT("Horiz Groups"),
808 ** Child, RectangleObject, TextFrame , End,
809 ** Child, RectangleObject, StringFrame, End,
810 ** Child, RectangleObject, ButtonFrame, End,
811 ** Child, RectangleObject, ListFrame , End,
812 ** End,
814 ***************************************************************************/
816 #define NoFrame MUIA_Frame, MUIV_Frame_None
817 #define ButtonFrame MUIA_Frame, MUIV_Frame_Button
818 #define ImageButtonFrame MUIA_Frame, MUIV_Frame_ImageButton
819 #define TextFrame MUIA_Frame, MUIV_Frame_Text
820 #define StringFrame MUIA_Frame, MUIV_Frame_String
821 #define ReadListFrame MUIA_Frame, MUIV_Frame_ReadList
822 #define InputListFrame MUIA_Frame, MUIV_Frame_InputList
823 #define PropFrame MUIA_Frame, MUIV_Frame_Prop
824 #define SliderFrame MUIA_Frame, MUIV_Frame_Slider
825 #define GaugeFrame MUIA_Frame, MUIV_Frame_Gauge
826 #define VirtualFrame MUIA_Frame, MUIV_Frame_Virtual
827 #define GroupFrame MUIA_Frame, MUIV_Frame_Group
828 #define GroupFrameT(s) MUIA_Frame, MUIV_Frame_Group, MUIA_FrameTitle, s, MUIA_Background, MUII_GroupBack
832 /***************************************************************************
834 ** Spacing Macros
835 ** --------------
837 ***************************************************************************/
839 #define HVSpace MUI_NewObject(MUIC_Rectangle,TAG_DONE)
840 #define HSpace(x) MUI_MakeObject(MUIO_HSpace,(x))
841 #define VSpace(x) MUI_MakeObject(MUIO_VSpace,(x))
842 #define HCenter(obj) (HGroup, GroupSpacing(0), Child, HSpace(0), Child, (obj), Child, HSpace(0), End)
843 #define VCenter(obj) (VGroup, GroupSpacing(0), Child, VSpace(0), Child, (obj), Child, VSpace(0), End)
844 #define InnerSpacing(h,v) MUIA_InnerLeft,(h),MUIA_InnerRight,(h),MUIA_InnerTop,(v),MUIA_InnerBottom,(v)
845 #define GroupSpacing(x) MUIA_Group_Spacing,(x)
849 #ifdef MUI_OBSOLETE
851 /***************************************************************************
853 ** String-Object
854 ** -------------
856 ** The following macro creates a simple string gadget.
858 ***************************************************************************/
860 #define String(contents,maxlen)\
861 StringObject,\
862 StringFrame,\
863 MUIA_String_MaxLen , maxlen,\
864 MUIA_String_Contents, contents,\
867 #define KeyString(contents,maxlen,controlchar)\
868 StringObject,\
869 StringFrame,\
870 MUIA_ControlChar , controlchar,\
871 MUIA_String_MaxLen , maxlen,\
872 MUIA_String_Contents, contents,\
875 #endif
879 #ifdef MUI_OBSOLETE
881 /***************************************************************************
883 ** CheckMark-Object
884 ** ----------------
886 ** The following macro creates a checkmark gadget.
888 ***************************************************************************/
890 #define CheckMark(selected)\
891 ImageObject,\
892 ImageButtonFrame,\
893 MUIA_InputMode , MUIV_InputMode_Toggle,\
894 MUIA_Image_Spec , MUII_CheckMark,\
895 MUIA_Image_FreeVert , TRUE,\
896 MUIA_Selected , selected,\
897 MUIA_Background , MUII_ButtonBack,\
898 MUIA_ShowSelState , FALSE,\
901 #define KeyCheckMark(selected,control)\
902 ImageObject,\
903 ImageButtonFrame,\
904 MUIA_InputMode , MUIV_InputMode_Toggle,\
905 MUIA_Image_Spec , MUII_CheckMark,\
906 MUIA_Image_FreeVert , TRUE,\
907 MUIA_Selected , selected,\
908 MUIA_Background , MUII_ButtonBack,\
909 MUIA_ShowSelState , FALSE,\
910 MUIA_ControlChar , control,\
913 #endif
916 /***************************************************************************
918 ** Button-Objects
919 ** --------------
921 ** Note: Use small letters for KeyButtons, e.g.
922 ** KeyButton("Cancel",'c') and not KeyButton("Cancel",'C') !!
924 ***************************************************************************/
926 #define SimpleButton(label) MUI_MakeObject(MUIO_Button, (ULONG)(label))
928 #ifdef MUI_OBSOLETE
930 #define KeyButton(name,key)\
931 TextObject,\
932 ButtonFrame,\
933 MUIA_Font, MUIV_Font_Button,\
934 MUIA_Text_Contents, name,\
935 MUIA_Text_PreParse, "\33c",\
936 MUIA_Text_HiChar , key,\
937 MUIA_ControlChar , key,\
938 MUIA_InputMode , MUIV_InputMode_RelVerify,\
939 MUIA_Background , MUII_ButtonBack,\
942 #endif
945 #ifdef MUI_OBSOLETE
947 /***************************************************************************
949 ** Cycle-Object
950 ** ------------
952 ***************************************************************************/
954 #define Cycle(entries) CycleObject, MUIA_Font, MUIV_Font_Button, MUIA_Cycle_Entries, entries, End
955 #define KeyCycle(entries,key) CycleObject, MUIA_Font, MUIV_Font_Button, MUIA_Cycle_Entries, entries, MUIA_ControlChar, key, End
959 /***************************************************************************
961 ** Radio-Object
962 ** ------------
964 ***************************************************************************/
966 #define Radio(name,array)\
967 RadioObject,\
968 GroupFrameT(name),\
969 MUIA_Radio_Entries,array,\
972 #define KeyRadio(name,array,key)\
973 RadioObject,\
974 GroupFrameT(name),\
975 MUIA_Radio_Entries,array,\
976 MUIA_ControlChar, key,\
981 /***************************************************************************
983 ** Slider-Object
984 ** -------------
986 ***************************************************************************/
989 #define Slider(min,max,level)\
990 SliderObject,\
991 MUIA_Numeric_Min , min,\
992 MUIA_Numeric_Max , max,\
993 MUIA_Numeric_Value, level,\
996 #define KeySlider(min,max,level,key)\
997 SliderObject,\
998 MUIA_Numeric_Min , min,\
999 MUIA_Numeric_Max , max,\
1000 MUIA_Numeric_Value, level,\
1001 MUIA_ControlChar , key,\
1004 #endif
1008 /***************************************************************************
1010 ** Button to be used for popup objects
1012 ***************************************************************************/
1014 #define PopButton(img) MUI_MakeObject(MUIO_PopButton, (ULONG)(img))
1018 /***************************************************************************
1020 ** Labeling Objects
1021 ** ----------------
1023 ** Labeling objects, e.g. a group of string gadgets,
1025 ** Small: |foo |
1026 ** Normal: |bar |
1027 ** Big: |foobar|
1028 ** Huge: |barfoo|
1030 ** is done using a 2 column group:
1032 ** ColGroup(2),
1033 ** Child, Label2("Small:" ),
1034 ** Child, StringObject, End,
1035 ** Child, Label2("Normal:"),
1036 ** Child, StringObject, End,
1037 ** Child, Label2("Big:" ),
1038 ** Child, StringObject, End,
1039 ** Child, Label2("Huge:" ),
1040 ** Child, StringObject, End,
1041 ** End,
1043 ** Note that we have three versions of the label macro, depending on
1044 ** the frame type of the right hand object:
1046 ** Label1(): For use with standard frames (e.g. checkmarks).
1047 ** Label2(): For use with double high frames (e.g. string gadgets).
1048 ** Label() : For use with objects without a frame.
1050 ** These macros ensure that your label will look fine even if the
1051 ** user of your application configured some strange spacing values.
1052 ** If you want to use your own labeling, you'll have to pay attention
1053 ** on this topic yourself.
1055 ***************************************************************************/
1057 #define Label(label) MUI_MakeObject(MUIO_Label, (ULONG)(label), 0)
1058 #define Label1(label) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_SingleFrame)
1059 #define Label2(label) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_DoubleFrame)
1060 #define LLabel(label) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_LeftAligned)
1061 #define LLabel1(label) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_LeftAligned|MUIO_Label_SingleFrame)
1062 #define LLabel2(label) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_LeftAligned|MUIO_Label_DoubleFrame)
1063 #define CLabel(label) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_Centered)
1064 #define CLabel1(label) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_Centered|MUIO_Label_SingleFrame)
1065 #define CLabel2(label) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_Centered|MUIO_Label_DoubleFrame)
1067 #define FreeLabel(label) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_FreeVert)
1068 #define FreeLabel1(label) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_FreeVert|MUIO_Label_SingleFrame)
1069 #define FreeLabel2(label) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_FreeVert|MUIO_Label_DoubleFrame)
1070 #define FreeLLabel(label) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_FreeVert|MUIO_Label_LeftAligned)
1071 #define FreeLLabel1(label) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_FreeVert|MUIO_Label_LeftAligned|MUIO_Label_SingleFrame)
1072 #define FreeLLabel2(label) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_FreeVert|MUIO_Label_LeftAligned|MUIO_Label_DoubleFrame)
1073 #define FreeCLabel(label) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_FreeVert|MUIO_Label_Centered)
1074 #define FreeCLabel1(label) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_FreeVert|MUIO_Label_Centered|MUIO_Label_SingleFrame)
1075 #define FreeCLabel2(label) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_FreeVert|MUIO_Label_Centered|MUIO_Label_DoubleFrame)
1077 #define KeyLabel(label,key) MUI_MakeObject(MUIO_Label, (ULONG)(label), (key))
1078 #define KeyLabel1(label,key) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_SingleFrame|(key))
1079 #define KeyLabel2(label,key) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_DoubleFrame|(key))
1080 #define KeyLLabel(label,key) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_LeftAligned|(key))
1081 #define KeyLLabel1(label,key) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_LeftAligned|MUIO_Label_SingleFrame|(key))
1082 #define KeyLLabel2(label,key) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_LeftAligned|MUIO_Label_DoubleFrame|(key))
1083 #define KeyCLabel(label,key) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_Centered|(key))
1084 #define KeyCLabel1(label,key) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_Centered|MUIO_Label_SingleFrame|(key))
1085 #define KeyCLabel2(label,key) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_Centered|MUIO_Label_DoubleFrame|(key))
1087 #define FreeKeyLabel(label,key) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_FreeVert|(key))
1088 #define FreeKeyLabel1(label,key) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_FreeVert|MUIO_Label_SingleFrame|(key))
1089 #define FreeKeyLabel2(label,key) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_FreeVert|MUIO_Label_DoubleFrame|(key))
1090 #define FreeKeyLLabel(label,key) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_FreeVert|MUIO_Label_LeftAligned|(key))
1091 #define FreeKeyLLabel1(label,key) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_FreeVert|MUIO_Label_LeftAligned|MUIO_Label_SingleFrame|(key))
1092 #define FreeKeyLLabel2(label,key) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_FreeVert|MUIO_Label_LeftAligned|MUIO_Label_DoubleFrame|(key))
1093 #define FreeKeyCLabel(label,key) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_FreeVert|MUIO_Label_Centered|(key))
1094 #define FreeKeyCLabel1(label,key) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_FreeVert|MUIO_Label_Centered|MUIO_Label_SingleFrame|(key))
1095 #define FreeKeyCLabel2(label,key) MUI_MakeObject(MUIO_Label, (ULONG)(label), MUIO_Label_FreeVert|MUIO_Label_Centered|MUIO_Label_DoubleFrame|(key))
1099 /***************************************************************************
1101 ** Controlling Objects
1102 ** -------------------
1104 ** set() and get() are two short stubs for BOOPSI GetAttr() and SetAttrs()
1105 ** calls:
1107 ** {
1108 ** char *x;
1110 ** set(obj,MUIA_String_Contents,"foobar");
1111 ** get(obj,MUIA_String_Contents,&x);
1113 ** printf("gadget contains '%s'\n",x);
1114 ** }
1116 ** nnset() sets an attribute without triggering a possible notification.
1118 ***************************************************************************/
1120 #ifndef __cplusplus
1122 #define get(obj,attr,store) GetAttr((attr), (obj), (ULONG *)(void *)(store))
1123 #define set(obj,attr,value) SetAttrs((obj), (attr), (value), TAG_DONE)
1124 #define nnset(obj,attr,value) SetAttrs((obj), MUIA_NoNotify, TRUE, (attr), (value), TAG_DONE)
1126 #define setmutex(obj,n) set((obj), MUIA_Radio_Active, (n))
1127 #define setcycle(obj,n) set((obj), MUIA_Cycle_Active, (n))
1128 #define setstring(obj,s) set((obj), MUIA_String_Contents, (s))
1129 #define setcheckmark(obj,b) set((obj), MUIA_Selected, (b))
1130 #define setslider(obj,l) set((obj), MUIA_Numeric_Value, (l))
1132 #endif
1135 #endif /* MUI_NOSHORTCUTS */
1138 /***************************************************************************
1140 ** For Boopsi Image Implementors Only:
1142 ** If MUI is using a boopsi image object, it will send a special method
1143 ** immediately after object creation. This method has a parameter structure
1144 ** where the boopsi can fill in its minimum and maximum size and learn if
1145 ** its used in a horizontal or vertical context.
1147 ** The boopsi image must use the method id (MUIM_BoopsiQuery) as return
1148 ** value. That's how MUI sees that the method is implemented.
1150 ** Note: MUI does not depend on this method. If the boopsi image doesn't
1151 ** implement it, minimum size will be 0 and maximum size unlimited.
1153 ***************************************************************************/
1155 #define MUIM_BoopsiQuery 0x80427157 /* this is send to the boopsi and */
1156 /* must be used as return value */
1158 struct MUI_BoopsiQuery /* parameter structure */
1160 ULONG mbq_MethodID; /* always MUIM_BoopsiQuery */
1162 struct Screen *mbq_Screen; /* obsolete, use mbq_RenderInfo */
1163 ULONG mbq_Flags; /* read only, see below */
1165 LONG mbq_MinWidth ; /* write only, fill in min width */
1166 LONG mbq_MinHeight; /* write only, fill in min height */
1167 LONG mbq_MaxWidth ; /* write only, fill in max width */
1168 LONG mbq_MaxHeight; /* write only, fill in max height */
1169 LONG mbq_DefWidth ; /* write only, fill in def width */
1170 LONG mbq_DefHeight; /* write only, fill in def height */
1172 struct MUI_RenderInfo *mbq_RenderInfo; /* read only, display context */
1174 /* may grow in future ... */
1177 #define MUIP_BoopsiQuery MUI_BoopsiQuery /* old structure name */
1179 #define MBQF_HORIZ (1<<0) /* object used in a horizontal */
1180 /* context (else vertical) */
1182 #define MBQ_MUI_MAXMAX (10000) /* use this for unlimited MaxWidth/Height */
1184 #define IDCMP_MOUSEOBJECT 0x40000000 /* special idcmp message created by MUI */
1187 /*******************************************/
1188 /* Begin of automatic header file creation */
1189 /*******************************************/
1194 /****************************************************************************/
1195 /** Notify **/
1196 /****************************************************************************/
1198 #ifdef _DCC
1199 extern char MUIC_Notify[];
1200 #else
1201 #define MUIC_Notify "Notify.mui"
1202 #endif
1204 /* Methods */
1206 #define MUIM_CallHook 0x8042b96b /* V4 */
1207 #define MUIM_Export 0x80420f1c /* V12 */
1208 #define MUIM_FindUData 0x8042c196 /* V8 */
1209 #define MUIM_GetConfigItem 0x80423edb /* V11 */
1210 #define MUIM_GetUData 0x8042ed0c /* V8 */
1211 #define MUIM_Import 0x8042d012 /* V12 */
1212 #define MUIM_KillNotify 0x8042d240 /* V4 */
1213 #define MUIM_KillNotifyObj 0x8042b145 /* V16 */
1214 #define MUIM_MultiSet 0x8042d356 /* V7 */
1215 #define MUIM_NoNotifySet 0x8042216f /* V9 */
1216 #define MUIM_Notify 0x8042c9cb /* V4 */
1217 #define MUIM_Set 0x8042549a /* V4 */
1218 #define MUIM_SetAsString 0x80422590 /* V4 */
1219 #define MUIM_SetUData 0x8042c920 /* V8 */
1220 #define MUIM_SetUDataOnce 0x8042ca19 /* V11 */
1221 #define MUIM_WriteLong 0x80428d86 /* V6 */
1222 #define MUIM_WriteString 0x80424bf4 /* V6 */
1223 struct MUIP_CallHook { ULONG MethodID; struct Hook *Hook; ULONG param1; /* ... */ };
1224 struct MUIP_Export { ULONG MethodID; Object *dataspace; };
1225 struct MUIP_FindUData { ULONG MethodID; ULONG udata; };
1226 struct MUIP_GetConfigItem { ULONG MethodID; ULONG id; ULONG *storage; };
1227 struct MUIP_GetUData { ULONG MethodID; ULONG udata; ULONG attr; ULONG *storage; };
1228 struct MUIP_Import { ULONG MethodID; Object *dataspace; };
1229 struct MUIP_KillNotify { ULONG MethodID; ULONG TrigAttr; };
1230 struct MUIP_KillNotifyObj { ULONG MethodID; ULONG TrigAttr; Object *dest; };
1231 struct MUIP_MultiSet { ULONG MethodID; ULONG attr; ULONG val; APTR obj; /* ... */ };
1232 struct MUIP_NoNotifySet { ULONG MethodID; ULONG attr; char *format; ULONG val; /* ... */ };
1233 struct MUIP_Notify { ULONG MethodID; ULONG TrigAttr; ULONG TrigVal; APTR DestObj; ULONG FollowParams; /* ... */ };
1234 struct MUIP_Set { ULONG MethodID; ULONG attr; ULONG val; };
1235 struct MUIP_SetAsString { ULONG MethodID; ULONG attr; char *format; ULONG val; /* ... */ };
1236 struct MUIP_SetUData { ULONG MethodID; ULONG udata; ULONG attr; ULONG val; };
1237 struct MUIP_SetUDataOnce { ULONG MethodID; ULONG udata; ULONG attr; ULONG val; };
1238 struct MUIP_WriteLong { ULONG MethodID; ULONG val; ULONG *memory; };
1239 struct MUIP_WriteString { ULONG MethodID; char *str; char *memory; };
1241 /* Attributes */
1243 #define MUIA_ApplicationObject 0x8042d3ee /* V4 ..g Object * */
1244 #define MUIA_AppMessage 0x80421955 /* V5 ..g struct AppMessage * */
1245 #define MUIA_HelpLine 0x8042a825 /* V4 isg LONG */
1246 #define MUIA_HelpNode 0x80420b85 /* V4 isg STRPTR */
1247 #define MUIA_NoNotify 0x804237f9 /* V7 .s. BOOL */
1248 #define MUIA_ObjectID 0x8042d76e /* V11 isg ULONG */
1249 #define MUIA_Parent 0x8042e35f /* V11 ..g Object * */
1250 #define MUIA_Revision 0x80427eaa /* V4 ..g LONG */
1251 #define MUIA_UserData 0x80420313 /* V4 isg ULONG */
1252 #define MUIA_Version 0x80422301 /* V4 ..g LONG */
1256 /****************************************************************************/
1257 /** Family **/
1258 /****************************************************************************/
1260 #ifdef _DCC
1261 extern char MUIC_Family[];
1262 #else
1263 #define MUIC_Family "Family.mui"
1264 #endif
1266 /* Methods */
1268 #define MUIM_Family_AddHead 0x8042e200 /* V8 */
1269 #define MUIM_Family_AddTail 0x8042d752 /* V8 */
1270 #define MUIM_Family_Insert 0x80424d34 /* V8 */
1271 #define MUIM_Family_Remove 0x8042f8a9 /* V8 */
1272 #define MUIM_Family_Sort 0x80421c49 /* V8 */
1273 #define MUIM_Family_Transfer 0x8042c14a /* V8 */
1274 struct MUIP_Family_AddHead { ULONG MethodID; Object *obj; };
1275 struct MUIP_Family_AddTail { ULONG MethodID; Object *obj; };
1276 struct MUIP_Family_Insert { ULONG MethodID; Object *obj; Object *pred; };
1277 struct MUIP_Family_Remove { ULONG MethodID; Object *obj; };
1278 struct MUIP_Family_Sort { ULONG MethodID; Object *obj[1]; };
1279 struct MUIP_Family_Transfer { ULONG MethodID; Object *family; };
1281 /* Attributes */
1283 #define MUIA_Family_Child 0x8042c696 /* V8 i.. Object * */
1284 #define MUIA_Family_List 0x80424b9e /* V8 ..g struct MinList * */
1288 /****************************************************************************/
1289 /** Menustrip **/
1290 /****************************************************************************/
1292 #ifdef _DCC
1293 extern char MUIC_Menustrip[];
1294 #else
1295 #define MUIC_Menustrip "Menustrip.mui"
1296 #endif
1298 /* Methods */
1300 #define MUIM_Menustrip_ExitChange 0x8042ce4d /* V20 */
1301 #define MUIM_Menustrip_InitChange 0x8042dcd9 /* V20 */
1302 struct MUIP_Menustrip_ExitChange { ULONG MethodID; };
1303 struct MUIP_Menustrip_InitChange { ULONG MethodID; };
1305 /* Attributes */
1307 #define MUIA_Menustrip_Enabled 0x8042815b /* V8 isg BOOL */
1311 /****************************************************************************/
1312 /** Menu **/
1313 /****************************************************************************/
1315 #ifdef _DCC
1316 extern char MUIC_Menu[];
1317 #else
1318 #define MUIC_Menu "Menu.mui"
1319 #endif
1321 /* Attributes */
1323 #define MUIA_Menu_Enabled 0x8042ed48 /* V8 isg BOOL */
1324 #define MUIA_Menu_Title 0x8042a0e3 /* V8 isg STRPTR */
1328 /****************************************************************************/
1329 /** Menuitem **/
1330 /****************************************************************************/
1332 #ifdef _DCC
1333 extern char MUIC_Menuitem[];
1334 #else
1335 #define MUIC_Menuitem "Menuitem.mui"
1336 #endif
1338 /* Methods */
1340 /* Attributes */
1342 #define MUIA_Menuitem_Checked 0x8042562a /* V8 isg BOOL */
1343 #define MUIA_Menuitem_Checkit 0x80425ace /* V8 isg BOOL */
1344 #define MUIA_Menuitem_CommandString 0x8042b9cc /* V16 isg BOOL */
1345 #define MUIA_Menuitem_Enabled 0x8042ae0f /* V8 isg BOOL */
1346 #define MUIA_Menuitem_Exclude 0x80420bc6 /* V8 isg LONG */
1347 #define MUIA_Menuitem_Shortcut 0x80422030 /* V8 isg STRPTR */
1348 #define MUIA_Menuitem_Title 0x804218be /* V8 isg STRPTR */
1349 #define MUIA_Menuitem_Toggle 0x80424d5c /* V8 isg BOOL */
1350 #define MUIA_Menuitem_Trigger 0x80426f32 /* V8 ..g struct MenuItem * */
1352 #define MUIV_Menuitem_Shortcut_Check -1
1355 /****************************************************************************/
1356 /** Application **/
1357 /****************************************************************************/
1359 #ifdef _DCC
1360 extern char MUIC_Application[];
1361 #else
1362 #define MUIC_Application "Application.mui"
1363 #endif
1365 /* Methods */
1367 #define MUIM_Application_AboutMUI 0x8042d21d /* V14 */
1368 #define MUIM_Application_AddInputHandler 0x8042f099 /* V11 */
1369 #define MUIM_Application_CheckRefresh 0x80424d68 /* V11 */
1370 #ifdef MUI_OBSOLETE
1371 #define MUIM_Application_GetMenuCheck 0x8042c0a7 /* V4 */
1372 #endif /* MUI_OBSOLETE */
1373 #ifdef MUI_OBSOLETE
1374 #define MUIM_Application_GetMenuState 0x8042a58f /* V4 */
1375 #endif /* MUI_OBSOLETE */
1376 #ifdef MUI_OBSOLETE
1377 #define MUIM_Application_Input 0x8042d0f5 /* V4 */
1378 #endif /* MUI_OBSOLETE */
1379 #define MUIM_Application_InputBuffered 0x80427e59 /* V4 */
1380 #define MUIM_Application_Load 0x8042f90d /* V4 */
1381 #define MUIM_Application_NewInput 0x80423ba6 /* V11 */
1382 #define MUIM_Application_OpenConfigWindow 0x804299ba /* V11 */
1383 #define MUIM_Application_PushMethod 0x80429ef8 /* V4 */
1384 #define MUIM_Application_RemInputHandler 0x8042e7af /* V11 */
1385 #define MUIM_Application_ReturnID 0x804276ef /* V4 */
1386 #define MUIM_Application_Save 0x804227ef /* V4 */
1387 #define MUIM_Application_SetConfigItem 0x80424a80 /* V11 */
1388 #ifdef MUI_OBSOLETE
1389 #define MUIM_Application_SetMenuCheck 0x8042a707 /* V4 */
1390 #endif /* MUI_OBSOLETE */
1391 #ifdef MUI_OBSOLETE
1392 #define MUIM_Application_SetMenuState 0x80428bef /* V4 */
1393 #endif /* MUI_OBSOLETE */
1394 #define MUIM_Application_ShowHelp 0x80426479 /* V4 */
1395 struct MUIP_Application_AboutMUI { ULONG MethodID; Object *refwindow; };
1396 struct MUIP_Application_AddInputHandler { ULONG MethodID; struct MUI_InputHandlerNode *ihnode; };
1397 struct MUIP_Application_CheckRefresh { ULONG MethodID; };
1398 struct MUIP_Application_GetMenuCheck { ULONG MethodID; ULONG MenuID; };
1399 struct MUIP_Application_GetMenuState { ULONG MethodID; ULONG MenuID; };
1400 struct MUIP_Application_Input { ULONG MethodID; ULONG *signal; };
1401 struct MUIP_Application_InputBuffered { ULONG MethodID; };
1402 struct MUIP_Application_Load { ULONG MethodID; STRPTR name; };
1403 struct MUIP_Application_NewInput { ULONG MethodID; ULONG *signal; };
1404 struct MUIP_Application_OpenConfigWindow { ULONG MethodID; ULONG flags; STRPTR classid; };
1405 struct MUIP_Application_PushMethod { ULONG MethodID; Object *dest; LONG count; /* ... */ };
1406 struct MUIP_Application_RemInputHandler { ULONG MethodID; struct MUI_InputHandlerNode *ihnode; };
1407 struct MUIP_Application_ReturnID { ULONG MethodID; ULONG retid; };
1408 struct MUIP_Application_Save { ULONG MethodID; STRPTR name; };
1409 struct MUIP_Application_SetConfigItem { ULONG MethodID; ULONG item; APTR data; };
1410 struct MUIP_Application_SetMenuCheck { ULONG MethodID; ULONG MenuID; LONG stat; };
1411 struct MUIP_Application_SetMenuState { ULONG MethodID; ULONG MenuID; LONG stat; };
1412 struct MUIP_Application_ShowHelp { ULONG MethodID; Object *window; char *name; char *node; LONG line; };
1414 /* Attributes */
1416 #define MUIA_Application_Active 0x804260ab /* V4 isg BOOL */
1417 #define MUIA_Application_Author 0x80424842 /* V4 i.g STRPTR */
1418 #define MUIA_Application_Base 0x8042e07a /* V4 i.g STRPTR */
1419 #define MUIA_Application_Broker 0x8042dbce /* V4 ..g Broker * */
1420 #define MUIA_Application_BrokerHook 0x80428f4b /* V4 isg struct Hook * */
1421 #define MUIA_Application_BrokerPort 0x8042e0ad /* V6 ..g struct MsgPort * */
1422 #define MUIA_Application_BrokerPri 0x8042c8d0 /* V6 i.g LONG */
1423 #define MUIA_Application_Commands 0x80428648 /* V4 isg struct MUI_Command * */
1424 #define MUIA_Application_Copyright 0x8042ef4d /* V4 i.g STRPTR */
1425 #define MUIA_Application_Description 0x80421fc6 /* V4 i.g STRPTR */
1426 #define MUIA_Application_DiskObject 0x804235cb /* V4 isg struct DiskObject * */
1427 #define MUIA_Application_DoubleStart 0x80423bc6 /* V4 ..g BOOL */
1428 #define MUIA_Application_DropObject 0x80421266 /* V5 is. Object * */
1429 #define MUIA_Application_ForceQuit 0x804257df /* V8 ..g BOOL */
1430 #define MUIA_Application_HelpFile 0x804293f4 /* V8 isg STRPTR */
1431 #define MUIA_Application_Iconified 0x8042a07f /* V4 .sg BOOL */
1432 #ifdef MUI_OBSOLETE
1433 #define MUIA_Application_Menu 0x80420e1f /* V4 i.g struct NewMenu * */
1434 #endif /* MUI_OBSOLETE */
1435 #define MUIA_Application_MenuAction 0x80428961 /* V4 ..g ULONG */
1436 #define MUIA_Application_MenuHelp 0x8042540b /* V4 ..g ULONG */
1437 #define MUIA_Application_Menustrip 0x804252d9 /* V8 i.. Object * */
1438 #define MUIA_Application_RexxHook 0x80427c42 /* V7 isg struct Hook * */
1439 #define MUIA_Application_RexxMsg 0x8042fd88 /* V4 ..g struct RxMsg * */
1440 #define MUIA_Application_RexxString 0x8042d711 /* V4 .s. STRPTR */
1441 #define MUIA_Application_SingleTask 0x8042a2c8 /* V4 i.. BOOL */
1442 #define MUIA_Application_Sleep 0x80425711 /* V4 .s. BOOL */
1443 #define MUIA_Application_Title 0x804281b8 /* V4 i.g STRPTR */
1444 #define MUIA_Application_UseCommodities 0x80425ee5 /* V10 i.. BOOL */
1445 #define MUIA_Application_UsedClasses 0x8042e9a7 /* V20 isg STRPTR * */
1446 #define MUIA_Application_UseRexx 0x80422387 /* V10 i.. BOOL */
1447 #define MUIA_Application_Version 0x8042b33f /* V4 i.g STRPTR */
1448 #define MUIA_Application_Window 0x8042bfe0 /* V4 i.. Object * */
1449 #define MUIA_Application_WindowList 0x80429abe /* V13 ..g struct List * */
1451 #define MUIV_Application_Package_NetConnect 0xa3ff7b49
1454 /****************************************************************************/
1455 /** Window **/
1456 /****************************************************************************/
1458 #ifdef _DCC
1459 extern char MUIC_Window[];
1460 #else
1461 #define MUIC_Window "Window.mui"
1462 #endif
1464 /* Methods */
1466 #define MUIM_Window_AddEventHandler 0x804203b7 /* V16 */
1467 #define MUIM_Window_Cleanup 0x8042ab26 /* V18 */
1468 #ifdef MUI_OBSOLETE
1469 #define MUIM_Window_GetMenuCheck 0x80420414 /* V4 */
1470 #endif /* MUI_OBSOLETE */
1471 #ifdef MUI_OBSOLETE
1472 #define MUIM_Window_GetMenuState 0x80420d2f /* V4 */
1473 #endif /* MUI_OBSOLETE */
1474 #define MUIM_Window_RemEventHandler 0x8042679e /* V16 */
1475 #define MUIM_Window_ScreenToBack 0x8042913d /* V4 */
1476 #define MUIM_Window_ScreenToFront 0x804227a4 /* V4 */
1477 #ifdef MUI_OBSOLETE
1478 #define MUIM_Window_SetCycleChain 0x80426510 /* V4 */
1479 #endif /* MUI_OBSOLETE */
1480 #ifdef MUI_OBSOLETE
1481 #define MUIM_Window_SetMenuCheck 0x80422243 /* V4 */
1482 #endif /* MUI_OBSOLETE */
1483 #ifdef MUI_OBSOLETE
1484 #define MUIM_Window_SetMenuState 0x80422b5e /* V4 */
1485 #endif /* MUI_OBSOLETE */
1486 #define MUIM_Window_Setup 0x8042c34c /* V18 */
1487 #define MUIM_Window_Snapshot 0x8042945e /* V11 */
1488 #define MUIM_Window_ToBack 0x8042152e /* V4 */
1489 #define MUIM_Window_ToFront 0x8042554f /* V4 */
1490 struct MUIP_Window_AddEventHandler { ULONG MethodID; struct MUI_EventHandlerNode *ehnode; };
1491 struct MUIP_Window_Cleanup { ULONG MethodID; };
1492 struct MUIP_Window_GetMenuCheck { ULONG MethodID; ULONG MenuID; };
1493 struct MUIP_Window_GetMenuState { ULONG MethodID; ULONG MenuID; };
1494 struct MUIP_Window_RemEventHandler { ULONG MethodID; struct MUI_EventHandlerNode *ehnode; };
1495 struct MUIP_Window_ScreenToBack { ULONG MethodID; };
1496 struct MUIP_Window_ScreenToFront { ULONG MethodID; };
1497 struct MUIP_Window_SetCycleChain { ULONG MethodID; Object *obj[1]; };
1498 struct MUIP_Window_SetMenuCheck { ULONG MethodID; ULONG MenuID; LONG stat; };
1499 struct MUIP_Window_SetMenuState { ULONG MethodID; ULONG MenuID; LONG stat; };
1500 struct MUIP_Window_Setup { ULONG MethodID; };
1501 struct MUIP_Window_Snapshot { ULONG MethodID; LONG flags; };
1502 struct MUIP_Window_ToBack { ULONG MethodID; };
1503 struct MUIP_Window_ToFront { ULONG MethodID; };
1505 /* Attributes */
1507 #define MUIA_Window_Activate 0x80428d2f /* V4 isg BOOL */
1508 #define MUIA_Window_ActiveObject 0x80427925 /* V4 .sg Object * */
1509 #define MUIA_Window_AltHeight 0x8042cce3 /* V4 i.g LONG */
1510 #define MUIA_Window_AltLeftEdge 0x80422d65 /* V4 i.g LONG */
1511 #define MUIA_Window_AltTopEdge 0x8042e99b /* V4 i.g LONG */
1512 #define MUIA_Window_AltWidth 0x804260f4 /* V4 i.g LONG */
1513 #define MUIA_Window_AppWindow 0x804280cf /* V5 i.. BOOL */
1514 #define MUIA_Window_Backdrop 0x8042c0bb /* V4 i.. BOOL */
1515 #define MUIA_Window_BackfillHook 0x80428863 /* V20 i.. struct Hook * */
1516 #define MUIA_Window_Borderless 0x80429b79 /* V4 i.. BOOL */
1517 #define MUIA_Window_CloseGadget 0x8042a110 /* V4 i.. BOOL */
1518 #define MUIA_Window_CloseRequest 0x8042e86e /* V4 ..g BOOL */
1519 #define MUIA_Window_DefaultObject 0x804294d7 /* V4 isg Object * */
1520 #define MUIA_Window_DepthGadget 0x80421923 /* V4 i.. BOOL */
1521 #define MUIA_Window_DisableKeys 0x80424c36 /* V15 isg ULONG */
1522 #define MUIA_Window_DragBar 0x8042045d /* V4 i.. BOOL */
1523 #define MUIA_Window_FancyDrawing 0x8042bd0e /* V8 isg BOOL */
1524 #define MUIA_Window_Height 0x80425846 /* V4 i.g LONG */
1525 #define MUIA_Window_ID 0x804201bd /* V4 isg ULONG */
1526 #define MUIA_Window_InputEvent 0x804247d8 /* V4 ..g struct InputEvent * */
1527 #define MUIA_Window_IsSubWindow 0x8042b5aa /* V4 isg BOOL */
1528 #define MUIA_Window_LeftEdge 0x80426c65 /* V4 i.g LONG */
1529 #ifdef MUI_OBSOLETE
1530 #define MUIA_Window_Menu 0x8042db94 /* V4 i.. struct NewMenu * */
1531 #endif /* MUI_OBSOLETE */
1532 #define MUIA_Window_MenuAction 0x80427521 /* V8 isg ULONG */
1533 #define MUIA_Window_Menustrip 0x8042855e /* V8 i.g Object * */
1534 #define MUIA_Window_MouseObject 0x8042bf9b /* V10 ..g Object * */
1535 #define MUIA_Window_NeedsMouseObject 0x8042372a /* V10 i.. BOOL */
1536 #define MUIA_Window_NoMenus 0x80429df5 /* V4 is. BOOL */
1537 #define MUIA_Window_Open 0x80428aa0 /* V4 .sg BOOL */
1538 #define MUIA_Window_PublicScreen 0x804278e4 /* V6 isg STRPTR */
1539 #define MUIA_Window_RefWindow 0x804201f4 /* V4 is. Object * */
1540 #define MUIA_Window_RootObject 0x8042cba5 /* V4 isg Object * */
1541 #define MUIA_Window_Screen 0x8042df4f /* V4 isg struct Screen * */
1542 #define MUIA_Window_ScreenTitle 0x804234b0 /* V5 isg STRPTR */
1543 #define MUIA_Window_SizeGadget 0x8042e33d /* V4 i.. BOOL */
1544 #define MUIA_Window_SizeRight 0x80424780 /* V4 i.. BOOL */
1545 #define MUIA_Window_Sleep 0x8042e7db /* V4 .sg BOOL */
1546 #define MUIA_Window_Title 0x8042ad3d /* V4 isg STRPTR */
1547 #define MUIA_Window_TopEdge 0x80427c66 /* V4 i.g LONG */
1548 #define MUIA_Window_UseBottomBorderScroller 0x80424e79 /* V13 isg BOOL */
1549 #define MUIA_Window_UseLeftBorderScroller 0x8042433e /* V13 isg BOOL */
1550 #define MUIA_Window_UseRightBorderScroller 0x8042c05e /* V13 isg BOOL */
1551 #define MUIA_Window_Width 0x8042dcae /* V4 i.g LONG */
1552 #define MUIA_Window_Window 0x80426a42 /* V4 ..g struct Window * */
1554 #define MUIV_Window_ActiveObject_None 0
1555 #define MUIV_Window_ActiveObject_Next -1
1556 #define MUIV_Window_ActiveObject_Prev -2
1557 #define MUIV_Window_ActiveObject_Left -3
1558 #define MUIV_Window_ActiveObject_Right -4
1559 #define MUIV_Window_ActiveObject_Up -5
1560 #define MUIV_Window_ActiveObject_Down -6
1561 #define MUIV_Window_AltHeight_MinMax(p) (0-(p))
1562 #define MUIV_Window_AltHeight_Visible(p) (-100-(p))
1563 #define MUIV_Window_AltHeight_Screen(p) (-200-(p))
1564 #define MUIV_Window_AltHeight_Scaled -1000
1565 #define MUIV_Window_AltLeftEdge_Centered -1
1566 #define MUIV_Window_AltLeftEdge_Moused -2
1567 #define MUIV_Window_AltLeftEdge_NoChange -1000
1568 #define MUIV_Window_AltTopEdge_Centered -1
1569 #define MUIV_Window_AltTopEdge_Moused -2
1570 #define MUIV_Window_AltTopEdge_Delta(p) (-3-(p))
1571 #define MUIV_Window_AltTopEdge_NoChange -1000
1572 #define MUIV_Window_AltWidth_MinMax(p) (0-(p))
1573 #define MUIV_Window_AltWidth_Visible(p) (-100-(p))
1574 #define MUIV_Window_AltWidth_Screen(p) (-200-(p))
1575 #define MUIV_Window_AltWidth_Scaled -1000
1576 #define MUIV_Window_Height_MinMax(p) (0-(p))
1577 #define MUIV_Window_Height_Visible(p) (-100-(p))
1578 #define MUIV_Window_Height_Screen(p) (-200-(p))
1579 #define MUIV_Window_Height_Scaled -1000
1580 #define MUIV_Window_Height_Default -1001
1581 #define MUIV_Window_LeftEdge_Centered -1
1582 #define MUIV_Window_LeftEdge_Moused -2
1583 #define MUIV_Window_LeftEdge_Right(n) (-1000-(n))
1584 #ifdef MUI_OBSOLETE
1585 #define MUIV_Window_Menu_NoMenu -1
1586 #endif /* MUI_OBSOLETE */
1587 #define MUIV_Window_Timeout_Off 0
1588 #define MUIV_Window_Timeout_Restart -1
1589 #define MUIV_Window_TopEdge_Centered -1
1590 #define MUIV_Window_TopEdge_Moused -2
1591 #define MUIV_Window_TopEdge_Delta(p) (-3-(p))
1592 #define MUIV_Window_TopEdge_Bottom(n) (-1000-(n))
1593 #define MUIV_Window_TopMenuPos_Off 0
1594 #define MUIV_Window_TopMenuPos_Top 1
1595 #define MUIV_Window_TopMenuPos_Bottom 2
1596 #define MUIV_Window_TopMenuPos_Left 3
1597 #define MUIV_Window_TopMenuPos_Right 4
1598 #define MUIV_Window_Width_MinMax(p) (0-(p))
1599 #define MUIV_Window_Width_Visible(p) (-100-(p))
1600 #define MUIV_Window_Width_Screen(p) (-200-(p))
1601 #define MUIV_Window_Width_Scaled -1000
1602 #define MUIV_Window_Width_Default -1001
1605 /****************************************************************************/
1606 /** Aboutmui **/
1607 /****************************************************************************/
1609 #ifdef _DCC
1610 extern char MUIC_Aboutmui[];
1611 #else
1612 #define MUIC_Aboutmui "Aboutmui.mui"
1613 #endif
1615 /* Methods */
1617 /* Attributes */
1619 #define MUIA_Aboutmui_Application 0x80422523 /* V11 i.. Object * */
1623 /****************************************************************************/
1624 /** Area **/
1625 /****************************************************************************/
1627 #ifdef _DCC
1628 extern char MUIC_Area[];
1629 #else
1630 #define MUIC_Area "Area.mui"
1631 #endif
1633 /* Methods */
1635 #define MUIM_AskMinMax 0x80423874 /* Custom Class */ /* V4 */
1636 #define MUIM_CheckShortHelp 0x80423c79 /* V20 */
1637 #define MUIM_Cleanup 0x8042d985 /* Custom Class */ /* V4 */
1638 #define MUIM_ContextMenuBuild 0x80429d2e /* V11 */
1639 #define MUIM_ContextMenuChoice 0x80420f0e /* V11 */
1640 #define MUIM_CreateBubble 0x80421c41 /* V18 */
1641 #define MUIM_CreateShortHelp 0x80428e93 /* V11 */
1642 #define MUIM_DeleteBubble 0x804211af /* V18 */
1643 #define MUIM_DeleteShortHelp 0x8042d35a /* V11 */
1644 #define MUIM_DoDrag 0x804216bb /* V20 */
1645 #define MUIM_DragBegin 0x8042c03a /* V11 */
1646 #define MUIM_DragDrop 0x8042c555 /* V11 */
1647 #define MUIM_DragFinish 0x804251f0 /* V11 */
1648 #define MUIM_DragQuery 0x80420261 /* V11 */
1649 #define MUIM_DragReport 0x8042edad /* V11 */
1650 #define MUIM_Draw 0x80426f3f /* Custom Class */ /* V4 */
1651 #define MUIM_DrawBackground 0x804238ca /* V11 */
1652 #define MUIM_HandleEvent 0x80426d66 /* Custom Class */ /* V16 */
1653 #define MUIM_HandleInput 0x80422a1a /* Custom Class */ /* V4 */
1654 #define MUIM_Hide 0x8042f20f /* Custom Class */ /* V4 */
1655 #define MUIM_Setup 0x80428354 /* Custom Class */ /* V4 */
1656 #define MUIM_Show 0x8042cc84 /* Custom Class */ /* V4 */
1657 struct MUIP_AskMinMax { ULONG MethodID; struct MUI_MinMax *MinMaxInfo; }; /* Custom Class */
1658 struct MUIP_CheckShortHelp { ULONG MethodID; STRPTR help; LONG mx; LONG my; };
1659 struct MUIP_Cleanup { ULONG MethodID; }; /* Custom Class */
1660 struct MUIP_ContextMenuBuild { ULONG MethodID; LONG mx; LONG my; };
1661 struct MUIP_ContextMenuChoice { ULONG MethodID; Object *item; };
1662 struct MUIP_CreateBubble { ULONG MethodID; LONG x; LONG y; char *txt; ULONG flags; };
1663 struct MUIP_CreateShortHelp { ULONG MethodID; LONG mx; LONG my; };
1664 struct MUIP_DeleteBubble { ULONG MethodID; APTR bubble; };
1665 struct MUIP_DeleteShortHelp { ULONG MethodID; STRPTR help; };
1666 struct MUIP_DoDrag { ULONG MethodID; LONG touchx; LONG touchy; ULONG flags; };
1667 struct MUIP_DragBegin { ULONG MethodID; Object *obj; };
1668 struct MUIP_DragDrop { ULONG MethodID; Object *obj; LONG x; LONG y; };
1669 struct MUIP_DragFinish { ULONG MethodID; Object *obj; };
1670 struct MUIP_DragQuery { ULONG MethodID; Object *obj; };
1671 struct MUIP_DragReport { ULONG MethodID; Object *obj; LONG x; LONG y; LONG update; };
1672 struct MUIP_Draw { ULONG MethodID; ULONG flags; }; /* Custom Class */
1673 struct MUIP_DrawBackground { ULONG MethodID; LONG left; LONG top; LONG width; LONG height; LONG xoffset; LONG yoffset; LONG flags; };
1674 struct MUIP_HandleEvent { ULONG MethodID; struct IntuiMessage *imsg; LONG muikey; }; /* Custom Class */
1675 struct MUIP_HandleInput { ULONG MethodID; struct IntuiMessage *imsg; LONG muikey; }; /* Custom Class */
1676 struct MUIP_Hide { ULONG MethodID; }; /* Custom Class */
1677 struct MUIP_Setup { ULONG MethodID; struct MUI_RenderInfo *RenderInfo; }; /* Custom Class */
1678 struct MUIP_Show { ULONG MethodID; struct LongRect *clip; }; /* Custom Class */
1680 /* Attributes */
1682 #define MUIA_Background 0x8042545b /* V4 is. LONG */
1683 #define MUIA_BottomEdge 0x8042e552 /* V4 ..g LONG */
1684 #define MUIA_ContextMenu 0x8042b704 /* V11 isg Object * */
1685 #define MUIA_ContextMenuTrigger 0x8042a2c1 /* V11 ..g Object * */
1686 #define MUIA_ControlChar 0x8042120b /* V4 isg char */
1687 #define MUIA_CycleChain 0x80421ce7 /* V11 isg LONG */
1688 #define MUIA_Disabled 0x80423661 /* V4 isg BOOL */
1689 #define MUIA_Draggable 0x80420b6e /* V11 isg BOOL */
1690 #define MUIA_Dropable 0x8042fbce /* V11 isg BOOL */
1691 #ifdef MUI_OBSOLETE
1692 #define MUIA_ExportID 0x8042d76e /* V4 isg ULONG */
1693 #endif /* MUI_OBSOLETE */
1694 #define MUIA_FillArea 0x804294a3 /* V4 is. BOOL */
1695 #define MUIA_FixHeight 0x8042a92b /* V4 i.. LONG */
1696 #define MUIA_FixHeightTxt 0x804276f2 /* V4 i.. STRPTR */
1697 #define MUIA_FixWidth 0x8042a3f1 /* V4 i.. LONG */
1698 #define MUIA_FixWidthTxt 0x8042d044 /* V4 i.. STRPTR */
1699 #define MUIA_Font 0x8042be50 /* V4 i.g struct TextFont * */
1700 #define MUIA_Frame 0x8042ac64 /* V4 i.. LONG */
1701 #define MUIA_FrameDynamic 0x804223c9 /* V20 isg BOOL */
1702 #define MUIA_FramePhantomHoriz 0x8042ed76 /* V4 i.. BOOL */
1703 #define MUIA_FrameTitle 0x8042d1c7 /* V4 i.. STRPTR */
1704 #define MUIA_FrameVisible 0x80426498 /* V20 isg BOOL */
1705 #define MUIA_Height 0x80423237 /* V4 ..g LONG */
1706 #define MUIA_HorizDisappear 0x80429615 /* V11 isg LONG */
1707 #define MUIA_HorizWeight 0x80426db9 /* V4 isg WORD */
1708 #define MUIA_InnerBottom 0x8042f2c0 /* V4 i.g LONG */
1709 #define MUIA_InnerLeft 0x804228f8 /* V4 i.g LONG */
1710 #define MUIA_InnerRight 0x804297ff /* V4 i.g LONG */
1711 #define MUIA_InnerTop 0x80421eb6 /* V4 i.g LONG */
1712 #define MUIA_InputMode 0x8042fb04 /* V4 i.. LONG */
1713 #define MUIA_LeftEdge 0x8042bec6 /* V4 ..g LONG */
1714 #define MUIA_MaxHeight 0x804293e4 /* V11 i.. LONG */
1715 #define MUIA_MaxWidth 0x8042f112 /* V11 i.. LONG */
1716 #define MUIA_Pressed 0x80423535 /* V4 ..g BOOL */
1717 #define MUIA_RightEdge 0x8042ba82 /* V4 ..g LONG */
1718 #define MUIA_Selected 0x8042654b /* V4 isg BOOL */
1719 #define MUIA_ShortHelp 0x80428fe3 /* V11 isg STRPTR */
1720 #define MUIA_ShowMe 0x80429ba8 /* V4 isg BOOL */
1721 #define MUIA_ShowSelState 0x8042caac /* V4 i.. BOOL */
1722 #define MUIA_Timer 0x80426435 /* V4 ..g LONG */
1723 #define MUIA_TopEdge 0x8042509b /* V4 ..g LONG */
1724 #define MUIA_VertDisappear 0x8042d12f /* V11 isg LONG */
1725 #define MUIA_VertWeight 0x804298d0 /* V4 isg WORD */
1726 #define MUIA_Weight 0x80421d1f /* V4 i.. WORD */
1727 #define MUIA_Width 0x8042b59c /* V4 ..g LONG */
1728 #define MUIA_Window 0x80421591 /* V4 ..g struct Window * */
1729 #define MUIA_WindowObject 0x8042669e /* V4 ..g Object * */
1731 #define MUIV_Font_Inherit 0
1732 #define MUIV_Font_Normal -1
1733 #define MUIV_Font_List -2
1734 #define MUIV_Font_Tiny -3
1735 #define MUIV_Font_Fixed -4
1736 #define MUIV_Font_Title -5
1737 #define MUIV_Font_Big -6
1738 #define MUIV_Font_Button -7
1739 #define MUIV_Font_Slider -8
1740 #define MUIV_Font_Gauge -9
1741 #define MUIV_Font_Menudisplay -10
1742 #define MUIV_Frame_None 0
1743 #define MUIV_Frame_Button 1
1744 #define MUIV_Frame_ImageButton 2
1745 #define MUIV_Frame_Text 3
1746 #define MUIV_Frame_String 4
1747 #define MUIV_Frame_ReadList 5
1748 #define MUIV_Frame_InputList 6
1749 #define MUIV_Frame_Prop 7
1750 #define MUIV_Frame_Gauge 8
1751 #define MUIV_Frame_Group 9
1752 #define MUIV_Frame_PopUp 10
1753 #define MUIV_Frame_Virtual 11
1754 #define MUIV_Frame_Slider 12
1755 #define MUIV_Frame_SliderKnob 13
1756 #define MUIV_Frame_GaugeInner 14
1757 #define MUIV_Frame_Menudisplay 15
1758 #define MUIV_Frame_MenudisplayMenu 16
1759 #define MUIV_Frame_Count 17
1760 #define MUIV_InputMode_None 0
1761 #define MUIV_InputMode_RelVerify 1
1762 #define MUIV_InputMode_Immediate 2
1763 #define MUIV_InputMode_Toggle 3
1766 /****************************************************************************/
1767 /** Dtpic **/
1768 /****************************************************************************/
1770 #ifdef _DCC
1771 extern char MUIC_Dtpic[];
1772 #else
1773 #define MUIC_Dtpic "Dtpic.mui"
1774 #endif
1776 /* Attributes */
1779 /****************************************************************************/
1780 /** Rectangle **/
1781 /****************************************************************************/
1783 #ifdef _DCC
1784 extern char MUIC_Rectangle[];
1785 #else
1786 #define MUIC_Rectangle "Rectangle.mui"
1787 #endif
1789 /* Attributes */
1791 #define MUIA_Rectangle_BarTitle 0x80426689 /* V11 i.g STRPTR */
1792 #define MUIA_Rectangle_HBar 0x8042c943 /* V7 i.g BOOL */
1793 #define MUIA_Rectangle_VBar 0x80422204 /* V7 i.g BOOL */
1797 /****************************************************************************/
1798 /** Balance **/
1799 /****************************************************************************/
1801 #ifdef _DCC
1802 extern char MUIC_Balance[];
1803 #else
1804 #define MUIC_Balance "Balance.mui"
1805 #endif
1807 /* Attributes */
1809 #define MUIA_Balance_Quiet 0x80427486 /* V20 i.. LONG */
1813 /****************************************************************************/
1814 /** Image **/
1815 /****************************************************************************/
1817 #ifdef _DCC
1818 extern char MUIC_Image[];
1819 #else
1820 #define MUIC_Image "Image.mui"
1821 #endif
1823 /* Attributes */
1825 #define MUIA_Image_FontMatch 0x8042815d /* V4 i.. BOOL */
1826 #define MUIA_Image_FontMatchHeight 0x80429f26 /* V4 i.. BOOL */
1827 #define MUIA_Image_FontMatchWidth 0x804239bf /* V4 i.. BOOL */
1828 #define MUIA_Image_FreeHoriz 0x8042da84 /* V4 i.. BOOL */
1829 #define MUIA_Image_FreeVert 0x8042ea28 /* V4 i.. BOOL */
1830 #define MUIA_Image_OldImage 0x80424f3d /* V4 i.. struct Image * */
1831 #define MUIA_Image_Spec 0x804233d5 /* V4 i.. char * */
1832 #define MUIA_Image_State 0x8042a3ad /* V4 is. LONG */
1836 /****************************************************************************/
1837 /** Menubar **/
1838 /****************************************************************************/
1840 #ifdef _DCC
1841 extern char MUIC_Menubar[];
1842 #else
1843 #define MUIC_Menubar "Menubar.mui"
1844 #endif
1846 /* Methods */
1849 /* Attributes */
1854 /****************************************************************************/
1855 /** Bitmap **/
1856 /****************************************************************************/
1858 #ifdef _DCC
1859 extern char MUIC_Bitmap[];
1860 #else
1861 #define MUIC_Bitmap "Bitmap.mui"
1862 #endif
1864 /* Attributes */
1866 #define MUIA_Bitmap_Alpha 0x80423e71 /* V20 isg ULONG */
1867 #define MUIA_Bitmap_Bitmap 0x804279bd /* V8 isg struct BitMap * */
1868 #define MUIA_Bitmap_Height 0x80421560 /* V8 isg LONG */
1869 #define MUIA_Bitmap_MappingTable 0x8042e23d /* V8 isg UBYTE * */
1870 #define MUIA_Bitmap_Precision 0x80420c74 /* V11 isg LONG */
1871 #define MUIA_Bitmap_RemappedBitmap 0x80423a47 /* V11 ..g struct BitMap * */
1872 #define MUIA_Bitmap_SourceColors 0x80425360 /* V8 isg ULONG * */
1873 #define MUIA_Bitmap_Transparent 0x80422805 /* V8 isg LONG */
1874 #define MUIA_Bitmap_UseFriend 0x804239d8 /* V11 i.. BOOL */
1875 #define MUIA_Bitmap_Width 0x8042eb3a /* V8 isg LONG */
1879 /****************************************************************************/
1880 /** Bodychunk **/
1881 /****************************************************************************/
1883 #ifdef _DCC
1884 extern char MUIC_Bodychunk[];
1885 #else
1886 #define MUIC_Bodychunk "Bodychunk.mui"
1887 #endif
1889 /* Attributes */
1891 #define MUIA_Bodychunk_Body 0x8042ca67 /* V8 isg UBYTE * */
1892 #define MUIA_Bodychunk_Compression 0x8042de5f /* V8 isg UBYTE */
1893 #define MUIA_Bodychunk_Depth 0x8042c392 /* V8 isg LONG */
1894 #define MUIA_Bodychunk_Masking 0x80423b0e /* V8 isg UBYTE */
1898 /****************************************************************************/
1899 /** Text **/
1900 /****************************************************************************/
1902 #ifdef _DCC
1903 extern char MUIC_Text[];
1904 #else
1905 #define MUIC_Text "Text.mui"
1906 #endif
1908 /* Attributes */
1910 #define MUIA_Text_Contents 0x8042f8dc /* V4 isg STRPTR */
1911 #define MUIA_Text_ControlChar 0x8042e6d0 /* V20 isg char */
1912 #define MUIA_Text_Copy 0x80427727 /* V20 i.. BOOL */
1913 #define MUIA_Text_HiChar 0x804218ff /* V4 i.. char */
1914 #define MUIA_Text_PreParse 0x8042566d /* V4 isg STRPTR */
1915 #define MUIA_Text_SetMax 0x80424d0a /* V4 i.. BOOL */
1916 #define MUIA_Text_SetMin 0x80424e10 /* V4 i.. BOOL */
1917 #define MUIA_Text_SetVMax 0x80420d8b /* V11 i.. BOOL */
1921 /****************************************************************************/
1922 /** Gadget **/
1923 /****************************************************************************/
1925 #ifdef _DCC
1926 extern char MUIC_Gadget[];
1927 #else
1928 #define MUIC_Gadget "Gadget.mui"
1929 #endif
1931 /* Attributes */
1933 #define MUIA_Gadget_Gadget 0x8042ec1a /* V11 ..g struct Gadget * */
1937 /****************************************************************************/
1938 /** String **/
1939 /****************************************************************************/
1941 #ifdef _DCC
1942 extern char MUIC_String[];
1943 #else
1944 #define MUIC_String "String.mui"
1945 #endif
1947 /* Methods */
1950 /* Attributes */
1952 #define MUIA_String_Accept 0x8042e3e1 /* V4 isg STRPTR */
1953 #define MUIA_String_Acknowledge 0x8042026c /* V4 ..g STRPTR */
1954 #define MUIA_String_AdvanceOnCR 0x804226de /* V11 isg BOOL */
1955 #define MUIA_String_AttachedList 0x80420fd2 /* V4 isg Object * */
1956 #define MUIA_String_BufferPos 0x80428b6c /* V4 .sg LONG */
1957 #define MUIA_String_Contents 0x80428ffd /* V4 isg STRPTR */
1958 #define MUIA_String_DisplayPos 0x8042ccbf /* V4 .sg LONG */
1959 #define MUIA_String_EditHook 0x80424c33 /* V7 isg struct Hook * */
1960 #define MUIA_String_Format 0x80427484 /* V4 i.g LONG */
1961 #define MUIA_String_Integer 0x80426e8a /* V4 isg ULONG */
1962 #define MUIA_String_LonelyEditHook 0x80421569 /* V11 isg BOOL */
1963 #define MUIA_String_MaxLen 0x80424984 /* V4 i.g LONG */
1964 #define MUIA_String_Reject 0x8042179c /* V4 isg STRPTR */
1965 #define MUIA_String_Secret 0x80428769 /* V4 i.g BOOL */
1967 #define MUIV_String_Format_Left 0
1968 #define MUIV_String_Format_Center 1
1969 #define MUIV_String_Format_Right 2
1972 /****************************************************************************/
1973 /** Boopsi **/
1974 /****************************************************************************/
1976 #ifdef _DCC
1977 extern char MUIC_Boopsi[];
1978 #else
1979 #define MUIC_Boopsi "Boopsi.mui"
1980 #endif
1982 /* Attributes */
1984 #define MUIA_Boopsi_Class 0x80426999 /* V4 isg struct IClass * */
1985 #define MUIA_Boopsi_ClassID 0x8042bfa3 /* V4 isg char * */
1986 #define MUIA_Boopsi_MaxHeight 0x8042757f /* V4 isg ULONG */
1987 #define MUIA_Boopsi_MaxWidth 0x8042bcb1 /* V4 isg ULONG */
1988 #define MUIA_Boopsi_MinHeight 0x80422c93 /* V4 isg ULONG */
1989 #define MUIA_Boopsi_MinWidth 0x80428fb2 /* V4 isg ULONG */
1990 #define MUIA_Boopsi_Object 0x80420178 /* V4 ..g Object * */
1991 #define MUIA_Boopsi_Remember 0x8042f4bd /* V4 i.. ULONG */
1992 #define MUIA_Boopsi_Smart 0x8042b8d7 /* V9 i.. BOOL */
1993 #define MUIA_Boopsi_TagDrawInfo 0x8042bae7 /* V4 isg ULONG */
1994 #define MUIA_Boopsi_TagScreen 0x8042bc71 /* V4 isg ULONG */
1995 #define MUIA_Boopsi_TagWindow 0x8042e11d /* V4 isg ULONG */
1999 /****************************************************************************/
2000 /** Prop **/
2001 /****************************************************************************/
2003 #ifdef _DCC
2004 extern char MUIC_Prop[];
2005 #else
2006 #define MUIC_Prop "Prop.mui"
2007 #endif
2009 /* Methods */
2011 #define MUIM_Prop_Decrease 0x80420dd1 /* V16 */
2012 #define MUIM_Prop_Increase 0x8042cac0 /* V16 */
2013 struct MUIP_Prop_Decrease { ULONG MethodID; LONG amount; };
2014 struct MUIP_Prop_Increase { ULONG MethodID; LONG amount; };
2016 /* Attributes */
2018 #define MUIA_Prop_Entries 0x8042fbdb /* V4 isg LONG */
2019 #define MUIA_Prop_First 0x8042d4b2 /* V4 isg LONG */
2020 #define MUIA_Prop_Horiz 0x8042f4f3 /* V4 i.g BOOL */
2021 #define MUIA_Prop_Slider 0x80429c3a /* V4 isg BOOL */
2022 #define MUIA_Prop_UseWinBorder 0x8042deee /* V13 i.. LONG */
2023 #define MUIA_Prop_Visible 0x8042fea6 /* V4 isg LONG */
2025 #define MUIV_Prop_UseWinBorder_None 0
2026 #define MUIV_Prop_UseWinBorder_Left 1
2027 #define MUIV_Prop_UseWinBorder_Right 2
2028 #define MUIV_Prop_UseWinBorder_Bottom 3
2031 /****************************************************************************/
2032 /** Gauge **/
2033 /****************************************************************************/
2035 #ifdef _DCC
2036 extern char MUIC_Gauge[];
2037 #else
2038 #define MUIC_Gauge "Gauge.mui"
2039 #endif
2041 /* Attributes */
2043 #define MUIA_Gauge_Current 0x8042f0dd /* V4 isg LONG */
2044 #define MUIA_Gauge_Divide 0x8042d8df /* V4 isg ULONG */
2045 #define MUIA_Gauge_EmptyImage 0x8042357f /* V20 isg STRPTR */
2046 #define MUIA_Gauge_FullFrame 0x8042881b /* V20 isg STRPTR */
2047 #define MUIA_Gauge_FullImage 0x8042e14a /* V20 isg STRPTR */
2048 #define MUIA_Gauge_Horiz 0x804232dd /* V4 i.. BOOL */
2049 #define MUIA_Gauge_InfoRate 0x804253c8 /* V4 isg LONG */
2050 #define MUIA_Gauge_InfoText 0x8042bf15 /* V7 isg STRPTR */
2051 #define MUIA_Gauge_Max 0x8042bcdb /* V4 isg LONG */
2055 /****************************************************************************/
2056 /** Scale **/
2057 /****************************************************************************/
2059 #ifdef _DCC
2060 extern char MUIC_Scale[];
2061 #else
2062 #define MUIC_Scale "Scale.mui"
2063 #endif
2065 /* Attributes */
2067 #define MUIA_Scale_Horiz 0x8042919a /* V4 isg BOOL */
2071 /****************************************************************************/
2072 /** Colorfield **/
2073 /****************************************************************************/
2075 #ifdef _DCC
2076 extern char MUIC_Colorfield[];
2077 #else
2078 #define MUIC_Colorfield "Colorfield.mui"
2079 #endif
2081 /* Attributes */
2083 #define MUIA_Colorfield_Blue 0x8042d3b0 /* V4 isg ULONG */
2084 #define MUIA_Colorfield_Green 0x80424466 /* V4 isg ULONG */
2085 #define MUIA_Colorfield_Pen 0x8042713a /* V4 ..g ULONG */
2086 #define MUIA_Colorfield_Red 0x804279f6 /* V4 isg ULONG */
2087 #define MUIA_Colorfield_RGB 0x8042677a /* V4 isg ULONG * */
2091 /****************************************************************************/
2092 /** List **/
2093 /****************************************************************************/
2095 #ifdef _DCC
2096 extern char MUIC_List[];
2097 #else
2098 #define MUIC_List "List.mui"
2099 #endif
2101 /* Methods */
2103 #define MUIM_List_Clear 0x8042ad89 /* V4 */
2104 #define MUIM_List_CreateImage 0x80429804 /* V11 */
2105 #define MUIM_List_DeleteImage 0x80420f58 /* V11 */
2106 #define MUIM_List_Exchange 0x8042468c /* V4 */
2107 #define MUIM_List_GetEntry 0x804280ec /* V4 */
2108 #define MUIM_List_Insert 0x80426c87 /* V4 */
2109 #define MUIM_List_InsertSingle 0x804254d5 /* V7 */
2110 #define MUIM_List_Jump 0x8042baab /* V4 */
2111 #define MUIM_List_Move 0x804253c2 /* V9 */
2112 #define MUIM_List_NextSelected 0x80425f17 /* V6 */
2113 #define MUIM_List_Redraw 0x80427993 /* V4 */
2114 #define MUIM_List_Remove 0x8042647e /* V4 */
2115 #define MUIM_List_Select 0x804252d8 /* V4 */
2116 #define MUIM_List_Sort 0x80422275 /* V4 */
2117 #define MUIM_List_TestPos 0x80425f48 /* V11 */
2118 struct MUIP_List_Clear { ULONG MethodID; };
2119 struct MUIP_List_CreateImage { ULONG MethodID; Object *obj; ULONG flags; };
2120 struct MUIP_List_DeleteImage { ULONG MethodID; APTR listimg; };
2121 struct MUIP_List_Exchange { ULONG MethodID; LONG pos1; LONG pos2; };
2122 struct MUIP_List_GetEntry { ULONG MethodID; LONG pos; APTR *entry; };
2123 struct MUIP_List_Insert { ULONG MethodID; APTR *entries; LONG count; LONG pos; };
2124 struct MUIP_List_InsertSingle { ULONG MethodID; APTR entry; LONG pos; };
2125 struct MUIP_List_Jump { ULONG MethodID; LONG pos; };
2126 struct MUIP_List_Move { ULONG MethodID; LONG from; LONG to; };
2127 struct MUIP_List_NextSelected { ULONG MethodID; LONG *pos; };
2128 struct MUIP_List_Redraw { ULONG MethodID; LONG pos; };
2129 struct MUIP_List_Remove { ULONG MethodID; LONG pos; };
2130 struct MUIP_List_Select { ULONG MethodID; LONG pos; LONG seltype; LONG *state; };
2131 struct MUIP_List_Sort { ULONG MethodID; };
2132 struct MUIP_List_TestPos { ULONG MethodID; LONG x; LONG y; struct MUI_List_TestPos_Result *res; };
2134 /* Attributes */
2136 #define MUIA_List_Active 0x8042391c /* V4 isg LONG */
2137 #define MUIA_List_AdjustHeight 0x8042850d /* V4 i.. BOOL */
2138 #define MUIA_List_AdjustWidth 0x8042354a /* V4 i.. BOOL */
2139 #define MUIA_List_AutoVisible 0x8042a445 /* V11 isg BOOL */
2140 #define MUIA_List_CompareHook 0x80425c14 /* V4 is. struct Hook * */
2141 #define MUIA_List_ConstructHook 0x8042894f /* V4 is. struct Hook * */
2142 #define MUIA_List_DestructHook 0x804297ce /* V4 is. struct Hook * */
2143 #define MUIA_List_DisplayHook 0x8042b4d5 /* V4 is. struct Hook * */
2144 #define MUIA_List_DragSortable 0x80426099 /* V11 isg BOOL */
2145 #define MUIA_List_DropMark 0x8042aba6 /* V11 ..g LONG */
2146 #define MUIA_List_Entries 0x80421654 /* V4 ..g LONG */
2147 #define MUIA_List_First 0x804238d4 /* V4 ..g LONG */
2148 #define MUIA_List_Format 0x80423c0a /* V4 isg STRPTR */
2149 #define MUIA_List_InsertPosition 0x8042d0cd /* V9 ..g LONG */
2150 #define MUIA_List_MinLineHeight 0x8042d1c3 /* V4 i.. LONG */
2151 #define MUIA_List_MultiTestHook 0x8042c2c6 /* V4 is. struct Hook * */
2152 #define MUIA_List_Pool 0x80423431 /* V13 i.. APTR */
2153 #define MUIA_List_PoolPuddleSize 0x8042a4eb /* V13 i.. ULONG */
2154 #define MUIA_List_PoolThreshSize 0x8042c48c /* V13 i.. ULONG */
2155 #define MUIA_List_Quiet 0x8042d8c7 /* V4 .s. BOOL */
2156 #define MUIA_List_ShowDropMarks 0x8042c6f3 /* V11 isg BOOL */
2157 #define MUIA_List_SourceArray 0x8042c0a0 /* V4 i.. APTR */
2158 #define MUIA_List_Title 0x80423e66 /* V6 isg char * */
2159 #define MUIA_List_Visible 0x8042191f /* V4 ..g LONG */
2161 #define MUIV_List_Active_Off -1
2162 #define MUIV_List_Active_Top -2
2163 #define MUIV_List_Active_Bottom -3
2164 #define MUIV_List_Active_Up -4
2165 #define MUIV_List_Active_Down -5
2166 #define MUIV_List_Active_PageUp -6
2167 #define MUIV_List_Active_PageDown -7
2168 #define MUIV_List_ConstructHook_String -1
2169 #define MUIV_List_CopyHook_String -1
2170 #define MUIV_List_CursorType_None 0
2171 #define MUIV_List_CursorType_Bar 1
2172 #define MUIV_List_CursorType_Rect 2
2173 #define MUIV_List_DestructHook_String -1
2176 /****************************************************************************/
2177 /** Floattext **/
2178 /****************************************************************************/
2180 #ifdef _DCC
2181 extern char MUIC_Floattext[];
2182 #else
2183 #define MUIC_Floattext "Floattext.mui"
2184 #endif
2186 /* Attributes */
2188 #define MUIA_Floattext_Justify 0x8042dc03 /* V4 isg BOOL */
2189 #define MUIA_Floattext_SkipChars 0x80425c7d /* V4 is. STRPTR */
2190 #define MUIA_Floattext_TabSize 0x80427d17 /* V4 is. LONG */
2191 #define MUIA_Floattext_Text 0x8042d16a /* V4 isg STRPTR */
2195 /****************************************************************************/
2196 /** Volumelist **/
2197 /****************************************************************************/
2199 #ifdef _DCC
2200 extern char MUIC_Volumelist[];
2201 #else
2202 #define MUIC_Volumelist "Volumelist.mui"
2203 #endif
2205 /* Attributes */
2207 #define MUIA_Volumelist_ExampleMode 0x804246a5 /* V20 i.. BOOL */
2211 /****************************************************************************/
2212 /** Scrmodelist **/
2213 /****************************************************************************/
2215 #ifdef _DCC
2216 extern char MUIC_Scrmodelist[];
2217 #else
2218 #define MUIC_Scrmodelist "Scrmodelist.mui"
2219 #endif
2221 /* Attributes */
2226 /****************************************************************************/
2227 /** Dirlist **/
2228 /****************************************************************************/
2230 #ifdef _DCC
2231 extern char MUIC_Dirlist[];
2232 #else
2233 #define MUIC_Dirlist "Dirlist.mui"
2234 #endif
2236 /* Methods */
2238 #define MUIM_Dirlist_ReRead 0x80422d71 /* V4 */
2239 struct MUIP_Dirlist_ReRead { ULONG MethodID; };
2241 /* Attributes */
2243 #define MUIA_Dirlist_AcceptPattern 0x8042760a /* V4 is. STRPTR */
2244 #define MUIA_Dirlist_Directory 0x8042ea41 /* V4 isg STRPTR */
2245 #define MUIA_Dirlist_DrawersOnly 0x8042b379 /* V4 is. BOOL */
2246 #define MUIA_Dirlist_FilesOnly 0x8042896a /* V4 is. BOOL */
2247 #define MUIA_Dirlist_FilterDrawers 0x80424ad2 /* V4 is. BOOL */
2248 #define MUIA_Dirlist_FilterHook 0x8042ae19 /* V4 is. struct Hook * */
2249 #define MUIA_Dirlist_MultiSelDirs 0x80428653 /* V6 is. BOOL */
2250 #define MUIA_Dirlist_NumBytes 0x80429e26 /* V4 ..g LONG */
2251 #define MUIA_Dirlist_NumDrawers 0x80429cb8 /* V4 ..g LONG */
2252 #define MUIA_Dirlist_NumFiles 0x8042a6f0 /* V4 ..g LONG */
2253 #define MUIA_Dirlist_Path 0x80426176 /* V4 ..g STRPTR */
2254 #define MUIA_Dirlist_RejectIcons 0x80424808 /* V4 is. BOOL */
2255 #define MUIA_Dirlist_RejectPattern 0x804259c7 /* V4 is. STRPTR */
2256 #define MUIA_Dirlist_SortDirs 0x8042bbb9 /* V4 is. LONG */
2257 #define MUIA_Dirlist_SortHighLow 0x80421896 /* V4 is. BOOL */
2258 #define MUIA_Dirlist_SortType 0x804228bc /* V4 is. LONG */
2259 #define MUIA_Dirlist_Status 0x804240de /* V4 ..g LONG */
2261 #define MUIV_Dirlist_SortDirs_First 0
2262 #define MUIV_Dirlist_SortDirs_Last 1
2263 #define MUIV_Dirlist_SortDirs_Mix 2
2264 #define MUIV_Dirlist_SortType_Name 0
2265 #define MUIV_Dirlist_SortType_Date 1
2266 #define MUIV_Dirlist_SortType_Size 2
2267 #define MUIV_Dirlist_Status_Invalid 0
2268 #define MUIV_Dirlist_Status_Reading 1
2269 #define MUIV_Dirlist_Status_Valid 2
2272 /****************************************************************************/
2273 /** Numeric **/
2274 /****************************************************************************/
2276 #ifdef _DCC
2277 extern char MUIC_Numeric[];
2278 #else
2279 #define MUIC_Numeric "Numeric.mui"
2280 #endif
2282 /* Methods */
2284 #define MUIM_Numeric_Decrease 0x804243a7 /* V11 */
2285 #define MUIM_Numeric_Increase 0x80426ecd /* V11 */
2286 #define MUIM_Numeric_ScaleToValue 0x8042032c /* V11 */
2287 #define MUIM_Numeric_SetDefault 0x8042ab0a /* V11 */
2288 #define MUIM_Numeric_Stringify 0x80424891 /* V11 */
2289 #define MUIM_Numeric_ValueToScale 0x80423e4f /* V11 */
2290 struct MUIP_Numeric_Decrease { ULONG MethodID; LONG amount; };
2291 struct MUIP_Numeric_Increase { ULONG MethodID; LONG amount; };
2292 struct MUIP_Numeric_ScaleToValue { ULONG MethodID; LONG scalemin; LONG scalemax; LONG scale; };
2293 struct MUIP_Numeric_SetDefault { ULONG MethodID; };
2294 struct MUIP_Numeric_Stringify { ULONG MethodID; LONG value; };
2295 struct MUIP_Numeric_ValueToScale { ULONG MethodID; LONG scalemin; LONG scalemax; };
2297 /* Attributes */
2299 #define MUIA_Numeric_CheckAllSizes 0x80421594 /* V11 isg BOOL */
2300 #define MUIA_Numeric_Default 0x804263e8 /* V11 isg LONG */
2301 #define MUIA_Numeric_Format 0x804263e9 /* V11 isg STRPTR */
2302 #define MUIA_Numeric_Max 0x8042d78a /* V11 isg LONG */
2303 #define MUIA_Numeric_Min 0x8042e404 /* V11 isg LONG */
2304 #define MUIA_Numeric_Reverse 0x8042f2a0 /* V11 isg BOOL */
2305 #define MUIA_Numeric_RevLeftRight 0x804294a7 /* V11 isg BOOL */
2306 #define MUIA_Numeric_RevUpDown 0x804252dd /* V11 isg BOOL */
2307 #define MUIA_Numeric_Value 0x8042ae3a /* V11 isg LONG */
2311 /****************************************************************************/
2312 /** Knob **/
2313 /****************************************************************************/
2315 #ifdef _DCC
2316 extern char MUIC_Knob[];
2317 #else
2318 #define MUIC_Knob "Knob.mui"
2319 #endif
2322 /****************************************************************************/
2323 /** Levelmeter **/
2324 /****************************************************************************/
2326 #ifdef _DCC
2327 extern char MUIC_Levelmeter[];
2328 #else
2329 #define MUIC_Levelmeter "Levelmeter.mui"
2330 #endif
2332 /* Attributes */
2334 #define MUIA_Levelmeter_Label 0x80420dd5 /* V11 isg STRPTR */
2338 /****************************************************************************/
2339 /** Numericbutton **/
2340 /****************************************************************************/
2342 #ifdef _DCC
2343 extern char MUIC_Numericbutton[];
2344 #else
2345 #define MUIC_Numericbutton "Numericbutton.mui"
2346 #endif
2349 /****************************************************************************/
2350 /** Slider **/
2351 /****************************************************************************/
2353 #ifdef _DCC
2354 extern char MUIC_Slider[];
2355 #else
2356 #define MUIC_Slider "Slider.mui"
2357 #endif
2359 /* Attributes */
2361 #define MUIA_Slider_Horiz 0x8042fad1 /* V11 isg BOOL */
2362 #ifdef MUI_OBSOLETE
2363 #define MUIA_Slider_Level 0x8042ae3a /* V4 isg LONG */
2364 #endif /* MUI_OBSOLETE */
2365 #ifdef MUI_OBSOLETE
2366 #define MUIA_Slider_Max 0x8042d78a /* V4 isg LONG */
2367 #endif /* MUI_OBSOLETE */
2368 #ifdef MUI_OBSOLETE
2369 #define MUIA_Slider_Min 0x8042e404 /* V4 isg LONG */
2370 #endif /* MUI_OBSOLETE */
2371 #define MUIA_Slider_Quiet 0x80420b26 /* V6 i.. BOOL */
2372 #ifdef MUI_OBSOLETE
2373 #define MUIA_Slider_Reverse 0x8042f2a0 /* V4 isg BOOL */
2374 #endif /* MUI_OBSOLETE */
2375 #define MUIA_Slider_Size 0x8042b69d /* V20 isg BOOL */
2379 /****************************************************************************/
2380 /** Framedisplay **/
2381 /****************************************************************************/
2383 #ifdef _DCC
2384 extern char MUIC_Framedisplay[];
2385 #else
2386 #define MUIC_Framedisplay "Framedisplay.mui"
2387 #endif
2389 /* Attributes */
2394 /****************************************************************************/
2395 /** Popframe **/
2396 /****************************************************************************/
2398 #ifdef _DCC
2399 extern char MUIC_Popframe[];
2400 #else
2401 #define MUIC_Popframe "Popframe.mui"
2402 #endif
2405 /****************************************************************************/
2406 /** Imagedisplay **/
2407 /****************************************************************************/
2409 #ifdef _DCC
2410 extern char MUIC_Imagedisplay[];
2411 #else
2412 #define MUIC_Imagedisplay "Imagedisplay.mui"
2413 #endif
2415 /* Attributes */
2420 /****************************************************************************/
2421 /** Popimage **/
2422 /****************************************************************************/
2424 #ifdef _DCC
2425 extern char MUIC_Popimage[];
2426 #else
2427 #define MUIC_Popimage "Popimage.mui"
2428 #endif
2431 /****************************************************************************/
2432 /** Pendisplay **/
2433 /****************************************************************************/
2435 #ifdef _DCC
2436 extern char MUIC_Pendisplay[];
2437 #else
2438 #define MUIC_Pendisplay "Pendisplay.mui"
2439 #endif
2441 /* Methods */
2443 #define MUIM_Pendisplay_SetColormap 0x80426c80 /* V13 */
2444 #define MUIM_Pendisplay_SetMUIPen 0x8042039d /* V13 */
2445 #define MUIM_Pendisplay_SetRGB 0x8042c131 /* V13 */
2446 struct MUIP_Pendisplay_SetColormap { ULONG MethodID; LONG colormap; };
2447 struct MUIP_Pendisplay_SetMUIPen { ULONG MethodID; LONG muipen; };
2448 struct MUIP_Pendisplay_SetRGB { ULONG MethodID; ULONG red; ULONG green; ULONG blue; };
2450 /* Attributes */
2452 #define MUIA_Pendisplay_Pen 0x8042a748 /* V13 ..g ULONG */
2453 #define MUIA_Pendisplay_Reference 0x8042dc24 /* V13 isg Object * */
2454 #define MUIA_Pendisplay_RGBcolor 0x8042a1a9 /* V11 isg struct MUI_RGBcolor * */
2455 #define MUIA_Pendisplay_Spec 0x8042a204 /* V11 isg struct MUI_PenSpec * */
2459 /****************************************************************************/
2460 /** Poppen **/
2461 /****************************************************************************/
2463 #ifdef _DCC
2464 extern char MUIC_Poppen[];
2465 #else
2466 #define MUIC_Poppen "Poppen.mui"
2467 #endif
2470 /****************************************************************************/
2471 /** Group **/
2472 /****************************************************************************/
2474 #ifdef _DCC
2475 extern char MUIC_Group[];
2476 #else
2477 #define MUIC_Group "Group.mui"
2478 #endif
2480 /* Methods */
2482 #define MUIM_Group_ExitChange 0x8042d1cc /* V11 */
2483 #define MUIM_Group_InitChange 0x80420887 /* V11 */
2484 #define MUIM_Group_MoveMember 0x8042ff4e /* V16 */
2485 #define MUIM_Group_Sort 0x80427417 /* V4 */
2486 struct MUIP_Group_ExitChange { ULONG MethodID; };
2487 struct MUIP_Group_InitChange { ULONG MethodID; };
2488 struct MUIP_Group_MoveMember { ULONG MethodID; Object *o; LONG pos; };
2489 struct MUIP_Group_Sort { ULONG MethodID; Object *obj[1]; };
2491 /* Attributes */
2493 #define MUIA_Group_ActivePage 0x80424199 /* V5 isg LONG */
2494 #define MUIA_Group_Child 0x804226e6 /* V4 i.. Object * */
2495 #define MUIA_Group_ChildList 0x80424748 /* V4 ..g struct List * */
2496 #define MUIA_Group_Columns 0x8042f416 /* V4 is. LONG */
2497 #define MUIA_Group_Forward 0x80421422 /* V11 .s. BOOL */
2498 #define MUIA_Group_Horiz 0x8042536b /* V4 i.. BOOL */
2499 #define MUIA_Group_HorizSpacing 0x8042c651 /* V4 isg LONG */
2500 #define MUIA_Group_LayoutHook 0x8042c3b2 /* V11 i.. struct Hook * */
2501 #define MUIA_Group_PageMode 0x80421a5f /* V5 i.. BOOL */
2502 #define MUIA_Group_Rows 0x8042b68f /* V4 is. LONG */
2503 #define MUIA_Group_SameHeight 0x8042037e /* V4 i.. BOOL */
2504 #define MUIA_Group_SameSize 0x80420860 /* V4 i.. BOOL */
2505 #define MUIA_Group_SameWidth 0x8042b3ec /* V4 i.. BOOL */
2506 #define MUIA_Group_Spacing 0x8042866d /* V4 is. LONG */
2507 #define MUIA_Group_VertSpacing 0x8042e1bf /* V4 isg LONG */
2509 #define MUIV_Group_ActivePage_First 0
2510 #define MUIV_Group_ActivePage_Last -1
2511 #define MUIV_Group_ActivePage_Prev -2
2512 #define MUIV_Group_ActivePage_Next -3
2513 #define MUIV_Group_ActivePage_Advance -4
2516 /****************************************************************************/
2517 /** Selectgroup **/
2518 /****************************************************************************/
2520 #ifdef _DCC
2521 extern char MUIC_Selectgroup[];
2522 #else
2523 #define MUIC_Selectgroup "Selectgroup.mui"
2524 #endif
2527 /****************************************************************************/
2528 /** Menudisplay **/
2529 /****************************************************************************/
2531 #ifdef _DCC
2532 extern char MUIC_Menudisplay[];
2533 #else
2534 #define MUIC_Menudisplay "Menudisplay.mui"
2535 #endif
2537 /* Methods */
2541 /****************************************************************************/
2542 /** Mccprefs **/
2543 /****************************************************************************/
2545 #ifdef _DCC
2546 extern char MUIC_Mccprefs[];
2547 #else
2548 #define MUIC_Mccprefs "Mccprefs.mui"
2549 #endif
2551 /* Methods */
2553 #define MUIM_Mccprefs_ConfigToGadgets 0x80427043 /* V11 */
2554 #define MUIM_Mccprefs_GadgetsToConfig 0x80425242 /* V11 */
2555 #define MUIM_Mccprefs_RegisterGadget 0x80424828 /* V20 */
2556 struct MUIP_Mccprefs_ConfigToGadgets { ULONG MethodID; Object *configdata; };
2557 struct MUIP_Mccprefs_GadgetsToConfig { ULONG MethodID; Object *configdata; };
2558 struct MUIP_Mccprefs_RegisterGadget { ULONG MethodID; Object *gadget; ULONG id; ULONG flags; STRPTR title; };
2560 /* Attributes */
2565 /****************************************************************************/
2566 /** Register **/
2567 /****************************************************************************/
2569 #ifdef _DCC
2570 extern char MUIC_Register[];
2571 #else
2572 #define MUIC_Register "Register.mui"
2573 #endif
2575 /* Attributes */
2577 #define MUIA_Register_Frame 0x8042349b /* V7 i.g BOOL */
2578 #define MUIA_Register_Titles 0x804297ec /* V7 i.g STRPTR * */
2582 /****************************************************************************/
2583 /** Penadjust **/
2584 /****************************************************************************/
2586 #ifdef _DCC
2587 extern char MUIC_Penadjust[];
2588 #else
2589 #define MUIC_Penadjust "Penadjust.mui"
2590 #endif
2592 /* Methods */
2595 /* Attributes */
2597 #define MUIA_Penadjust_PSIMode 0x80421cbb /* V11 i.. BOOL */
2601 /****************************************************************************/
2602 /** Settingsgroup **/
2603 /****************************************************************************/
2605 #ifdef _DCC
2606 extern char MUIC_Settingsgroup[];
2607 #else
2608 #define MUIC_Settingsgroup "Settingsgroup.mui"
2609 #endif
2611 /* Methods */
2613 #define MUIM_Settingsgroup_ConfigToGadgets 0x80427043 /* V11 */
2614 #define MUIM_Settingsgroup_GadgetsToConfig 0x80425242 /* V11 */
2615 struct MUIP_Settingsgroup_ConfigToGadgets { ULONG MethodID; Object *configdata; };
2616 struct MUIP_Settingsgroup_GadgetsToConfig { ULONG MethodID; Object *configdata; };
2618 /* Attributes */
2623 /****************************************************************************/
2624 /** Settingsgroupr **/
2625 /****************************************************************************/
2627 #ifdef _DCC
2628 extern char MUIC_Settingsgroupr[];
2629 #else
2630 #define MUIC_Settingsgroupr "Settingsgroupr.mui"
2631 #endif
2634 /****************************************************************************/
2635 /** Settings **/
2636 /****************************************************************************/
2638 #ifdef _DCC
2639 extern char MUIC_Settings[];
2640 #else
2641 #define MUIC_Settings "Settings.mui"
2642 #endif
2644 /* Methods */
2647 /* Attributes */
2650 /****************************************************************************/
2651 /** Frameadjust **/
2652 /****************************************************************************/
2654 #ifdef _DCC
2655 extern char MUIC_Frameadjust[];
2656 #else
2657 #define MUIC_Frameadjust "Frameadjust.mui"
2658 #endif
2660 /* Methods */
2663 /* Attributes */
2668 /****************************************************************************/
2669 /** Imageadjust **/
2670 /****************************************************************************/
2672 #ifdef _DCC
2673 extern char MUIC_Imageadjust[];
2674 #else
2675 #define MUIC_Imageadjust "Imageadjust.mui"
2676 #endif
2678 /* Methods */
2680 /* Attributes */
2682 #define MUIV_Imageadjust_Type_All 0
2683 #define MUIV_Imageadjust_Type_Image 1
2684 #define MUIV_Imageadjust_Type_Background 2
2685 #define MUIV_Imageadjust_Type_Pen 3
2688 /****************************************************************************/
2689 /** Virtgroup **/
2690 /****************************************************************************/
2692 #ifdef _DCC
2693 extern char MUIC_Virtgroup[];
2694 #else
2695 #define MUIC_Virtgroup "Virtgroup.mui"
2696 #endif
2698 /* Methods */
2700 /* Attributes */
2702 #define MUIA_Virtgroup_Height 0x80423038 /* V6 ..g LONG */
2703 #define MUIA_Virtgroup_Input 0x80427f7e /* V11 i.. BOOL */
2704 #define MUIA_Virtgroup_Left 0x80429371 /* V6 isg LONG */
2705 #define MUIA_Virtgroup_Top 0x80425200 /* V6 isg LONG */
2706 #define MUIA_Virtgroup_Width 0x80427c49 /* V6 ..g LONG */
2710 /****************************************************************************/
2711 /** Scrollgroup **/
2712 /****************************************************************************/
2714 #ifdef _DCC
2715 extern char MUIC_Scrollgroup[];
2716 #else
2717 #define MUIC_Scrollgroup "Scrollgroup.mui"
2718 #endif
2720 /* Methods */
2722 /* Attributes */
2724 #define MUIA_Scrollgroup_Contents 0x80421261 /* V4 i.g Object * */
2725 #define MUIA_Scrollgroup_FreeHoriz 0x804292f3 /* V9 i.. BOOL */
2726 #define MUIA_Scrollgroup_FreeVert 0x804224f2 /* V9 i.. BOOL */
2727 #define MUIA_Scrollgroup_HorizBar 0x8042b63d /* V16 ..g Object * */
2728 #define MUIA_Scrollgroup_UseWinBorder 0x804284c1 /* V13 i.. BOOL */
2729 #define MUIA_Scrollgroup_VertBar 0x8042cdc0 /* V16 ..g Object * */
2733 /****************************************************************************/
2734 /** Scrollbar **/
2735 /****************************************************************************/
2737 #ifdef _DCC
2738 extern char MUIC_Scrollbar[];
2739 #else
2740 #define MUIC_Scrollbar "Scrollbar.mui"
2741 #endif
2743 /* Attributes */
2745 #define MUIA_Scrollbar_Type 0x8042fb6b /* V11 i.. LONG */
2747 #define MUIV_Scrollbar_Type_Default 0
2748 #define MUIV_Scrollbar_Type_Bottom 1
2749 #define MUIV_Scrollbar_Type_Top 2
2750 #define MUIV_Scrollbar_Type_Sym 3
2753 /****************************************************************************/
2754 /** Listview **/
2755 /****************************************************************************/
2757 #ifdef _DCC
2758 extern char MUIC_Listview[];
2759 #else
2760 #define MUIC_Listview "Listview.mui"
2761 #endif
2763 /* Attributes */
2765 #define MUIA_Listview_ClickColumn 0x8042d1b3 /* V7 ..g LONG */
2766 #define MUIA_Listview_DefClickColumn 0x8042b296 /* V7 isg LONG */
2767 #define MUIA_Listview_DoubleClick 0x80424635 /* V4 i.g BOOL */
2768 #define MUIA_Listview_DragType 0x80425cd3 /* V11 isg LONG */
2769 #define MUIA_Listview_Input 0x8042682d /* V4 i.. BOOL */
2770 #define MUIA_Listview_List 0x8042bcce /* V4 i.g Object * */
2771 #define MUIA_Listview_MultiSelect 0x80427e08 /* V7 i.. LONG */
2772 #define MUIA_Listview_ScrollerPos 0x8042b1b4 /* V10 i.. BOOL */
2773 #define MUIA_Listview_SelectChange 0x8042178f /* V4 ..g BOOL */
2775 #define MUIV_Listview_DragType_None 0
2776 #define MUIV_Listview_DragType_Immediate 1
2777 #define MUIV_Listview_MultiSelect_None 0
2778 #define MUIV_Listview_MultiSelect_Default 1
2779 #define MUIV_Listview_MultiSelect_Shifted 2
2780 #define MUIV_Listview_MultiSelect_Always 3
2781 #define MUIV_Listview_ScrollerPos_Default 0
2782 #define MUIV_Listview_ScrollerPos_Left 1
2783 #define MUIV_Listview_ScrollerPos_Right 2
2784 #define MUIV_Listview_ScrollerPos_None 3
2787 /****************************************************************************/
2788 /** Radio **/
2789 /****************************************************************************/
2791 #ifdef _DCC
2792 extern char MUIC_Radio[];
2793 #else
2794 #define MUIC_Radio "Radio.mui"
2795 #endif
2797 /* Attributes */
2799 #define MUIA_Radio_Active 0x80429b41 /* V4 isg LONG */
2800 #define MUIA_Radio_Entries 0x8042b6a1 /* V4 i.. STRPTR * */
2804 /****************************************************************************/
2805 /** Cycle **/
2806 /****************************************************************************/
2808 #ifdef _DCC
2809 extern char MUIC_Cycle[];
2810 #else
2811 #define MUIC_Cycle "Cycle.mui"
2812 #endif
2814 /* Attributes */
2816 #define MUIA_Cycle_Active 0x80421788 /* V4 isg LONG */
2817 #define MUIA_Cycle_Entries 0x80420629 /* V4 i.. STRPTR * */
2819 #define MUIV_Cycle_Active_Next -1
2820 #define MUIV_Cycle_Active_Prev -2
2823 /****************************************************************************/
2824 /** Coloradjust **/
2825 /****************************************************************************/
2827 #ifdef _DCC
2828 extern char MUIC_Coloradjust[];
2829 #else
2830 #define MUIC_Coloradjust "Coloradjust.mui"
2831 #endif
2833 /* Methods */
2835 /* Attributes */
2837 #define MUIA_Coloradjust_Blue 0x8042b8a3 /* V4 isg ULONG */
2838 #define MUIA_Coloradjust_Green 0x804285ab /* V4 isg ULONG */
2839 #define MUIA_Coloradjust_ModeID 0x8042ec59 /* V4 isg ULONG */
2840 #define MUIA_Coloradjust_Red 0x80420eaa /* V4 isg ULONG */
2841 #define MUIA_Coloradjust_RGB 0x8042f899 /* V4 isg ULONG * */
2845 /****************************************************************************/
2846 /** Palette **/
2847 /****************************************************************************/
2849 #ifdef _DCC
2850 extern char MUIC_Palette[];
2851 #else
2852 #define MUIC_Palette "Palette.mui"
2853 #endif
2855 /* Attributes */
2857 #define MUIA_Palette_Entries 0x8042a3d8 /* V6 i.g struct MUI_Palette_Entry * */
2858 #define MUIA_Palette_Groupable 0x80423e67 /* V6 isg BOOL */
2859 #define MUIA_Palette_Names 0x8042c3a2 /* V6 isg char ** */
2863 /****************************************************************************/
2864 /** Popstring **/
2865 /****************************************************************************/
2867 #ifdef _DCC
2868 extern char MUIC_Popstring[];
2869 #else
2870 #define MUIC_Popstring "Popstring.mui"
2871 #endif
2873 /* Methods */
2875 #define MUIM_Popstring_Close 0x8042dc52 /* V7 */
2876 #define MUIM_Popstring_Open 0x804258ba /* V7 */
2877 struct MUIP_Popstring_Close { ULONG MethodID; LONG result; };
2878 struct MUIP_Popstring_Open { ULONG MethodID; };
2880 /* Attributes */
2882 #define MUIA_Popstring_Button 0x8042d0b9 /* V7 i.g Object * */
2883 #define MUIA_Popstring_CloseHook 0x804256bf /* V7 isg struct Hook * */
2884 #define MUIA_Popstring_OpenHook 0x80429d00 /* V7 isg struct Hook * */
2885 #define MUIA_Popstring_String 0x804239ea /* V7 i.g Object * */
2886 #define MUIA_Popstring_Toggle 0x80422b7a /* V7 isg BOOL */
2890 /****************************************************************************/
2891 /** Pubscreenadjust **/
2892 /****************************************************************************/
2894 #ifdef _DCC
2895 extern char MUIC_Pubscreenadjust[];
2896 #else
2897 #define MUIC_Pubscreenadjust "Pubscreenadjust.mui"
2898 #endif
2900 /* Methods */
2903 /****************************************************************************/
2904 /** Pubscreenpanel **/
2905 /****************************************************************************/
2907 #ifdef _DCC
2908 extern char MUIC_Pubscreenpanel[];
2909 #else
2910 #define MUIC_Pubscreenpanel "Pubscreenpanel.mui"
2911 #endif
2913 /* Methods */
2915 /* Attributes */
2917 /****************************************************************************/
2918 /** Pubscreenlist **/
2919 /****************************************************************************/
2921 #ifdef _DCC
2922 extern char MUIC_Pubscreenlist[];
2923 #else
2924 #define MUIC_Pubscreenlist "Pubscreenlist.mui"
2925 #endif
2927 /* Methods */
2929 /* Attributes */
2931 #define MUIA_Pubscreenlist_Selection 0x8042fe58 /* V20 ..g STRPTR */
2932 #define MUIA_Pubscreenlist_String 0x80422ce2 /* V20 .s. Object * */
2936 /****************************************************************************/
2937 /** Popobject **/
2938 /****************************************************************************/
2940 #ifdef _DCC
2941 extern char MUIC_Popobject[];
2942 #else
2943 #define MUIC_Popobject "Popobject.mui"
2944 #endif
2946 /* Attributes */
2948 #define MUIA_Popobject_Follow 0x80424cb5 /* V7 isg BOOL */
2949 #define MUIA_Popobject_Light 0x8042a5a3 /* V7 isg BOOL */
2950 #define MUIA_Popobject_Object 0x804293e3 /* V7 i.g Object * */
2951 #define MUIA_Popobject_ObjStrHook 0x8042db44 /* V7 isg struct Hook * */
2952 #define MUIA_Popobject_StrObjHook 0x8042fbe1 /* V7 isg struct Hook * */
2953 #define MUIA_Popobject_Volatile 0x804252ec /* V7 isg BOOL */
2954 #define MUIA_Popobject_WindowHook 0x8042f194 /* V9 isg struct Hook * */
2958 /****************************************************************************/
2959 /** Poplist **/
2960 /****************************************************************************/
2962 #ifdef _DCC
2963 extern char MUIC_Poplist[];
2964 #else
2965 #define MUIC_Poplist "Poplist.mui"
2966 #endif
2968 /* Attributes */
2970 #define MUIA_Poplist_Array 0x8042084c /* V8 i.. char ** */
2974 /****************************************************************************/
2975 /** Popscreen **/
2976 /****************************************************************************/
2978 #ifdef _DCC
2979 extern char MUIC_Popscreen[];
2980 #else
2981 #define MUIC_Popscreen "Popscreen.mui"
2982 #endif
2984 /* Attributes */
2987 /****************************************************************************/
2988 /** Popasl **/
2989 /****************************************************************************/
2991 #ifdef _DCC
2992 extern char MUIC_Popasl[];
2993 #else
2994 #define MUIC_Popasl "Popasl.mui"
2995 #endif
2997 /* Attributes */
2999 #define MUIA_Popasl_Active 0x80421b37 /* V7 ..g BOOL */
3000 #define MUIA_Popasl_StartHook 0x8042b703 /* V7 isg struct Hook * */
3001 #define MUIA_Popasl_StopHook 0x8042d8d2 /* V7 isg struct Hook * */
3002 #define MUIA_Popasl_Type 0x8042df3d /* V7 i.g ULONG */
3006 /****************************************************************************/
3007 /** Semaphore **/
3008 /****************************************************************************/
3010 #ifdef _DCC
3011 extern char MUIC_Semaphore[];
3012 #else
3013 #define MUIC_Semaphore "Semaphore.mui"
3014 #endif
3016 /* Methods */
3018 #define MUIM_Semaphore_Attempt 0x80426ce2 /* V11 */
3019 #define MUIM_Semaphore_AttemptShared 0x80422551 /* V11 */
3020 #define MUIM_Semaphore_Obtain 0x804276f0 /* V11 */
3021 #define MUIM_Semaphore_ObtainShared 0x8042ea02 /* V11 */
3022 #define MUIM_Semaphore_Release 0x80421f2d /* V11 */
3023 struct MUIP_Semaphore_Attempt { ULONG MethodID; };
3024 struct MUIP_Semaphore_AttemptShared { ULONG MethodID; };
3025 struct MUIP_Semaphore_Obtain { ULONG MethodID; };
3026 struct MUIP_Semaphore_ObtainShared { ULONG MethodID; };
3027 struct MUIP_Semaphore_Release { ULONG MethodID; };
3030 /****************************************************************************/
3031 /** Applist **/
3032 /****************************************************************************/
3034 #ifdef _DCC
3035 extern char MUIC_Applist[];
3036 #else
3037 #define MUIC_Applist "Applist.mui"
3038 #endif
3040 /* Methods */
3042 /****************************************************************************/
3043 /** Cclist **/
3044 /****************************************************************************/
3046 #ifdef _DCC
3047 extern char MUIC_Cclist[];
3048 #else
3049 #define MUIC_Cclist "Cclist.mui"
3050 #endif
3052 /* Methods */
3054 /****************************************************************************/
3055 /** Dataspace **/
3056 /****************************************************************************/
3058 #ifdef _DCC
3059 extern char MUIC_Dataspace[];
3060 #else
3061 #define MUIC_Dataspace "Dataspace.mui"
3062 #endif
3064 /* Methods */
3066 #define MUIM_Dataspace_Add 0x80423366 /* V11 */
3067 #define MUIM_Dataspace_Clear 0x8042b6c9 /* V11 */
3068 #define MUIM_Dataspace_Find 0x8042832c /* V11 */
3069 #define MUIM_Dataspace_Merge 0x80423e2b /* V11 */
3070 #define MUIM_Dataspace_ReadIFF 0x80420dfb /* V11 */
3071 #define MUIM_Dataspace_Remove 0x8042dce1 /* V11 */
3072 #define MUIM_Dataspace_WriteIFF 0x80425e8e /* V11 */
3073 struct MUIP_Dataspace_Add { ULONG MethodID; APTR data; LONG len; ULONG id; };
3074 struct MUIP_Dataspace_Clear { ULONG MethodID; };
3075 struct MUIP_Dataspace_Find { ULONG MethodID; ULONG id; };
3076 struct MUIP_Dataspace_Merge { ULONG MethodID; Object *dataspace; };
3077 struct MUIP_Dataspace_ReadIFF { ULONG MethodID; struct IFFHandle *handle; };
3078 struct MUIP_Dataspace_Remove { ULONG MethodID; ULONG id; };
3079 struct MUIP_Dataspace_WriteIFF { ULONG MethodID; struct IFFHandle *handle; ULONG type; ULONG id; };
3081 /* Attributes */
3083 #define MUIA_Dataspace_Pool 0x80424cf9 /* V11 i.. APTR */
3087 /****************************************************************************/
3088 /** Configdata **/
3089 /****************************************************************************/
3091 #ifdef _DCC
3092 extern char MUIC_Configdata[];
3093 #else
3094 #define MUIC_Configdata "Configdata.mui"
3095 #endif
3097 /* Methods */
3099 /* Attributes */
3101 /****************************************************************************/
3102 /** Rootgrp **/
3103 /****************************************************************************/
3105 #ifdef _DCC
3106 extern char MUIC_Rootgrp[];
3107 #else
3108 #define MUIC_Rootgrp "Rootgrp.mui"
3109 #endif
3112 /****************************************************************************/
3113 /** Popmenu **/
3114 /****************************************************************************/
3116 #ifdef _DCC
3117 extern char MUIC_Popmenu[];
3118 #else
3119 #define MUIC_Popmenu "Popmenu.mui"
3120 #endif
3122 /* Methods */
3124 /* Attributes */
3126 #define MUIV_Popmenu_Active_First -3
3127 #define MUIV_Popmenu_Active_Last -2
3128 #define MUIV_Popmenu_Active_None -1
3129 #define MUIV_Popmenu_PosX_Type_Center 0
3130 #define MUIV_Popmenu_PosX_Type_Left 1
3131 #define MUIV_Popmenu_PosX_Type_Right 2
3132 #define MUIV_Popmenu_PosY_Type_Middle 0
3133 #define MUIV_Popmenu_PosY_Type_Top 1
3134 #define MUIV_Popmenu_PosY_Type_Bottom 2
3135 #define MUIV_Popmenu_PosY_Type_Active 3
3136 #define MUIV_Popmenu_Stickyness_Auto 0
3137 #define MUIV_Popmenu_Stickyness_Always 1
3138 #define MUIV_Popmenu_Stickyness_Never 2
3139 #define MUIV_Popmenu_Type_Context 0
3140 #define MUIV_Popmenu_Type_Menu 1
3141 #define MUIV_Popmenu_Type_Cycle 2
3142 #define MUIV_Popmenu_Type_Popup 3
3143 #define MUIV_Popmenu_Type_Other 255
3146 /*****************************************/
3147 /* End of automatic header file creation */
3148 /*****************************************/
3156 /*************************************************************************
3157 ** Structures and Macros for creating custom classes.
3158 *************************************************************************/
3162 ** GENERAL NOTES:
3164 ** - Everything described in this header file is only valid within
3165 ** MUI classes. You may never use any of these things out of
3166 ** a class, e.g. in a traditional MUI application.
3168 ** - Except when otherwise stated, all structures are strictly read only.
3172 /* Global information for every object */
3174 struct MUI_GlobalInfo
3176 ULONG priv0;
3177 Object *mgi_ApplicationObject;
3179 /* ... private data follows ... */
3183 /* Instance data of notify class */
3185 struct MUI_NotifyData
3187 struct MUI_GlobalInfo *mnd_GlobalInfo;
3188 ULONG mnd_UserData;
3189 ULONG mnd_ObjectID;
3190 ULONG priv1;
3191 ULONG priv2;
3192 ULONG priv3;
3193 ULONG priv4;
3197 /* MUI_MinMax structure holds information about minimum, maximum
3198 and default dimensions of an object. */
3200 struct MUI_MinMax
3202 WORD MinWidth;
3203 WORD MinHeight;
3204 WORD MaxWidth;
3205 WORD MaxHeight;
3206 WORD DefWidth;
3207 WORD DefHeight;
3210 #define MUI_MAXMAX 10000 /* use this if a dimension is not limited. */
3213 /* Hook message for custom layout */
3215 struct MUI_LayoutMsg
3217 ULONG lm_Type; /* type of message (see defines below) */
3218 struct MinList *lm_Children; /* list of this groups children, traverse with NextObject() */
3219 struct MUI_MinMax lm_MinMax; /* results for MUILM_MINMAX */
3220 struct
3222 LONG Width;
3223 LONG Height;
3224 ULONG priv5;
3225 ULONG priv6;
3226 } lm_Layout; /* size (and result) for MUILM_LAYOUT */
3229 #define MUILM_MINMAX 1 /* MUI wants you to calc your min & max sizes */
3230 #define MUILM_LAYOUT 2 /* MUI wants you to layout your children */
3232 #define MUILM_UNKNOWN -1 /* return this if your hook doesn't implement lm_Type */
3235 /* (partial) instance data of area class */
3237 struct MUI_AreaData
3239 struct MUI_RenderInfo *mad_RenderInfo; /* RenderInfo for this object */
3240 ULONG priv7;
3241 struct TextFont *mad_Font; /* Font */
3242 struct MUI_MinMax mad_MinMax; /* min/max/default sizes */
3243 struct IBox mad_Box; /* position and dimension */
3244 BYTE mad_addleft; /* frame & innerspacing left offset */
3245 BYTE mad_addtop; /* frame & innerspacing top offset */
3246 BYTE mad_subwidth; /* frame & innerspacing add. width */
3247 BYTE mad_subheight; /* frame & innerspacing add. height */
3248 ULONG mad_Flags; /* see definitions below */
3250 /* ... private data follows ... */
3253 /* Definitions for mad_Flags, other flags are private */
3255 #define MADF_DRAWOBJECT (1<< 0) /* completely redraw yourself */
3256 #define MADF_DRAWUPDATE (1<< 1) /* only update yourself */
3258 /* MUI's draw pens */
3260 #define MPEN_SHINE 0
3261 #define MPEN_HALFSHINE 1
3262 #define MPEN_BACKGROUND 2
3263 #define MPEN_HALFSHADOW 3
3264 #define MPEN_SHADOW 4
3265 #define MPEN_TEXT 5
3266 #define MPEN_FILL 6
3267 #define MPEN_MARK 7
3268 #define MPEN_COUNT 8
3271 /* Mask for pens from MUI_ObtainPen() */
3273 #define MUIPEN_MASK 0x0000ffff
3274 #define MUIPEN(pen) ((pen) & MUIPEN_MASK)
3276 /* Information on display environment */
3278 struct MUI_RenderInfo
3280 Object *mri_WindowObject; /* valid between MUIM_Setup/MUIM_Cleanup */
3282 struct Screen *mri_Screen; /* valid between MUIM_Setup/MUIM_Cleanup */
3283 struct DrawInfo *mri_DrawInfo; /* valid between MUIM_Setup/MUIM_Cleanup */
3284 UWORD *mri_Pens; /* valid between MUIM_Setup/MUIM_Cleanup */
3285 struct Window *mri_Window; /* valid between MUIM_Show/MUIM_Hide */
3286 struct RastPort *mri_RastPort; /* valid between MUIM_Show/MUIM_Hide */
3288 ULONG mri_Flags; /* valid between MUIM_Setup/MUIM_Cleanup */
3290 /* ... private data follows ... */
3294 ** If mri_Flags & MUIMRI_RECTFILL, RectFill() is quicker
3295 ** than Move()/Draw() for horizontal or vertical lines.
3296 ** on the current display.
3298 #define MUIMRI_RECTFILL (1<<0)
3301 ** If mri_Flags & MUIMRI_TRUECOLOR, display environment is a
3302 ** cybergraphics emulated hicolor or true color display.
3304 #define MUIMRI_TRUECOLOR (1<<1)
3307 ** If mri_Flags & MUIMRI_THINFRAMES, MUI uses thin frames
3308 ** (1:1) apsect ratio instead of standard 2:1 frames.
3310 #define MUIMRI_THINFRAMES (1<<2)
3313 ** If mri_Flags & MUIMRI_REFRESHMODE, MUI is currently
3314 ** refreshing a WFLG_SIMPLEREFRESH window and is inbetween
3315 ** a BeginRefresh()/EndRefresh() pair.
3317 #define MUIMRI_REFRESHMODE (1<<3)
3320 ** If mri_Flags & MUIMRI_PLANAR, display environment is an
3321 ** old-style planar display.
3323 #define MUIMRI_PLANAR (1<<4)
3326 /* the following macros can be used to get pointers to an objects
3327 GlobalInfo and RenderInfo structures. */
3329 struct __dummyXFC2__
3331 struct MUI_NotifyData mnd;
3332 struct MUI_AreaData mad;
3335 #define muiNotifyData(obj) (&(((struct __dummyXFC2__ *)(obj))->mnd))
3336 #define muiAreaData(obj) (&(((struct __dummyXFC2__ *)(obj))->mad))
3338 #define muiGlobalInfo(obj) (((struct __dummyXFC2__ *)(obj))->mnd.mnd_GlobalInfo)
3339 #define muiUserData(obj) (((struct __dummyXFC2__ *)(obj))->mnd.mnd_UserData)
3340 #define muiRenderInfo(obj) (((struct __dummyXFC2__ *)(obj))->mad.mad_RenderInfo)
3344 /* User configurable keyboard events coming with MUIM_HandleInput */
3346 enum
3348 MUIKEY_RELEASE = -2, /* not a real key, faked when MUIKEY_PRESS is released */
3349 MUIKEY_NONE = -1,
3350 MUIKEY_PRESS,
3351 MUIKEY_TOGGLE,
3352 MUIKEY_UP,
3353 MUIKEY_DOWN,
3354 MUIKEY_PAGEUP,
3355 MUIKEY_PAGEDOWN,
3356 MUIKEY_TOP,
3357 MUIKEY_BOTTOM,
3358 MUIKEY_LEFT,
3359 MUIKEY_RIGHT,
3360 MUIKEY_WORDLEFT,
3361 MUIKEY_WORDRIGHT,
3362 MUIKEY_LINESTART,
3363 MUIKEY_LINEEND,
3364 MUIKEY_GADGET_NEXT,
3365 MUIKEY_GADGET_PREV,
3366 MUIKEY_GADGET_OFF,
3367 MUIKEY_WINDOW_CLOSE,
3368 MUIKEY_WINDOW_NEXT,
3369 MUIKEY_WINDOW_PREV,
3370 MUIKEY_HELP,
3371 MUIKEY_POPUP,
3372 MUIKEY_PRESS2,
3373 MUIKEY_COUNT /* counter */
3376 #define MUIKEYF_PRESS (1<<MUIKEY_PRESS)
3377 #define MUIKEYF_TOGGLE (1<<MUIKEY_TOGGLE)
3378 #define MUIKEYF_UP (1<<MUIKEY_UP)
3379 #define MUIKEYF_DOWN (1<<MUIKEY_DOWN)
3380 #define MUIKEYF_PAGEUP (1<<MUIKEY_PAGEUP)
3381 #define MUIKEYF_PAGEDOWN (1<<MUIKEY_PAGEDOWN)
3382 #define MUIKEYF_TOP (1<<MUIKEY_TOP)
3383 #define MUIKEYF_BOTTOM (1<<MUIKEY_BOTTOM)
3384 #define MUIKEYF_LEFT (1<<MUIKEY_LEFT)
3385 #define MUIKEYF_RIGHT (1<<MUIKEY_RIGHT)
3386 #define MUIKEYF_WORDLEFT (1<<MUIKEY_WORDLEFT)
3387 #define MUIKEYF_WORDRIGHT (1<<MUIKEY_WORDRIGHT)
3388 #define MUIKEYF_LINESTART (1<<MUIKEY_LINESTART)
3389 #define MUIKEYF_LINEEND (1<<MUIKEY_LINEEND)
3390 #define MUIKEYF_GADGET_NEXT (1<<MUIKEY_GADGET_NEXT)
3391 #define MUIKEYF_GADGET_PREV (1<<MUIKEY_GADGET_PREV)
3392 #define MUIKEYF_GADGET_OFF (1<<MUIKEY_GADGET_OFF)
3393 #define MUIKEYF_WINDOW_CLOSE (1<<MUIKEY_WINDOW_CLOSE)
3394 #define MUIKEYF_WINDOW_NEXT (1<<MUIKEY_WINDOW_NEXT)
3395 #define MUIKEYF_WINDOW_PREV (1<<MUIKEY_WINDOW_PREV)
3396 #define MUIKEYF_HELP (1<<MUIKEY_HELP)
3397 #define MUIKEYF_POPUP (1<<MUIKEY_POPUP)
3398 #define MUIKEYF_PRESS2 (1<<MUIKEY_PRESS2)
3401 /* Some useful shortcuts. define MUI_NOSHORTCUTS to get rid of them */
3402 /* NOTE: These macros may only be used in custom classes and are */
3403 /* only valid if your class is inbetween the specified methods! */
3405 #ifndef MUI_NOSHORTCUTS
3407 #define _app(obj) (muiGlobalInfo(obj)->mgi_ApplicationObject) /* valid between MUIM_Setup/Cleanup */
3408 #define _win(obj) (muiRenderInfo(obj)->mri_WindowObject) /* valid between MUIM_Setup/Cleanup */
3409 #define _dri(obj) (muiRenderInfo(obj)->mri_DrawInfo) /* valid between MUIM_Setup/Cleanup */
3410 #define _screen(obj) (muiRenderInfo(obj)->mri_Screen) /* valid between MUIM_Setup/Cleanup */
3411 #define _pens(obj) (muiRenderInfo(obj)->mri_Pens) /* valid between MUIM_Setup/Cleanup */
3412 #define _window(obj) (muiRenderInfo(obj)->mri_Window) /* valid between MUIM_Show/Hide */
3413 #define _rp(obj) (muiRenderInfo(obj)->mri_RastPort) /* valid between MUIM_Show/Hide */
3414 #define _left(obj) (muiAreaData(obj)->mad_Box.Left) /* valid during MUIM_Draw */
3415 #define _top(obj) (muiAreaData(obj)->mad_Box.Top) /* valid during MUIM_Draw */
3416 #define _width(obj) (muiAreaData(obj)->mad_Box.Width) /* valid during MUIM_Draw */
3417 #define _height(obj) (muiAreaData(obj)->mad_Box.Height) /* valid during MUIM_Draw */
3418 #define _right(obj) (_left(obj)+_width(obj)-1) /* valid during MUIM_Draw */
3419 #define _bottom(obj) (_top(obj)+_height(obj)-1) /* valid during MUIM_Draw */
3420 #define _addleft(obj) (muiAreaData(obj)->mad_addleft ) /* valid during MUIM_Draw */
3421 #define _addtop(obj) (muiAreaData(obj)->mad_addtop ) /* valid during MUIM_Draw */
3422 #define _subwidth(obj) (muiAreaData(obj)->mad_subwidth ) /* valid during MUIM_Draw */
3423 #define _subheight(obj) (muiAreaData(obj)->mad_subheight) /* valid during MUIM_Draw */
3424 #define _mleft(obj) (_left(obj)+_addleft(obj)) /* valid during MUIM_Draw */
3425 #define _mtop(obj) (_top(obj)+_addtop(obj)) /* valid during MUIM_Draw */
3426 #define _mwidth(obj) (_width(obj)-_subwidth(obj)) /* valid during MUIM_Draw */
3427 #define _mheight(obj) (_height(obj)-_subheight(obj)) /* valid during MUIM_Draw */
3428 #define _mright(obj) (_mleft(obj)+_mwidth(obj)-1) /* valid during MUIM_Draw */
3429 #define _mbottom(obj) (_mtop(obj)+_mheight(obj)-1) /* valid during MUIM_Draw */
3430 #define _font(obj) (muiAreaData(obj)->mad_Font) /* valid between MUIM_Setup/Cleanup */
3431 #define _minwidth(obj) (muiAreaData(obj)->mad_MinMax.MinWidth) /* valid between MUIM_Show/Hide */
3432 #define _minheight(obj) (muiAreaData(obj)->mad_MinMax.MinHeight) /* valid between MUIM_Show/Hide */
3433 #define _maxwidth(obj) (muiAreaData(obj)->mad_MinMax.MaxWidth) /* valid between MUIM_Show/Hide */
3434 #define _maxheight(obj) (muiAreaData(obj)->mad_MinMax.MaxHeight) /* valid between MUIM_Show/Hide */
3435 #define _defwidth(obj) (muiAreaData(obj)->mad_MinMax.DefWidth) /* valid between MUIM_Show/Hide */
3436 #define _defheight(obj) (muiAreaData(obj)->mad_MinMax.DefHeight) /* valid between MUIM_Show/Hide */
3437 #define _flags(obj) (muiAreaData(obj)->mad_Flags)
3439 #endif
3441 /* MUI_CustomClass returned by MUI_CreateCustomClass() */
3443 struct MUI_CustomClass
3445 APTR mcc_UserData; /* use for whatever you want */
3447 struct Library *mcc_UtilityBase; /* MUI has opened these libraries */
3448 struct Library *mcc_DOSBase; /* for you automatically. You can */
3449 struct Library *mcc_GfxBase; /* use them or decide to open */
3450 struct Library *mcc_IntuitionBase; /* your libraries yourself. */
3452 struct IClass *mcc_Super; /* pointer to super class */
3453 struct IClass *mcc_Class; /* pointer to the new class */
3455 /* ... private data follows ... */
3459 #if defined(__PPC__)
3460 #if defined(__GNUC__)
3461 #pragma pack()
3462 #elif defined(__VBCC__)
3463 #pragma default-align
3464 #endif
3465 #endif
3467 #endif /* MUI_H */
3469 #endif /* !__AROS__ */