1 /***************************************************************************
3 ** MUI - MagicUserInterface
4 ** (c) 1993-1997 Stefan Stuntz
8 ****************************************************************************
10 ****************************************************************************
12 ** rootclass (BOOPSI's base class)
13 ** +--Notify (implements notification mechanism)
14 ** ! +--Family (handles multiple children)
15 ** ! ! +--Menustrip (describes a complete menu strip)
16 ** ! ! +--Menu (describes a single menu)
17 ** ! ! \--Menuitem (describes a single menu item)
18 ** ! +--Application (main class for all applications)
19 ** ! +--Window (main class for all windows)
20 ** ! ! \--Aboutmui (About window of MUI preferences)
21 ** ! +--Area (base class for all GUI elements)
22 ** ! +--Rectangle (spacing object)
23 ** ! +--Balance (balancing separator bar)
24 ** ! +--Image (image display)
25 ** ! +--Bitmap (draws bitmaps)
26 ** ! ! \--Bodychunk (makes bitmap from ILBM body chunk)
27 ** ! +--Text (text display)
28 ** ! +--Gadget (base class for intuition gadgets)
29 ** ! ! +--String (string gadget)
30 ** ! ! +--Boopsi (interface to BOOPSI gadgets)
31 ** ! ! \--Prop (proportional gadget)
32 ** ! +--Gauge (fule gauge)
33 ** ! +--Scale (percentage scale)
34 ** ! +--Colorfield (field with changeable color)
35 ** ! +--List (line-oriented list)
36 ** ! ! +--Floattext (special list with floating text)
37 ** ! ! +--Volumelist (special list with volumes)
38 ** ! ! +--Scrmodelist (special list with screen modes)
39 ** ! ! \--Dirlist (special list with files)
40 ** ! +--Numeric (base class for slider gadgets)
41 ** ! ! +--Knob (turning knob)
42 ** ! ! +--Levelmeter (level display)
43 ** ! ! +--Numericbutton (space saving popup slider)
44 ** ! ! \--Slider (traditional slider)
45 ** ! +--Framedisplay (private)
46 ** ! ! \--Popframe (private)
47 ** ! +--Imagedisplay (private)
48 ** ! ! \--Popimage (private)
49 ** ! +--Pendisplay (displays a pen specification)
50 ** ! ! \--Poppen (popup button to adjust a pen spec)
51 ** ! +--Group (groups other GUI elements)
52 ** ! +--Mccprefs (private)
53 ** ! +--Register (handles page groups with titles)
54 ** ! ! \--Penadjust (group to adjust a pen)
55 ** ! +--Settingsgroup (private)
56 ** ! +--Settings (private)
57 ** ! +--Frameadjust (private)
58 ** ! +--Imageadjust (private)
59 ** ! +--Virtgroup (handles virtual groups)
60 ** ! +--Scrollgroup (virtual groups with scrollbars)
61 ** ! +--Scrollbar (traditional scrollbar)
62 ** ! +--Listview (listview)
63 ** ! +--Radio (radio button)
64 ** ! +--Cycle (cycle gadget)
65 ** ! +--Coloradjust (several gadgets to adjust a color)
66 ** ! +--Palette (complete palette gadget)
67 ** ! +--Popstring (base class for popup objects)
68 ** ! +--Popobject (popup aynthing in a separate window)
69 ** ! ! +--Poplist (popup a simple listview)
70 ** ! ! \--Popscreen (popup a list of public screens)
71 ** ! \--Popasl (popup an asl requester)
72 ** +--Semaphore (semaphore equipped objects)
73 ** +--Applist (private)
74 ** +--Dataspace (handles general purpose data spaces)
75 ** \--Configdata (private)
77 ****************************************************************************
78 ** General Header File Information
79 ****************************************************************************
81 ** All macro and structure definitions follow these rules:
85 ** MUIC_<class> Name of a class
86 ** MUIM_<class>_<method> Method
87 ** MUIP_<class>_<method> Methods parameter structure
88 ** MUIV_<class>_<method>_<x> Special method value
89 ** MUIA_<class>_<attrib> Attribute
90 ** MUIV_<class>_<attrib>_<x> Special attribute value
91 ** MUIE_<error> Error return code from MUI_Error()
92 ** MUII_<name> Standard MUI image
93 ** MUIX_<code> Control codes for text strings
94 ** MUIO_<name> Object type for MUI_MakeObject()
96 ** MUIA_... attribute definitions are followed by a comment
97 ** consisting of the three possible letters I, S and G.
98 ** I: it's possible to specify this attribute at object creation time.
99 ** S: it's possible to change this attribute with SetAttrs().
100 ** G: it's possible to get this attribute with GetAttr().
102 ** Items marked with "Custom Class" are for use in custom classes only!
106 #ifndef LIBRARIES_MUI_H
107 #define LIBRARIES_MUI_H
110 #include <exec/types.h>
117 #ifndef INTUITION_CLASSES_H
118 #include <intuition/classes.h>
121 #ifndef INTUITION_SCREENS_H
122 #include <intuition/screens.h>
125 #ifndef PROTO_INTUITION_H
126 #include <proto/intuition.h>
133 #elif defined(__VBCC__)
138 /***************************************************************************
139 ** Library specification
140 ***************************************************************************/
142 #define MUIMASTER_NAME "muimaster.library"
143 #define MUIMASTER_VMIN 11
144 #define MUIMASTER_VLATEST 19
147 ** !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
148 ** Warning, some of the macros in this header file work only with
149 ** muimaster.library V11 and above. If you recompile your programs,
150 ** be sure to open muimaster.library with MUIMASTER_VMIN as version number.
151 ** !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
155 /* comment this if you dont want to include obsolete identifiers */
161 /*************************************************************************
162 ** Config items for MUIM_GetConfigItem
163 *************************************************************************/
166 #define MUICFG_PublicScreen 36
171 /*************************************************************************
172 ** Black box specification structures for images, pens, frames
173 *************************************************************************/
182 /*************************************************************************
183 ** Public Screen Stuff
184 *************************************************************************/
187 ** NOTE: This stuff is only included to allow compilation of the supplied
188 ** public screen manager for educational purposes. Everything
189 ** here is subject to change without notice and I guarantee to
190 ** do that just for fun!
191 ** More info can be found in the screen manager source file.
194 #define PSD_INITIAL_NAME "(unnamed)"
195 #define PSD_INITIAL_TITLE "MUI Public Screen"
196 #define PSD_ID_MPUB MAKE_ID('M','P','U','B')
198 #define PSD_NAME_FRONTMOST "«Frontmost»"
200 #define PSD_FILENAME_SAVE "envarc:mui/PublicScreens.iff"
201 #define PSD_FILENAME_USE "env:mui/PublicScreens.iff"
203 #define PSD_MAXLEN_NAME 32
204 #define PSD_MAXLEN_TITLE 128
205 #define PSD_MAXLEN_FONT 48
206 #define PSD_MAXLEN_BACKGROUND 256
207 #define PSD_NUMCOLS 8
208 #define PSD_MAXSYSPENS 20
209 #define PSD_NUMSYSPENS 12
210 #define PSD_MAXMUIPENS 10
211 #define PSD_NUMMUIPENS MPEN_COUNT
220 struct MUI_PubScreenDesc
224 char Name
[PSD_MAXLEN_NAME
];
225 char Title
[PSD_MAXLEN_TITLE
];
226 char Font
[PSD_MAXLEN_FONT
];
227 char Background
[PSD_MAXLEN_BACKGROUND
];
244 UBYTE DummyWasForeign
;
246 BYTE SystemPens
[PSD_MAXSYSPENS
];
247 UBYTE Reserved
[1+7*4-PSD_MAXSYSPENS
];
249 struct MUI_RGBcolor Palette
[PSD_NUMCOLS
];
250 struct MUI_RGBcolor rsvd
[PSD_MAXSYSPENS
-PSD_NUMCOLS
];
252 struct MUI_PenSpec rsvd2
[PSD_MAXMUIPENS
];
258 struct MUIS_InfoClient
266 /***************************************************************************
267 ** Object Types for MUI_MakeObject()
268 ***************************************************************************/
270 #define MUIO_Label 1 /* STRPTR label, ULONG flags */
271 #define MUIO_Button 2 /* STRPTR label */
272 #define MUIO_Checkmark 3 /* STRPTR label */
273 #define MUIO_Cycle 4 /* STRPTR label, STRPTR *entries */
274 #define MUIO_Radio 5 /* STRPTR label, STRPTR *entries */
275 #define MUIO_Slider 6 /* STRPTR label, LONG min, LONG max */
276 #define MUIO_String 7 /* STRPTR label, LONG maxlen */
277 #define MUIO_PopButton 8 /* STRPTR imagespec */
278 #define MUIO_HSpace 9 /* LONG space */
279 #define MUIO_VSpace 10 /* LONG space */
280 #define MUIO_HBar 11 /* LONG space */
281 #define MUIO_VBar 12 /* LONG space */
282 #define MUIO_MenustripNM 13 /* struct NewMenu *nm, ULONG flags */
283 #define MUIO_Menuitem 14 /* STRPTR label, STRPTR shortcut, ULONG flags, ULONG data */
284 #define MUIO_BarTitle 15 /* STRPTR label */
285 #define MUIO_NumericButton 16 /* STRPTR label, LONG min, LONG max, STRPTR format */
287 #define MUIO_Menuitem_CopyStrings (1<<30)
289 #define MUIO_Label_SingleFrame (1<< 8)
290 #define MUIO_Label_DoubleFrame (1<< 9)
291 #define MUIO_Label_LeftAligned (1<<10)
292 #define MUIO_Label_Centered (1<<11)
293 #define MUIO_Label_FreeVert (1<<12)
295 #define MUIO_MenustripNM_CommandKeyCheck (1<<0) /* check for "localized" menu items such as "O\0Open" */
299 /***************************************************************************
301 ***************************************************************************/
308 struct Hook
*mc_Hook
;
312 #define MC_TEMPLATE_ID ((STRPTR)~0)
314 #define MUI_RXERR_BADDEFINITION -1
315 #define MUI_RXERR_OUTOFMEMORY -2
316 #define MUI_RXERR_UNKNOWNCOMMAND -3
317 #define MUI_RXERR_BADSYNTAX -4
320 /***************************************************************************
321 ** Return values for MUI_Error()
322 ***************************************************************************/
325 #define MUIE_OutOfMemory 1
326 #define MUIE_OutOfGfxMemory 2
327 #define MUIE_InvalidWindowObject 3
328 #define MUIE_MissingLibrary 4
329 #define MUIE_NoARexx 5
330 #define MUIE_SingleTask 6
334 /***************************************************************************
335 ** Standard MUI Images & Backgrounds
336 ***************************************************************************/
338 #define MUII_WindowBack 0 /* These images are configured */
339 #define MUII_RequesterBack 1 /* with the preferences program. */
340 #define MUII_ButtonBack 2
341 #define MUII_ListBack 3
342 #define MUII_TextBack 4
343 #define MUII_PropBack 5
344 #define MUII_PopupBack 6
345 #define MUII_SelectedBack 7
346 #define MUII_ListCursor 8
347 #define MUII_ListSelect 9
348 #define MUII_ListSelCur 10
349 #define MUII_ArrowUp 11
350 #define MUII_ArrowDown 12
351 #define MUII_ArrowLeft 13
352 #define MUII_ArrowRight 14
353 #define MUII_CheckMark 15
354 #define MUII_RadioButton 16
355 #define MUII_Cycle 17
356 #define MUII_PopUp 18
357 #define MUII_PopFile 19
358 #define MUII_PopDrawer 20
359 #define MUII_PropKnob 21
360 #define MUII_Drawer 22
361 #define MUII_HardDisk 23
364 #define MUII_Volume 26
365 #define MUII_RegisterBack 27
366 #define MUII_Network 28
367 #define MUII_Assign 29
368 #define MUII_TapePlay 30
369 #define MUII_TapePlayBack 31
370 #define MUII_TapePause 32
371 #define MUII_TapeStop 33
372 #define MUII_TapeRecord 34
373 #define MUII_GroupBack 35
374 #define MUII_SliderBack 36
375 #define MUII_SliderKnob 37
376 #define MUII_TapeUp 38
377 #define MUII_TapeDown 39
378 #define MUII_PageBack 40
379 #define MUII_ReadListBack 41
380 #define MUII_Count 42
382 #define MUII_BACKGROUND 128 /* These are direct color */
383 #define MUII_SHADOW 129 /* combinations and are not */
384 #define MUII_SHINE 130 /* affected by users prefs. */
385 #define MUII_FILL 131
386 #define MUII_SHADOWBACK 132 /* Generally, you should */
387 #define MUII_SHADOWFILL 133 /* avoid using them. Better */
388 #define MUII_SHADOWSHINE 134 /* use one of the customized */
389 #define MUII_FILLBACK 135 /* images above. */
390 #define MUII_FILLSHINE 136
391 #define MUII_SHINEBACK 137
392 #define MUII_FILLBACK2 138
393 #define MUII_HSHINEBACK 139
394 #define MUII_HSHADOWBACK 140
395 #define MUII_HSHINESHINE 141
396 #define MUII_HSHADOWSHADOW 142
397 #define MUII_MARKSHINE 143
398 #define MUII_MARKHALFSHINE 144
399 #define MUII_MARKBACKGROUND 145
400 #define MUII_LASTPAT 145
404 /***************************************************************************
405 ** Special values for some methods
406 ***************************************************************************/
408 #define MUIV_TriggerValue 0x49893131
409 #define MUIV_NotTriggerValue 0x49893133
410 #define MUIV_EveryTime 0x49893131
412 #define MUIV_Notify_Self 1
413 #define MUIV_Notify_Window 2
414 #define MUIV_Notify_Application 3
415 #define MUIV_Notify_Parent 4
417 #define MUIV_Application_Save_ENV ((STRPTR) 0)
418 #define MUIV_Application_Save_ENVARC ((STRPTR)~0)
419 #define MUIV_Application_Load_ENV ((STRPTR) 0)
420 #define MUIV_Application_Load_ENVARC ((STRPTR)~0)
422 #define MUIV_Application_ReturnID_Quit -1
424 #define MUIV_List_Insert_Top 0
425 #define MUIV_List_Insert_Active -1
426 #define MUIV_List_Insert_Sorted -2
427 #define MUIV_List_Insert_Bottom -3
429 #define MUIV_List_Remove_First 0
430 #define MUIV_List_Remove_Active -1
431 #define MUIV_List_Remove_Last -2
432 #define MUIV_List_Remove_Selected -3
434 #define MUIV_List_Select_Off 0
435 #define MUIV_List_Select_On 1
436 #define MUIV_List_Select_Toggle 2
437 #define MUIV_List_Select_Ask 3
439 #define MUIV_List_GetEntry_Active -1
440 #define MUIV_List_Select_Active -1
441 #define MUIV_List_Select_All -2
443 #define MUIV_List_Redraw_Active -1
444 #define MUIV_List_Redraw_All -2
446 #define MUIV_List_Move_Top 0
447 #define MUIV_List_Move_Active -1
448 #define MUIV_List_Move_Bottom -2
449 #define MUIV_List_Move_Next -3 /* only valid for second parameter */
450 #define MUIV_List_Move_Previous -4 /* only valid for second parameter */
452 #define MUIV_List_Exchange_Top 0
453 #define MUIV_List_Exchange_Active -1
454 #define MUIV_List_Exchange_Bottom -2
455 #define MUIV_List_Exchange_Next -3 /* only valid for second parameter */
456 #define MUIV_List_Exchange_Previous -4 /* only valid for second parameter */
458 #define MUIV_List_Jump_Top 0
459 #define MUIV_List_Jump_Active -1
460 #define MUIV_List_Jump_Bottom -2
461 #define MUIV_List_Jump_Up -4
462 #define MUIV_List_Jump_Down -3
464 #define MUIV_List_NextSelected_Start -1
465 #define MUIV_List_NextSelected_End -1
467 #define MUIV_DragQuery_Refuse 0
468 #define MUIV_DragQuery_Accept 1
470 #define MUIV_DragReport_Abort 0
471 #define MUIV_DragReport_Continue 1
472 #define MUIV_DragReport_Lock 2
473 #define MUIV_DragReport_Refresh 3
478 /***************************************************************************
479 ** Control codes for text strings
480 ***************************************************************************/
482 #define MUIX_R "\033r" /* right justified */
483 #define MUIX_C "\033c" /* centered */
484 #define MUIX_L "\033l" /* left justified */
486 #define MUIX_N "\033n" /* normal */
487 #define MUIX_B "\033b" /* bold */
488 #define MUIX_I "\033i" /* italic */
489 #define MUIX_U "\033u" /* underlined */
491 #define MUIX_PT "\0332" /* text pen */
492 #define MUIX_PH "\0338" /* highlight text pen */
496 /***************************************************************************
497 ** Parameter structures for some classes
498 ***************************************************************************/
500 struct MUI_Palette_Entry
509 #define MUIV_Palette_Entry_End -1
512 /*****************************/
513 /* Application Input Handler */
514 /*****************************/
516 struct MUI_InputHandlerNode
518 struct MinNode ihn_Node
;
532 ULONG ihn_Flags
; /* see below */
536 #define ihn_Signals ihn_stuff.ihn_sigs
537 #define ihn_Millis ihn_stuff.ihn_timer.ihn_millis
538 #define ihn_Current ihn_stuff.ihn_timer.ihn_current
540 /* Flags for ihn_Flags */
541 #define MUIIHNF_TIMER (1<<0) /* set ihn_Ticks to number of 1/100 sec ticks you want to be triggered */
544 /************************/
545 /* Window Event Handler */
546 /************************/
548 struct MUI_EventHandlerNode
550 struct MinNode ehn_Node
;
551 BYTE ehn_Reserved
; /* don't touch! */
552 BYTE ehn_Priority
; /* event handlers are inserted according to their priority. */
553 UWORD ehn_Flags
; /* certain flags, see below for definitions. */
554 Object
*ehn_Object
; /* object which should receive MUIM_HandleEvent. */
555 struct IClass
*ehn_Class
; /* if !=NULL, MUIM_HandleEvent is invoked on exactly this class with CoerceMethod(). */
556 ULONG ehn_Events
; /* one or more IDCMP flags this handler should react on. */
559 /* flags for ehn_Flags */
560 #define MUI_EHF_ALWAYSKEYS (1<<0)
562 /* other values reserved for future use */
564 /* return values for MUIM_HandleEvent (bit-masked, all other bits must be 0) */
565 #define MUI_EventHandlerRC_Eat (1<<0) /* stop MUI from calling other handlers */
568 /**********************/
569 /* List Position Test */
570 /**********************/
572 struct MUI_List_TestPos_Result
574 LONG entry
; /* number of entry, -1 if mouse not over valid entry */
575 WORD column
; /* numer of column, -1 if no valid column */
576 UWORD flags
; /* see below */
577 WORD xoffset
; /* x offset of mouse click relative to column start */
578 WORD yoffset
; /* y offset of mouse click from center of line
579 (negative values mean click was above center,
580 positive values mean click was below center) */
583 #define MUI_LPR_ABOVE (1<<0)
584 #define MUI_LPR_BELOW (1<<1)
585 #define MUI_LPR_LEFT (1<<2)
586 #define MUI_LPR_RIGHT (1<<3)
589 /***************************************************************************
594 ** To make GUI creation more easy and understandable, you can use the
595 ** macros below. If you dont want, just define MUI_NOSHORTCUTS to disable
598 ** These macros are available to C programmers only.
600 ***************************************************************************/
602 #ifndef MUI_NOSHORTCUTS
606 /***************************************************************************
611 ** The xxxObject (and xChilds) macros generate new instances of MUI classes.
612 ** Every xxxObject can be followed by tagitems specifying initial create
613 ** time attributes for the new object and must be terminated with the
616 ** obj = StringObject,
617 ** MUIA_String_Contents, "foo",
618 ** MUIA_String_MaxLen , 40,
621 ** With the Child, SubWindow and WindowContents shortcuts you can
622 ** construct a complete GUI within one command:
624 ** app = ApplicationObject,
628 ** SubWindow, WindowObject,
629 ** WindowContents, VGroup,
630 ** Child, String("foo",40),
631 ** Child, String("bar",50),
633 ** Child, CheckMark(TRUE),
634 ** Child, CheckMark(FALSE),
639 ** SubWindow, WindowObject,
640 ** WindowContents, HGroup,
650 ***************************************************************************/
652 #define MenustripObject MUI_NewObject(MUIC_Menustrip
653 #define MenuObject MUI_NewObject(MUIC_Menu
654 #define MenuObjectT(name) MUI_NewObject(MUIC_Menu,MUIA_Menu_Title,name
655 #define MenuitemObject MUI_NewObject(MUIC_Menuitem
656 #define WindowObject MUI_NewObject(MUIC_Window
657 #define ImageObject MUI_NewObject(MUIC_Image
658 #define BitmapObject MUI_NewObject(MUIC_Bitmap
659 #define BodychunkObject MUI_NewObject(MUIC_Bodychunk
660 #define NotifyObject MUI_NewObject(MUIC_Notify
661 #define ApplicationObject MUI_NewObject(MUIC_Application
662 #define TextObject MUI_NewObject(MUIC_Text
663 #define RectangleObject MUI_NewObject(MUIC_Rectangle
664 #define BalanceObject MUI_NewObject(MUIC_Balance
665 #define ListObject MUI_NewObject(MUIC_List
666 #define PropObject MUI_NewObject(MUIC_Prop
667 #define StringObject MUI_NewObject(MUIC_String
668 #define ScrollbarObject MUI_NewObject(MUIC_Scrollbar
669 #define ListviewObject MUI_NewObject(MUIC_Listview
670 #define RadioObject MUI_NewObject(MUIC_Radio
671 #define VolumelistObject MUI_NewObject(MUIC_Volumelist
672 #define FloattextObject MUI_NewObject(MUIC_Floattext
673 #define DirlistObject MUI_NewObject(MUIC_Dirlist
674 #define CycleObject MUI_NewObject(MUIC_Cycle
675 #define GaugeObject MUI_NewObject(MUIC_Gauge
676 #define ScaleObject MUI_NewObject(MUIC_Scale
677 #define NumericObject MUI_NewObject(MUIC_Numeric
678 #define SliderObject MUI_NewObject(MUIC_Slider
679 #define NumericbuttonObject MUI_NewObject(MUIC_Numericbutton
680 #define KnobObject MUI_NewObject(MUIC_Knob
681 #define LevelmeterObject MUI_NewObject(MUIC_Levelmeter
682 #define BoopsiObject MUI_NewObject(MUIC_Boopsi
683 #define ColorfieldObject MUI_NewObject(MUIC_Colorfield
684 #define PenadjustObject MUI_NewObject(MUIC_Penadjust
685 #define ColoradjustObject MUI_NewObject(MUIC_Coloradjust
686 #define PaletteObject MUI_NewObject(MUIC_Palette
687 #define GroupObject MUI_NewObject(MUIC_Group
688 #define RegisterObject MUI_NewObject(MUIC_Register
689 #define VirtgroupObject MUI_NewObject(MUIC_Virtgroup
690 #define ScrollgroupObject MUI_NewObject(MUIC_Scrollgroup
691 #define PopstringObject MUI_NewObject(MUIC_Popstring
692 #define PopobjectObject MUI_NewObject(MUIC_Popobject
693 #define PoplistObject MUI_NewObject(MUIC_Poplist
694 #define PopaslObject MUI_NewObject(MUIC_Popasl
695 #define PendisplayObject MUI_NewObject(MUIC_Pendisplay
696 #define PoppenObject MUI_NewObject(MUIC_Poppen
697 #define AboutmuiObject MUI_NewObject(MUIC_Aboutmui
698 #define ScrmodelistObject MUI_NewObject(MUIC_Scrmodelist
699 #define KeyentryObject MUI_NewObject(MUIC_Keyentry
700 #define VGroup MUI_NewObject(MUIC_Group
701 #define HGroup MUI_NewObject(MUIC_Group,MUIA_Group_Horiz,TRUE
702 #define ColGroup(cols) MUI_NewObject(MUIC_Group,MUIA_Group_Columns,(cols)
703 #define RowGroup(rows) MUI_NewObject(MUIC_Group,MUIA_Group_Rows ,(rows)
704 #define PageGroup MUI_NewObject(MUIC_Group,MUIA_Group_PageMode,TRUE
705 #define VGroupV MUI_NewObject(MUIC_Virtgroup
706 #define HGroupV MUI_NewObject(MUIC_Virtgroup,MUIA_Group_Horiz,TRUE
707 #define ColGroupV(cols) MUI_NewObject(MUIC_Virtgroup,MUIA_Group_Columns,(cols)
708 #define RowGroupV(rows) MUI_NewObject(MUIC_Virtgroup,MUIA_Group_Rows ,(rows)
709 #define PageGroupV MUI_NewObject(MUIC_Virtgroup,MUIA_Group_PageMode,TRUE
710 #define RegisterGroup(t) MUI_NewObject(MUIC_Register,MUIA_Register_Titles,(t)
711 #define End TAG_DONE)
713 #define Child MUIA_Group_Child
714 #define SubWindow MUIA_Application_Window
715 #define WindowContents MUIA_Window_RootObject
719 /***************************************************************************
724 ** These macros may be used to specify one of MUI's different frame types.
725 ** Note that every macro consists of one { ti_Tag, ti_Data } pair.
727 ** GroupFrameT() is a special kind of frame that contains a centered
730 ** HGroup, GroupFrameT("Horiz Groups"),
731 ** Child, RectangleObject, TextFrame , End,
732 ** Child, RectangleObject, StringFrame, End,
733 ** Child, RectangleObject, ButtonFrame, End,
734 ** Child, RectangleObject, ListFrame , End,
737 ***************************************************************************/
739 #define NoFrame MUIA_Frame, MUIV_Frame_None
740 #define ButtonFrame MUIA_Frame, MUIV_Frame_Button
741 #define ImageButtonFrame MUIA_Frame, MUIV_Frame_ImageButton
742 #define TextFrame MUIA_Frame, MUIV_Frame_Text
743 #define StringFrame MUIA_Frame, MUIV_Frame_String
744 #define ReadListFrame MUIA_Frame, MUIV_Frame_ReadList
745 #define InputListFrame MUIA_Frame, MUIV_Frame_InputList
746 #define PropFrame MUIA_Frame, MUIV_Frame_Prop
747 #define SliderFrame MUIA_Frame, MUIV_Frame_Slider
748 #define GaugeFrame MUIA_Frame, MUIV_Frame_Gauge
749 #define VirtualFrame MUIA_Frame, MUIV_Frame_Virtual
750 #define GroupFrame MUIA_Frame, MUIV_Frame_Group
751 #define GroupFrameT(s) MUIA_Frame, MUIV_Frame_Group, MUIA_FrameTitle, s, MUIA_Background, MUII_GroupBack
755 /***************************************************************************
760 ***************************************************************************/
762 #define HVSpace MUI_NewObject(MUIC_Rectangle,TAG_DONE)
763 #define HSpace(x) MUI_MakeObject(MUIO_HSpace,x)
764 #define VSpace(x) MUI_MakeObject(MUIO_VSpace,x)
765 #define HCenter(obj) (HGroup, GroupSpacing(0), Child, HSpace(0), Child, (obj), Child, HSpace(0), End)
766 #define VCenter(obj) (VGroup, GroupSpacing(0), Child, VSpace(0), Child, (obj), Child, VSpace(0), End)
767 #define InnerSpacing(h,v) MUIA_InnerLeft,(h),MUIA_InnerRight,(h),MUIA_InnerTop,(v),MUIA_InnerBottom,(v)
768 #define GroupSpacing(x) MUIA_Group_Spacing,x
774 /***************************************************************************
779 ** The following macro creates a simple string gadget.
781 ***************************************************************************/
783 #define String(contents,maxlen)\
786 MUIA_String_MaxLen , maxlen,\
787 MUIA_String_Contents, contents,\
790 #define KeyString(contents,maxlen,controlchar)\
793 MUIA_ControlChar , controlchar,\
794 MUIA_String_MaxLen , maxlen,\
795 MUIA_String_Contents, contents,\
804 /***************************************************************************
809 ** The following macro creates a checkmark gadget.
811 ***************************************************************************/
813 #define CheckMark(selected)\
816 MUIA_InputMode , MUIV_InputMode_Toggle,\
817 MUIA_Image_Spec , MUII_CheckMark,\
818 MUIA_Image_FreeVert , TRUE,\
819 MUIA_Selected , selected,\
820 MUIA_Background , MUII_ButtonBack,\
821 MUIA_ShowSelState , FALSE,\
824 #define KeyCheckMark(selected,control)\
827 MUIA_InputMode , MUIV_InputMode_Toggle,\
828 MUIA_Image_Spec , MUII_CheckMark,\
829 MUIA_Image_FreeVert , TRUE,\
830 MUIA_Selected , selected,\
831 MUIA_Background , MUII_ButtonBack,\
832 MUIA_ShowSelState , FALSE,\
833 MUIA_ControlChar , control,\
839 /***************************************************************************
844 ** Note: Use small letters for KeyButtons, e.g.
845 ** KeyButton("Cancel",'c') and not KeyButton("Cancel",'C') !!
847 ***************************************************************************/
849 #define SimpleButton(label) MUI_MakeObject(MUIO_Button,label)
853 #define KeyButton(name,key)\
856 MUIA_Font, MUIV_Font_Button,\
857 MUIA_Text_Contents, name,\
858 MUIA_Text_PreParse, "\33c",\
859 MUIA_Text_HiChar , key,\
860 MUIA_ControlChar , key,\
861 MUIA_InputMode , MUIV_InputMode_RelVerify,\
862 MUIA_Background , MUII_ButtonBack,\
870 /***************************************************************************
875 ***************************************************************************/
877 #define Cycle(entries) CycleObject, MUIA_Font, MUIV_Font_Button, MUIA_Cycle_Entries, entries, End
878 #define KeyCycle(entries,key) CycleObject, MUIA_Font, MUIV_Font_Button, MUIA_Cycle_Entries, entries, MUIA_ControlChar, key, End
882 /***************************************************************************
887 ***************************************************************************/
889 #define Radio(name,array)\
892 MUIA_Radio_Entries,array,\
895 #define KeyRadio(name,array,key)\
898 MUIA_Radio_Entries,array,\
899 MUIA_ControlChar, key,\
904 /***************************************************************************
909 ***************************************************************************/
912 #define Slider(min,max,level)\
914 MUIA_Numeric_Min , min,\
915 MUIA_Numeric_Max , max,\
916 MUIA_Numeric_Value, level,\
919 #define KeySlider(min,max,level,key)\
921 MUIA_Numeric_Min , min,\
922 MUIA_Numeric_Max , max,\
923 MUIA_Numeric_Value, level,\
924 MUIA_ControlChar , key,\
931 /***************************************************************************
933 ** Button to be used for popup objects
935 ***************************************************************************/
937 #define PopButton(img) MUI_MakeObject(MUIO_PopButton,img)
941 /***************************************************************************
946 ** Labeling objects, e.g. a group of string gadgets,
953 ** is done using a 2 column group:
956 ** Child, Label2("Small:" ),
957 ** Child, StringObject, End,
958 ** Child, Label2("Normal:"),
959 ** Child, StringObject, End,
960 ** Child, Label2("Big:" ),
961 ** Child, StringObject, End,
962 ** Child, Label2("Huge:" ),
963 ** Child, StringObject, End,
966 ** Note that we have three versions of the label macro, depending on
967 ** the frame type of the right hand object:
969 ** Label1(): For use with standard frames (e.g. checkmarks).
970 ** Label2(): For use with double high frames (e.g. string gadgets).
971 ** Label() : For use with objects without a frame.
973 ** These macros ensure that your label will look fine even if the
974 ** user of your application configured some strange spacing values.
975 ** If you want to use your own labeling, you'll have to pay attention
976 ** on this topic yourself.
978 ***************************************************************************/
980 #define Label(label) MUI_MakeObject(MUIO_Label,label,0)
981 #define Label1(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_SingleFrame)
982 #define Label2(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_DoubleFrame)
983 #define LLabel(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned)
984 #define LLabel1(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|MUIO_Label_SingleFrame)
985 #define LLabel2(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|MUIO_Label_DoubleFrame)
986 #define CLabel(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_Centered)
987 #define CLabel1(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_Centered|MUIO_Label_SingleFrame)
988 #define CLabel2(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_Centered|MUIO_Label_DoubleFrame)
990 #define FreeLabel(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert)
991 #define FreeLabel1(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_SingleFrame)
992 #define FreeLabel2(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_DoubleFrame)
993 #define FreeLLabel(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_LeftAligned)
994 #define FreeLLabel1(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_LeftAligned|MUIO_Label_SingleFrame)
995 #define FreeLLabel2(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_LeftAligned|MUIO_Label_DoubleFrame)
996 #define FreeCLabel(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_Centered)
997 #define FreeCLabel1(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_Centered|MUIO_Label_SingleFrame)
998 #define FreeCLabel2(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_Centered|MUIO_Label_DoubleFrame)
1000 #define KeyLabel(label,key) MUI_MakeObject(MUIO_Label,label,key)
1001 #define KeyLabel1(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_SingleFrame|(key))
1002 #define KeyLabel2(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_DoubleFrame|(key))
1003 #define KeyLLabel(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|(key))
1004 #define KeyLLabel1(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|MUIO_Label_SingleFrame|(key))
1005 #define KeyLLabel2(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|MUIO_Label_DoubleFrame|(key))
1006 #define KeyCLabel(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_Centered|(key))
1007 #define KeyCLabel1(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_Centered|MUIO_Label_SingleFrame|(key))
1008 #define KeyCLabel2(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_Centered|MUIO_Label_DoubleFrame|(key))
1010 #define FreeKeyLabel(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|(key))
1011 #define FreeKeyLabel1(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_SingleFrame|(key))
1012 #define FreeKeyLabel2(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_DoubleFrame|(key))
1013 #define FreeKeyLLabel(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_LeftAligned|(key))
1014 #define FreeKeyLLabel1(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_LeftAligned|MUIO_Label_SingleFrame|(key))
1015 #define FreeKeyLLabel2(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_LeftAligned|MUIO_Label_DoubleFrame|(key))
1016 #define FreeKeyCLabel(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_Centered|(key))
1017 #define FreeKeyCLabel1(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_Centered|MUIO_Label_SingleFrame|(key))
1018 #define FreeKeyCLabel2(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_Centered|MUIO_Label_DoubleFrame|(key))
1022 /***************************************************************************
1024 ** Controlling Objects
1025 ** -------------------
1027 ** set() and get() are two short stubs for BOOPSI GetAttr() and SetAttrs()
1033 ** set(obj,MUIA_String_Contents,"foobar");
1034 ** get(obj,MUIA_String_Contents,&x);
1036 ** printf("gadget contains '%s'\n",x);
1039 ** nnset() sets an attribute without triggering a possible notification.
1041 ***************************************************************************/
1045 #define get(obj,attr,store) GetAttr(attr,obj,(ULONG *)store)
1046 #define set(obj,attr,value) SetAttrs(obj,attr,value,TAG_DONE)
1047 #define nnset(obj,attr,value) SetAttrs(obj,MUIA_NoNotify,TRUE,attr,value,TAG_DONE)
1049 #define setmutex(obj,n) set(obj,MUIA_Radio_Active,n)
1050 #define setcycle(obj,n) set(obj,MUIA_Cycle_Active,n)
1051 #define setstring(obj,s) set(obj,MUIA_String_Contents,s)
1052 #define setcheckmark(obj,b) set(obj,MUIA_Selected,b)
1053 #define setslider(obj,l) set(obj,MUIA_Numeric_Value,l)
1058 #endif /* MUI_NOSHORTCUTS */
1061 /***************************************************************************
1063 ** For Boopsi Image Implementors Only:
1065 ** If MUI is using a boopsi image object, it will send a special method
1066 ** immediately after object creation. This method has a parameter structure
1067 ** where the boopsi can fill in its minimum and maximum size and learn if
1068 ** its used in a horizontal or vertical context.
1070 ** The boopsi image must use the method id (MUIM_BoopsiQuery) as return
1071 ** value. That's how MUI sees that the method is implemented.
1073 ** Note: MUI does not depend on this method. If the boopsi image doesn't
1074 ** implement it, minimum size will be 0 and maximum size unlimited.
1076 ***************************************************************************/
1078 #define MUIM_BoopsiQuery 0x80427157 /* this is send to the boopsi and */
1079 /* must be used as return value */
1081 struct MUI_BoopsiQuery
/* parameter structure */
1083 ULONG mbq_MethodID
; /* always MUIM_BoopsiQuery */
1085 struct Screen
*mbq_Screen
; /* obsolete, use mbq_RenderInfo */
1086 ULONG mbq_Flags
; /* read only, see below */
1088 LONG mbq_MinWidth
; /* write only, fill in min width */
1089 LONG mbq_MinHeight
; /* write only, fill in min height */
1090 LONG mbq_MaxWidth
; /* write only, fill in max width */
1091 LONG mbq_MaxHeight
; /* write only, fill in max height */
1092 LONG mbq_DefWidth
; /* write only, fill in def width */
1093 LONG mbq_DefHeight
; /* write only, fill in def height */
1095 struct MUI_RenderInfo
*mbq_RenderInfo
; /* read only, display context */
1097 /* may grow in future ... */
1100 #define MUIP_BoopsiQuery MUI_BoopsiQuery /* old structure name */
1102 #define MBQF_HORIZ (1<<0) /* object used in a horizontal */
1103 /* context (else vertical) */
1105 #define MBQ_MUI_MAXMAX (10000) /* use this for unlimited MaxWidth/Height */
1108 /*******************************************/
1109 /* Begin of automatic header file creation */
1110 /*******************************************/
1115 /****************************************************************************/
1117 /****************************************************************************/
1120 extern char MUIC_Notify
[];
1122 #define MUIC_Notify "Notify.mui"
1127 #define MUIM_CallHook 0x8042b96b /* V4 */
1128 #define MUIM_Export 0x80420f1c /* V12 */
1129 #define MUIM_FindUData 0x8042c196 /* V8 */
1130 #define MUIM_GetConfigItem 0x80423edb /* V11 */
1131 #define MUIM_GetUData 0x8042ed0c /* V8 */
1132 #define MUIM_Import 0x8042d012 /* V12 */
1133 #define MUIM_KillNotify 0x8042d240 /* V4 */
1134 #define MUIM_KillNotifyObj 0x8042b145 /* V16 */
1135 #define MUIM_MultiSet 0x8042d356 /* V7 */
1136 #define MUIM_NoNotifySet 0x8042216f /* V9 */
1137 #define MUIM_Notify 0x8042c9cb /* V4 */
1138 #define MUIM_Set 0x8042549a /* V4 */
1139 #define MUIM_SetAsString 0x80422590 /* V4 */
1140 #define MUIM_SetUData 0x8042c920 /* V8 */
1141 #define MUIM_SetUDataOnce 0x8042ca19 /* V11 */
1142 #define MUIM_WriteLong 0x80428d86 /* V6 */
1143 #define MUIM_WriteString 0x80424bf4 /* V6 */
1144 struct MUIP_CallHook
{ ULONG MethodID
; struct Hook
*Hook
; ULONG param1
; /* ... */ };
1145 struct MUIP_Export
{ ULONG MethodID
; Object
*dataspace
; };
1146 struct MUIP_FindUData
{ ULONG MethodID
; ULONG udata
; };
1147 struct MUIP_GetConfigItem
{ ULONG MethodID
; ULONG id
; ULONG
*storage
; };
1148 struct MUIP_GetUData
{ ULONG MethodID
; ULONG udata
; ULONG attr
; ULONG
*storage
; };
1149 struct MUIP_Import
{ ULONG MethodID
; Object
*dataspace
; };
1150 struct MUIP_KillNotify
{ ULONG MethodID
; ULONG TrigAttr
; };
1151 struct MUIP_KillNotifyObj
{ ULONG MethodID
; ULONG TrigAttr
; Object
*dest
; };
1152 struct MUIP_MultiSet
{ ULONG MethodID
; ULONG attr
; ULONG val
; APTR obj
; /* ... */ };
1153 struct MUIP_NoNotifySet
{ ULONG MethodID
; ULONG attr
; char *format
; ULONG val
; /* ... */ };
1154 struct MUIP_Notify
{ ULONG MethodID
; ULONG TrigAttr
; ULONG TrigVal
; APTR DestObj
; ULONG FollowParams
; /* ... */ };
1155 struct MUIP_Set
{ ULONG MethodID
; ULONG attr
; ULONG val
; };
1156 struct MUIP_SetAsString
{ ULONG MethodID
; ULONG attr
; char *format
; ULONG val
; /* ... */ };
1157 struct MUIP_SetUData
{ ULONG MethodID
; ULONG udata
; ULONG attr
; ULONG val
; };
1158 struct MUIP_SetUDataOnce
{ ULONG MethodID
; ULONG udata
; ULONG attr
; ULONG val
; };
1159 struct MUIP_WriteLong
{ ULONG MethodID
; ULONG val
; ULONG
*memory
; };
1160 struct MUIP_WriteString
{ ULONG MethodID
; char *str
; char *memory
; };
1164 #define MUIA_ApplicationObject 0x8042d3ee /* V4 ..g Object * */
1165 #define MUIA_AppMessage 0x80421955 /* V5 ..g struct AppMessage * */
1166 #define MUIA_HelpLine 0x8042a825 /* V4 isg LONG */
1167 #define MUIA_HelpNode 0x80420b85 /* V4 isg STRPTR */
1168 #define MUIA_NoNotify 0x804237f9 /* V7 .s. BOOL */
1169 #define MUIA_ObjectID 0x8042d76e /* V11 isg ULONG */
1170 #define MUIA_Parent 0x8042e35f /* V11 ..g Object * */
1171 #define MUIA_Revision 0x80427eaa /* V4 ..g LONG */
1172 #define MUIA_UserData 0x80420313 /* V4 isg ULONG */
1173 #define MUIA_Version 0x80422301 /* V4 ..g LONG */
1177 /****************************************************************************/
1179 /****************************************************************************/
1182 extern char MUIC_Family
[];
1184 #define MUIC_Family "Family.mui"
1189 #define MUIM_Family_AddHead 0x8042e200 /* V8 */
1190 #define MUIM_Family_AddTail 0x8042d752 /* V8 */
1191 #define MUIM_Family_Insert 0x80424d34 /* V8 */
1192 #define MUIM_Family_Remove 0x8042f8a9 /* V8 */
1193 #define MUIM_Family_Sort 0x80421c49 /* V8 */
1194 #define MUIM_Family_Transfer 0x8042c14a /* V8 */
1195 struct MUIP_Family_AddHead
{ ULONG MethodID
; Object
*obj
; };
1196 struct MUIP_Family_AddTail
{ ULONG MethodID
; Object
*obj
; };
1197 struct MUIP_Family_Insert
{ ULONG MethodID
; Object
*obj
; Object
*pred
; };
1198 struct MUIP_Family_Remove
{ ULONG MethodID
; Object
*obj
; };
1199 struct MUIP_Family_Sort
{ ULONG MethodID
; Object
*obj
[1]; };
1200 struct MUIP_Family_Transfer
{ ULONG MethodID
; Object
*family
; };
1204 #define MUIA_Family_Child 0x8042c696 /* V8 i.. Object * */
1205 #define MUIA_Family_List 0x80424b9e /* V8 ..g struct MinList * */
1209 /****************************************************************************/
1211 /****************************************************************************/
1214 extern char MUIC_Menustrip
[];
1216 #define MUIC_Menustrip "Menustrip.mui"
1224 #define MUIA_Menustrip_Enabled 0x8042815b /* V8 isg BOOL */
1228 /****************************************************************************/
1230 /****************************************************************************/
1233 extern char MUIC_Menu
[];
1235 #define MUIC_Menu "Menu.mui"
1243 #define MUIA_Menu_Enabled 0x8042ed48 /* V8 isg BOOL */
1244 #define MUIA_Menu_Title 0x8042a0e3 /* V8 isg STRPTR */
1248 /****************************************************************************/
1250 /****************************************************************************/
1253 extern char MUIC_Menuitem
[];
1255 #define MUIC_Menuitem "Menuitem.mui"
1263 #define MUIA_Menuitem_Checked 0x8042562a /* V8 isg BOOL */
1264 #define MUIA_Menuitem_Checkit 0x80425ace /* V8 isg BOOL */
1265 #define MUIA_Menuitem_CommandString 0x8042b9cc /* V16 isg BOOL */
1266 #define MUIA_Menuitem_Enabled 0x8042ae0f /* V8 isg BOOL */
1267 #define MUIA_Menuitem_Exclude 0x80420bc6 /* V8 isg LONG */
1268 #define MUIA_Menuitem_Shortcut 0x80422030 /* V8 isg STRPTR */
1269 #define MUIA_Menuitem_Title 0x804218be /* V8 isg STRPTR */
1270 #define MUIA_Menuitem_Toggle 0x80424d5c /* V8 isg BOOL */
1271 #define MUIA_Menuitem_Trigger 0x80426f32 /* V8 ..g struct MenuItem * */
1273 #define MUIV_Menuitem_Shortcut_Check -1
1276 /****************************************************************************/
1278 /****************************************************************************/
1281 extern char MUIC_Application
[];
1283 #define MUIC_Application "Application.mui"
1288 #define MUIM_Application_AboutMUI 0x8042d21d /* V14 */
1289 #define MUIM_Application_AddInputHandler 0x8042f099 /* V11 */
1290 #define MUIM_Application_CheckRefresh 0x80424d68 /* V11 */
1292 #define MUIM_Application_GetMenuCheck 0x8042c0a7 /* V4 */
1293 #endif /* MUI_OBSOLETE */
1295 #define MUIM_Application_GetMenuState 0x8042a58f /* V4 */
1296 #endif /* MUI_OBSOLETE */
1298 #define MUIM_Application_Input 0x8042d0f5 /* V4 */
1299 #endif /* MUI_OBSOLETE */
1300 #define MUIM_Application_InputBuffered 0x80427e59 /* V4 */
1301 #define MUIM_Application_Load 0x8042f90d /* V4 */
1302 #define MUIM_Application_NewInput 0x80423ba6 /* V11 */
1303 #define MUIM_Application_OpenConfigWindow 0x804299ba /* V11 */
1304 #define MUIM_Application_PushMethod 0x80429ef8 /* V4 */
1305 #define MUIM_Application_RemInputHandler 0x8042e7af /* V11 */
1306 #define MUIM_Application_ReturnID 0x804276ef /* V4 */
1307 #define MUIM_Application_Save 0x804227ef /* V4 */
1308 #define MUIM_Application_SetConfigItem 0x80424a80 /* V11 */
1310 #define MUIM_Application_SetMenuCheck 0x8042a707 /* V4 */
1311 #endif /* MUI_OBSOLETE */
1313 #define MUIM_Application_SetMenuState 0x80428bef /* V4 */
1314 #endif /* MUI_OBSOLETE */
1315 #define MUIM_Application_ShowHelp 0x80426479 /* V4 */
1316 struct MUIP_Application_AboutMUI
{ ULONG MethodID
; Object
*refwindow
; };
1317 struct MUIP_Application_AddInputHandler
{ ULONG MethodID
; struct MUI_InputHandlerNode
*ihnode
; };
1318 struct MUIP_Application_CheckRefresh
{ ULONG MethodID
; };
1319 struct MUIP_Application_GetMenuCheck
{ ULONG MethodID
; ULONG MenuID
; };
1320 struct MUIP_Application_GetMenuState
{ ULONG MethodID
; ULONG MenuID
; };
1321 struct MUIP_Application_Input
{ ULONG MethodID
; LONGBITS
*signal
; };
1322 struct MUIP_Application_InputBuffered
{ ULONG MethodID
; };
1323 struct MUIP_Application_Load
{ ULONG MethodID
; STRPTR name
; };
1324 struct MUIP_Application_NewInput
{ ULONG MethodID
; LONGBITS
*signal
; };
1325 struct MUIP_Application_OpenConfigWindow
{ ULONG MethodID
; ULONG flags
; };
1326 struct MUIP_Application_PushMethod
{ ULONG MethodID
; Object
*dest
; LONG count
; /* ... */ };
1327 struct MUIP_Application_RemInputHandler
{ ULONG MethodID
; struct MUI_InputHandlerNode
*ihnode
; };
1328 struct MUIP_Application_ReturnID
{ ULONG MethodID
; ULONG retid
; };
1329 struct MUIP_Application_Save
{ ULONG MethodID
; STRPTR name
; };
1330 struct MUIP_Application_SetConfigItem
{ ULONG MethodID
; ULONG item
; APTR data
; };
1331 struct MUIP_Application_SetMenuCheck
{ ULONG MethodID
; ULONG MenuID
; LONG stat
; };
1332 struct MUIP_Application_SetMenuState
{ ULONG MethodID
; ULONG MenuID
; LONG stat
; };
1333 struct MUIP_Application_ShowHelp
{ ULONG MethodID
; Object
*window
; char *name
; char *node
; LONG line
; };
1337 #define MUIA_Application_Active 0x804260ab /* V4 isg BOOL */
1338 #define MUIA_Application_Author 0x80424842 /* V4 i.g STRPTR */
1339 #define MUIA_Application_Base 0x8042e07a /* V4 i.g STRPTR */
1340 #define MUIA_Application_Broker 0x8042dbce /* V4 ..g Broker * */
1341 #define MUIA_Application_BrokerHook 0x80428f4b /* V4 isg struct Hook * */
1342 #define MUIA_Application_BrokerPort 0x8042e0ad /* V6 ..g struct MsgPort * */
1343 #define MUIA_Application_BrokerPri 0x8042c8d0 /* V6 i.g LONG */
1344 #define MUIA_Application_Commands 0x80428648 /* V4 isg struct MUI_Command * */
1345 #define MUIA_Application_Copyright 0x8042ef4d /* V4 i.g STRPTR */
1346 #define MUIA_Application_Description 0x80421fc6 /* V4 i.g STRPTR */
1347 #define MUIA_Application_DiskObject 0x804235cb /* V4 isg struct DiskObject * */
1348 #define MUIA_Application_DoubleStart 0x80423bc6 /* V4 ..g BOOL */
1349 #define MUIA_Application_DropObject 0x80421266 /* V5 is. Object * */
1350 #define MUIA_Application_ForceQuit 0x804257df /* V8 ..g BOOL */
1351 #define MUIA_Application_HelpFile 0x804293f4 /* V8 isg STRPTR */
1352 #define MUIA_Application_Iconified 0x8042a07f /* V4 .sg BOOL */
1354 #define MUIA_Application_Menu 0x80420e1f /* V4 i.g struct NewMenu * */
1355 #endif /* MUI_OBSOLETE */
1356 #define MUIA_Application_MenuAction 0x80428961 /* V4 ..g ULONG */
1357 #define MUIA_Application_MenuHelp 0x8042540b /* V4 ..g ULONG */
1358 #define MUIA_Application_Menustrip 0x804252d9 /* V8 i.. Object * */
1359 #define MUIA_Application_RexxHook 0x80427c42 /* V7 isg struct Hook * */
1360 #define MUIA_Application_RexxMsg 0x8042fd88 /* V4 ..g struct RxMsg * */
1361 #define MUIA_Application_RexxString 0x8042d711 /* V4 .s. STRPTR */
1362 #define MUIA_Application_SingleTask 0x8042a2c8 /* V4 i.. BOOL */
1363 #define MUIA_Application_Sleep 0x80425711 /* V4 .s. BOOL */
1364 #define MUIA_Application_Title 0x804281b8 /* V4 i.g STRPTR */
1365 #define MUIA_Application_UseCommodities 0x80425ee5 /* V10 i.. BOOL */
1366 #define MUIA_Application_UseRexx 0x80422387 /* V10 i.. BOOL */
1367 #define MUIA_Application_Version 0x8042b33f /* V4 i.g STRPTR */
1368 #define MUIA_Application_Window 0x8042bfe0 /* V4 i.. Object * */
1369 #define MUIA_Application_WindowList 0x80429abe /* V13 ..g struct List * */
1371 #define MUIV_Application_Package_NetConnect 0xa3ff7b49
1374 /****************************************************************************/
1376 /****************************************************************************/
1379 extern char MUIC_Window
[];
1381 #define MUIC_Window "Window.mui"
1386 #define MUIM_Window_AddEventHandler 0x804203b7 /* V16 */
1388 #define MUIM_Window_GetMenuCheck 0x80420414 /* V4 */
1389 #endif /* MUI_OBSOLETE */
1391 #define MUIM_Window_GetMenuState 0x80420d2f /* V4 */
1392 #endif /* MUI_OBSOLETE */
1393 #define MUIM_Window_RemEventHandler 0x8042679e /* V16 */
1394 #define MUIM_Window_ScreenToBack 0x8042913d /* V4 */
1395 #define MUIM_Window_ScreenToFront 0x804227a4 /* V4 */
1397 #define MUIM_Window_SetCycleChain 0x80426510 /* V4 */
1398 #endif /* MUI_OBSOLETE */
1400 #define MUIM_Window_SetMenuCheck 0x80422243 /* V4 */
1401 #endif /* MUI_OBSOLETE */
1403 #define MUIM_Window_SetMenuState 0x80422b5e /* V4 */
1404 #endif /* MUI_OBSOLETE */
1405 #define MUIM_Window_Snapshot 0x8042945e /* V11 */
1406 #define MUIM_Window_ToBack 0x8042152e /* V4 */
1407 #define MUIM_Window_ToFront 0x8042554f /* V4 */
1408 struct MUIP_Window_AddEventHandler
{ ULONG MethodID
; struct MUI_EventHandlerNode
*ehnode
; };
1409 struct MUIP_Window_GetMenuCheck
{ ULONG MethodID
; ULONG MenuID
; };
1410 struct MUIP_Window_GetMenuState
{ ULONG MethodID
; ULONG MenuID
; };
1411 struct MUIP_Window_RemEventHandler
{ ULONG MethodID
; struct MUI_EventHandlerNode
*ehnode
; };
1412 struct MUIP_Window_ScreenToBack
{ ULONG MethodID
; };
1413 struct MUIP_Window_ScreenToFront
{ ULONG MethodID
; };
1414 struct MUIP_Window_SetCycleChain
{ ULONG MethodID
; Object
*obj
[1]; };
1415 struct MUIP_Window_SetMenuCheck
{ ULONG MethodID
; ULONG MenuID
; LONG stat
; };
1416 struct MUIP_Window_SetMenuState
{ ULONG MethodID
; ULONG MenuID
; LONG stat
; };
1417 struct MUIP_Window_Snapshot
{ ULONG MethodID
; LONG flags
; };
1418 struct MUIP_Window_ToBack
{ ULONG MethodID
; };
1419 struct MUIP_Window_ToFront
{ ULONG MethodID
; };
1423 #define MUIA_Window_Activate 0x80428d2f /* V4 isg BOOL */
1424 #define MUIA_Window_ActiveObject 0x80427925 /* V4 .sg Object * */
1425 #define MUIA_Window_AltHeight 0x8042cce3 /* V4 i.g LONG */
1426 #define MUIA_Window_AltLeftEdge 0x80422d65 /* V4 i.g LONG */
1427 #define MUIA_Window_AltTopEdge 0x8042e99b /* V4 i.g LONG */
1428 #define MUIA_Window_AltWidth 0x804260f4 /* V4 i.g LONG */
1429 #define MUIA_Window_AppWindow 0x804280cf /* V5 i.. BOOL */
1430 #define MUIA_Window_Backdrop 0x8042c0bb /* V4 i.. BOOL */
1431 #define MUIA_Window_Borderless 0x80429b79 /* V4 i.. BOOL */
1432 #define MUIA_Window_CloseGadget 0x8042a110 /* V4 i.. BOOL */
1433 #define MUIA_Window_CloseRequest 0x8042e86e /* V4 ..g BOOL */
1434 #define MUIA_Window_DefaultObject 0x804294d7 /* V4 isg Object * */
1435 #define MUIA_Window_DepthGadget 0x80421923 /* V4 i.. BOOL */
1436 #define MUIA_Window_DragBar 0x8042045d /* V4 i.. BOOL */
1437 #define MUIA_Window_FancyDrawing 0x8042bd0e /* V8 isg BOOL */
1438 #define MUIA_Window_Height 0x80425846 /* V4 i.g LONG */
1439 #define MUIA_Window_ID 0x804201bd /* V4 isg ULONG */
1440 #define MUIA_Window_InputEvent 0x804247d8 /* V4 ..g struct InputEvent * */
1441 #define MUIA_Window_IsSubWindow 0x8042b5aa /* V4 isg BOOL */
1442 #define MUIA_Window_LeftEdge 0x80426c65 /* V4 i.g LONG */
1444 #define MUIA_Window_Menu 0x8042db94 /* V4 i.. struct NewMenu * */
1445 #endif /* MUI_OBSOLETE */
1446 #define MUIA_Window_MenuAction 0x80427521 /* V8 isg ULONG */
1447 #define MUIA_Window_Menustrip 0x8042855e /* V8 i.g Object * */
1448 #define MUIA_Window_MouseObject 0x8042bf9b /* V10 ..g Object * */
1449 #define MUIA_Window_NeedsMouseObject 0x8042372a /* V10 i.. BOOL */
1450 #define MUIA_Window_NoMenus 0x80429df5 /* V4 is. BOOL */
1451 #define MUIA_Window_Open 0x80428aa0 /* V4 .sg BOOL */
1452 #define MUIA_Window_PublicScreen 0x804278e4 /* V6 isg STRPTR */
1453 #define MUIA_Window_RefWindow 0x804201f4 /* V4 is. Object * */
1454 #define MUIA_Window_RootObject 0x8042cba5 /* V4 isg Object * */
1455 #define MUIA_Window_Screen 0x8042df4f /* V4 isg struct Screen * */
1456 #define MUIA_Window_ScreenTitle 0x804234b0 /* V5 isg STRPTR */
1457 #define MUIA_Window_SizeGadget 0x8042e33d /* V4 i.. BOOL */
1458 #define MUIA_Window_SizeRight 0x80424780 /* V4 i.. BOOL */
1459 #define MUIA_Window_Sleep 0x8042e7db /* V4 .sg BOOL */
1460 #define MUIA_Window_Title 0x8042ad3d /* V4 isg STRPTR */
1461 #define MUIA_Window_TopEdge 0x80427c66 /* V4 i.g LONG */
1462 #define MUIA_Window_UseBottomBorderScroller 0x80424e79 /* V13 isg BOOL */
1463 #define MUIA_Window_UseLeftBorderScroller 0x8042433e /* V13 isg BOOL */
1464 #define MUIA_Window_UseRightBorderScroller 0x8042c05e /* V13 isg BOOL */
1465 #define MUIA_Window_Width 0x8042dcae /* V4 i.g LONG */
1466 #define MUIA_Window_Window 0x80426a42 /* V4 ..g struct Window * */
1468 #define MUIV_Window_ActiveObject_None 0
1469 #define MUIV_Window_ActiveObject_Next -1
1470 #define MUIV_Window_ActiveObject_Prev -2
1471 #define MUIV_Window_AltHeight_MinMax(p) (0-(p))
1472 #define MUIV_Window_AltHeight_Visible(p) (-100-(p))
1473 #define MUIV_Window_AltHeight_Screen(p) (-200-(p))
1474 #define MUIV_Window_AltHeight_Scaled -1000
1475 #define MUIV_Window_AltLeftEdge_Centered -1
1476 #define MUIV_Window_AltLeftEdge_Moused -2
1477 #define MUIV_Window_AltLeftEdge_NoChange -1000
1478 #define MUIV_Window_AltTopEdge_Centered -1
1479 #define MUIV_Window_AltTopEdge_Moused -2
1480 #define MUIV_Window_AltTopEdge_Delta(p) (-3-(p))
1481 #define MUIV_Window_AltTopEdge_NoChange -1000
1482 #define MUIV_Window_AltWidth_MinMax(p) (0-(p))
1483 #define MUIV_Window_AltWidth_Visible(p) (-100-(p))
1484 #define MUIV_Window_AltWidth_Screen(p) (-200-(p))
1485 #define MUIV_Window_AltWidth_Scaled -1000
1486 #define MUIV_Window_Height_MinMax(p) (0-(p))
1487 #define MUIV_Window_Height_Visible(p) (-100-(p))
1488 #define MUIV_Window_Height_Screen(p) (-200-(p))
1489 #define MUIV_Window_Height_Scaled -1000
1490 #define MUIV_Window_Height_Default -1001
1491 #define MUIV_Window_LeftEdge_Centered -1
1492 #define MUIV_Window_LeftEdge_Moused -2
1494 #define MUIV_Window_Menu_NoMenu -1
1495 #endif /* MUI_OBSOLETE */
1496 #define MUIV_Window_TopEdge_Centered -1
1497 #define MUIV_Window_TopEdge_Moused -2
1498 #define MUIV_Window_TopEdge_Delta(p) (-3-(p))
1499 #define MUIV_Window_Width_MinMax(p) (0-(p))
1500 #define MUIV_Window_Width_Visible(p) (-100-(p))
1501 #define MUIV_Window_Width_Screen(p) (-200-(p))
1502 #define MUIV_Window_Width_Scaled -1000
1503 #define MUIV_Window_Width_Default -1001
1506 /****************************************************************************/
1508 /****************************************************************************/
1511 extern char MUIC_Aboutmui
[];
1513 #define MUIC_Aboutmui "Aboutmui.mui"
1521 #define MUIA_Aboutmui_Application 0x80422523 /* V11 i.. Object * */
1525 /****************************************************************************/
1527 /****************************************************************************/
1530 extern char MUIC_Area
[];
1532 #define MUIC_Area "Area.mui"
1537 #define MUIM_AskMinMax 0x80423874 /* Custom Class */ /* V4 */
1538 #define MUIM_Cleanup 0x8042d985 /* Custom Class */ /* V4 */
1539 #define MUIM_ContextMenuBuild 0x80429d2e /* V11 */
1540 #define MUIM_ContextMenuChoice 0x80420f0e /* V11 */
1541 #define MUIM_CreateBubble 0x80421c41 /* V18 */
1542 #define MUIM_CreateShortHelp 0x80428e93 /* V11 */
1543 #define MUIM_DeleteBubble 0x804211af /* V18 */
1544 #define MUIM_DeleteShortHelp 0x8042d35a /* V11 */
1545 #define MUIM_DragBegin 0x8042c03a /* V11 */
1546 #define MUIM_DragDrop 0x8042c555 /* V11 */
1547 #define MUIM_DragFinish 0x804251f0 /* V11 */
1548 #define MUIM_DragQuery 0x80420261 /* V11 */
1549 #define MUIM_DragReport 0x8042edad /* V11 */
1550 #define MUIM_Draw 0x80426f3f /* Custom Class */ /* V4 */
1551 #define MUIM_DrawBackground 0x804238ca /* V11 */
1552 #define MUIM_HandleEvent 0x80426d66 /* Custom Class */ /* V16 */
1553 #define MUIM_HandleInput 0x80422a1a /* Custom Class */ /* V4 */
1554 #define MUIM_Hide 0x8042f20f /* Custom Class */ /* V4 */
1555 #define MUIM_Setup 0x80428354 /* Custom Class */ /* V4 */
1556 #define MUIM_Show 0x8042cc84 /* Custom Class */ /* V4 */
1557 struct MUIP_AskMinMax
{ ULONG MethodID
; struct MUI_MinMax
*MinMaxInfo
; }; /* Custom Class */
1558 struct MUIP_Cleanup
{ ULONG MethodID
; }; /* Custom Class */
1559 struct MUIP_ContextMenuBuild
{ ULONG MethodID
; LONG mx
; LONG my
; };
1560 struct MUIP_ContextMenuChoice
{ ULONG MethodID
; Object
*item
; };
1561 struct MUIP_CreateBubble
{ ULONG MethodID
; LONG x
; LONG y
; char *txt
; ULONG flags
; };
1562 struct MUIP_CreateShortHelp
{ ULONG MethodID
; LONG mx
; LONG my
; };
1563 struct MUIP_DeleteBubble
{ ULONG MethodID
; APTR bubble
; };
1564 struct MUIP_DeleteShortHelp
{ ULONG MethodID
; STRPTR help
; };
1565 struct MUIP_DragBegin
{ ULONG MethodID
; Object
*obj
; };
1566 struct MUIP_DragDrop
{ ULONG MethodID
; Object
*obj
; LONG x
; LONG y
; };
1567 struct MUIP_DragFinish
{ ULONG MethodID
; Object
*obj
; };
1568 struct MUIP_DragQuery
{ ULONG MethodID
; Object
*obj
; };
1569 struct MUIP_DragReport
{ ULONG MethodID
; Object
*obj
; LONG x
; LONG y
; LONG update
; };
1570 struct MUIP_Draw
{ ULONG MethodID
; ULONG flags
; }; /* Custom Class */
1571 struct MUIP_DrawBackground
{ ULONG MethodID
; LONG left
; LONG top
; LONG width
; LONG height
; LONG xoffset
; LONG yoffset
; LONG flags
; };
1572 struct MUIP_HandleEvent
{ ULONG MethodID
; struct IntuiMessage
*imsg
; LONG muikey
; }; /* Custom Class */
1573 struct MUIP_HandleInput
{ ULONG MethodID
; struct IntuiMessage
*imsg
; LONG muikey
; }; /* Custom Class */
1574 struct MUIP_Hide
{ ULONG MethodID
; }; /* Custom Class */
1575 struct MUIP_Setup
{ ULONG MethodID
; struct MUI_RenderInfo
*RenderInfo
; }; /* Custom Class */
1576 struct MUIP_Show
{ ULONG MethodID
; }; /* Custom Class */
1580 #define MUIA_Background 0x8042545b /* V4 is. LONG */
1581 #define MUIA_BottomEdge 0x8042e552 /* V4 ..g LONG */
1582 #define MUIA_ContextMenu 0x8042b704 /* V11 isg Object * */
1583 #define MUIA_ContextMenuTrigger 0x8042a2c1 /* V11 ..g Object * */
1584 #define MUIA_ControlChar 0x8042120b /* V4 isg char */
1585 #define MUIA_CycleChain 0x80421ce7 /* V11 isg LONG */
1586 #define MUIA_Disabled 0x80423661 /* V4 isg BOOL */
1587 #define MUIA_Draggable 0x80420b6e /* V11 isg BOOL */
1588 #define MUIA_Dropable 0x8042fbce /* V11 isg BOOL */
1590 #define MUIA_ExportID 0x8042d76e /* V4 isg ULONG */
1591 #endif /* MUI_OBSOLETE */
1592 #define MUIA_FillArea 0x804294a3 /* V4 is. BOOL */
1593 #define MUIA_FixHeight 0x8042a92b /* V4 i.. LONG */
1594 #define MUIA_FixHeightTxt 0x804276f2 /* V4 i.. STRPTR */
1595 #define MUIA_FixWidth 0x8042a3f1 /* V4 i.. LONG */
1596 #define MUIA_FixWidthTxt 0x8042d044 /* V4 i.. STRPTR */
1597 #define MUIA_Font 0x8042be50 /* V4 i.g struct TextFont * */
1598 #define MUIA_Frame 0x8042ac64 /* V4 i.. LONG */
1599 #define MUIA_FramePhantomHoriz 0x8042ed76 /* V4 i.. BOOL */
1600 #define MUIA_FrameTitle 0x8042d1c7 /* V4 i.. STRPTR */
1601 #define MUIA_Height 0x80423237 /* V4 ..g LONG */
1602 #define MUIA_HorizDisappear 0x80429615 /* V11 isg LONG */
1603 #define MUIA_HorizWeight 0x80426db9 /* V4 isg WORD */
1604 #define MUIA_InnerBottom 0x8042f2c0 /* V4 i.g LONG */
1605 #define MUIA_InnerLeft 0x804228f8 /* V4 i.g LONG */
1606 #define MUIA_InnerRight 0x804297ff /* V4 i.g LONG */
1607 #define MUIA_InnerTop 0x80421eb6 /* V4 i.g LONG */
1608 #define MUIA_InputMode 0x8042fb04 /* V4 i.. LONG */
1609 #define MUIA_LeftEdge 0x8042bec6 /* V4 ..g LONG */
1610 #define MUIA_MaxHeight 0x804293e4 /* V11 i.. LONG */
1611 #define MUIA_MaxWidth 0x8042f112 /* V11 i.. LONG */
1612 #define MUIA_Pressed 0x80423535 /* V4 ..g BOOL */
1613 #define MUIA_RightEdge 0x8042ba82 /* V4 ..g LONG */
1614 #define MUIA_Selected 0x8042654b /* V4 isg BOOL */
1615 #define MUIA_ShortHelp 0x80428fe3 /* V11 isg STRPTR */
1616 #define MUIA_ShowMe 0x80429ba8 /* V4 isg BOOL */
1617 #define MUIA_ShowSelState 0x8042caac /* V4 i.. BOOL */
1618 #define MUIA_Timer 0x80426435 /* V4 ..g LONG */
1619 #define MUIA_TopEdge 0x8042509b /* V4 ..g LONG */
1620 #define MUIA_VertDisappear 0x8042d12f /* V11 isg LONG */
1621 #define MUIA_VertWeight 0x804298d0 /* V4 isg WORD */
1622 #define MUIA_Weight 0x80421d1f /* V4 i.. WORD */
1623 #define MUIA_Width 0x8042b59c /* V4 ..g LONG */
1624 #define MUIA_Window 0x80421591 /* V4 ..g struct Window * */
1625 #define MUIA_WindowObject 0x8042669e /* V4 ..g Object * */
1627 #define MUIV_Font_Inherit 0
1628 #define MUIV_Font_Normal -1
1629 #define MUIV_Font_List -2
1630 #define MUIV_Font_Tiny -3
1631 #define MUIV_Font_Fixed -4
1632 #define MUIV_Font_Title -5
1633 #define MUIV_Font_Big -6
1634 #define MUIV_Font_Button -7
1635 #define MUIV_Frame_None 0
1636 #define MUIV_Frame_Button 1
1637 #define MUIV_Frame_ImageButton 2
1638 #define MUIV_Frame_Text 3
1639 #define MUIV_Frame_String 4
1640 #define MUIV_Frame_ReadList 5
1641 #define MUIV_Frame_InputList 6
1642 #define MUIV_Frame_Prop 7
1643 #define MUIV_Frame_Gauge 8
1644 #define MUIV_Frame_Group 9
1645 #define MUIV_Frame_PopUp 10
1646 #define MUIV_Frame_Virtual 11
1647 #define MUIV_Frame_Slider 12
1648 #define MUIV_Frame_Count 13
1649 #define MUIV_InputMode_None 0
1650 #define MUIV_InputMode_RelVerify 1
1651 #define MUIV_InputMode_Immediate 2
1652 #define MUIV_InputMode_Toggle 3
1655 /****************************************************************************/
1657 /****************************************************************************/
1660 extern char MUIC_Rectangle
[];
1662 #define MUIC_Rectangle "Rectangle.mui"
1667 #define MUIA_Rectangle_BarTitle 0x80426689 /* V11 i.g STRPTR */
1668 #define MUIA_Rectangle_HBar 0x8042c943 /* V7 i.g BOOL */
1669 #define MUIA_Rectangle_VBar 0x80422204 /* V7 i.g BOOL */
1673 /****************************************************************************/
1675 /****************************************************************************/
1678 extern char MUIC_Balance
[];
1680 #define MUIC_Balance "Balance.mui"
1684 /****************************************************************************/
1686 /****************************************************************************/
1689 extern char MUIC_Image
[];
1691 #define MUIC_Image "Image.mui"
1696 #define MUIA_Image_FontMatch 0x8042815d /* V4 i.. BOOL */
1697 #define MUIA_Image_FontMatchHeight 0x80429f26 /* V4 i.. BOOL */
1698 #define MUIA_Image_FontMatchWidth 0x804239bf /* V4 i.. BOOL */
1699 #define MUIA_Image_FreeHoriz 0x8042da84 /* V4 i.. BOOL */
1700 #define MUIA_Image_FreeVert 0x8042ea28 /* V4 i.. BOOL */
1701 #define MUIA_Image_OldImage 0x80424f3d /* V4 i.. struct Image * */
1702 #define MUIA_Image_Spec 0x804233d5 /* V4 i.. char * */
1703 #define MUIA_Image_State 0x8042a3ad /* V4 is. LONG */
1707 /****************************************************************************/
1709 /****************************************************************************/
1712 extern char MUIC_Bitmap
[];
1714 #define MUIC_Bitmap "Bitmap.mui"
1719 #define MUIA_Bitmap_Bitmap 0x804279bd /* V8 isg struct BitMap * */
1720 #define MUIA_Bitmap_Height 0x80421560 /* V8 isg LONG */
1721 #define MUIA_Bitmap_MappingTable 0x8042e23d /* V8 isg UBYTE * */
1722 #define MUIA_Bitmap_Precision 0x80420c74 /* V11 isg LONG */
1723 #define MUIA_Bitmap_RemappedBitmap 0x80423a47 /* V11 ..g struct BitMap * */
1724 #define MUIA_Bitmap_SourceColors 0x80425360 /* V8 isg ULONG * */
1725 #define MUIA_Bitmap_Transparent 0x80422805 /* V8 isg LONG */
1726 #define MUIA_Bitmap_UseFriend 0x804239d8 /* V11 i.. BOOL */
1727 #define MUIA_Bitmap_Width 0x8042eb3a /* V8 isg LONG */
1731 /****************************************************************************/
1733 /****************************************************************************/
1736 extern char MUIC_Bodychunk
[];
1738 #define MUIC_Bodychunk "Bodychunk.mui"
1743 #define MUIA_Bodychunk_Body 0x8042ca67 /* V8 isg UBYTE * */
1744 #define MUIA_Bodychunk_Compression 0x8042de5f /* V8 isg UBYTE */
1745 #define MUIA_Bodychunk_Depth 0x8042c392 /* V8 isg LONG */
1746 #define MUIA_Bodychunk_Masking 0x80423b0e /* V8 isg UBYTE */
1750 /****************************************************************************/
1752 /****************************************************************************/
1755 extern char MUIC_Text
[];
1757 #define MUIC_Text "Text.mui"
1762 #define MUIA_Text_Contents 0x8042f8dc /* V4 isg STRPTR */
1763 #define MUIA_Text_HiChar 0x804218ff /* V4 i.. char */
1764 #define MUIA_Text_PreParse 0x8042566d /* V4 isg STRPTR */
1765 #define MUIA_Text_SetMax 0x80424d0a /* V4 i.. BOOL */
1766 #define MUIA_Text_SetMin 0x80424e10 /* V4 i.. BOOL */
1767 #define MUIA_Text_SetVMax 0x80420d8b /* V11 i.. BOOL */
1771 /****************************************************************************/
1773 /****************************************************************************/
1776 extern char MUIC_Gadget
[];
1778 #define MUIC_Gadget "Gadget.mui"
1783 #define MUIA_Gadget_Gadget 0x8042ec1a /* V11 ..g struct Gadget * */
1787 /****************************************************************************/
1789 /****************************************************************************/
1792 extern char MUIC_String
[];
1794 #define MUIC_String "String.mui"
1802 #define MUIA_String_Accept 0x8042e3e1 /* V4 isg STRPTR */
1803 #define MUIA_String_Acknowledge 0x8042026c /* V4 ..g STRPTR */
1804 #define MUIA_String_AdvanceOnCR 0x804226de /* V11 isg BOOL */
1805 #define MUIA_String_AttachedList 0x80420fd2 /* V4 isg Object * */
1806 #define MUIA_String_BufferPos 0x80428b6c /* V4 .sg LONG */
1807 #define MUIA_String_Contents 0x80428ffd /* V4 isg STRPTR */
1808 #define MUIA_String_DisplayPos 0x8042ccbf /* V4 .sg LONG */
1809 #define MUIA_String_EditHook 0x80424c33 /* V7 isg struct Hook * */
1810 #define MUIA_String_Format 0x80427484 /* V4 i.g LONG */
1811 #define MUIA_String_Integer 0x80426e8a /* V4 isg ULONG */
1812 #define MUIA_String_LonelyEditHook 0x80421569 /* V11 isg BOOL */
1813 #define MUIA_String_MaxLen 0x80424984 /* V4 i.g LONG */
1814 #define MUIA_String_Reject 0x8042179c /* V4 isg STRPTR */
1815 #define MUIA_String_Secret 0x80428769 /* V4 i.g BOOL */
1817 #define MUIV_String_Format_Left 0
1818 #define MUIV_String_Format_Center 1
1819 #define MUIV_String_Format_Right 2
1822 /****************************************************************************/
1824 /****************************************************************************/
1827 extern char MUIC_Boopsi
[];
1829 #define MUIC_Boopsi "Boopsi.mui"
1834 #define MUIA_Boopsi_Class 0x80426999 /* V4 isg struct IClass * */
1835 #define MUIA_Boopsi_ClassID 0x8042bfa3 /* V4 isg char * */
1836 #define MUIA_Boopsi_MaxHeight 0x8042757f /* V4 isg ULONG */
1837 #define MUIA_Boopsi_MaxWidth 0x8042bcb1 /* V4 isg ULONG */
1838 #define MUIA_Boopsi_MinHeight 0x80422c93 /* V4 isg ULONG */
1839 #define MUIA_Boopsi_MinWidth 0x80428fb2 /* V4 isg ULONG */
1840 #define MUIA_Boopsi_Object 0x80420178 /* V4 ..g Object * */
1841 #define MUIA_Boopsi_Remember 0x8042f4bd /* V4 i.. ULONG */
1842 #define MUIA_Boopsi_Smart 0x8042b8d7 /* V9 i.. BOOL */
1843 #define MUIA_Boopsi_TagDrawInfo 0x8042bae7 /* V4 isg ULONG */
1844 #define MUIA_Boopsi_TagScreen 0x8042bc71 /* V4 isg ULONG */
1845 #define MUIA_Boopsi_TagWindow 0x8042e11d /* V4 isg ULONG */
1849 /****************************************************************************/
1851 /****************************************************************************/
1854 extern char MUIC_Prop
[];
1856 #define MUIC_Prop "Prop.mui"
1861 #define MUIM_Prop_Decrease 0x80420dd1 /* V16 */
1862 #define MUIM_Prop_Increase 0x8042cac0 /* V16 */
1863 struct MUIP_Prop_Decrease
{ ULONG MethodID
; LONG amount
; };
1864 struct MUIP_Prop_Increase
{ ULONG MethodID
; LONG amount
; };
1868 #define MUIA_Prop_Entries 0x8042fbdb /* V4 isg LONG */
1869 #define MUIA_Prop_First 0x8042d4b2 /* V4 isg LONG */
1870 #define MUIA_Prop_Horiz 0x8042f4f3 /* V4 i.g BOOL */
1871 #define MUIA_Prop_Slider 0x80429c3a /* V4 isg BOOL */
1872 #define MUIA_Prop_UseWinBorder 0x8042deee /* V13 i.. LONG */
1873 #define MUIA_Prop_Visible 0x8042fea6 /* V4 isg LONG */
1875 #define MUIV_Prop_UseWinBorder_None 0
1876 #define MUIV_Prop_UseWinBorder_Left 1
1877 #define MUIV_Prop_UseWinBorder_Right 2
1878 #define MUIV_Prop_UseWinBorder_Bottom 3
1881 /****************************************************************************/
1883 /****************************************************************************/
1886 extern char MUIC_Gauge
[];
1888 #define MUIC_Gauge "Gauge.mui"
1893 #define MUIA_Gauge_Current 0x8042f0dd /* V4 isg LONG */
1894 #define MUIA_Gauge_Divide 0x8042d8df /* V4 isg BOOL */
1895 #define MUIA_Gauge_Horiz 0x804232dd /* V4 i.. BOOL */
1896 #define MUIA_Gauge_InfoText 0x8042bf15 /* V7 isg STRPTR */
1897 #define MUIA_Gauge_Max 0x8042bcdb /* V4 isg LONG */
1901 /****************************************************************************/
1903 /****************************************************************************/
1906 extern char MUIC_Scale
[];
1908 #define MUIC_Scale "Scale.mui"
1913 #define MUIA_Scale_Horiz 0x8042919a /* V4 isg BOOL */
1917 /****************************************************************************/
1919 /****************************************************************************/
1922 extern char MUIC_Colorfield
[];
1924 #define MUIC_Colorfield "Colorfield.mui"
1929 #define MUIA_Colorfield_Blue 0x8042d3b0 /* V4 isg ULONG */
1930 #define MUIA_Colorfield_Green 0x80424466 /* V4 isg ULONG */
1931 #define MUIA_Colorfield_Pen 0x8042713a /* V4 ..g ULONG */
1932 #define MUIA_Colorfield_Red 0x804279f6 /* V4 isg ULONG */
1933 #define MUIA_Colorfield_RGB 0x8042677a /* V4 isg ULONG * */
1937 /****************************************************************************/
1939 /****************************************************************************/
1942 extern char MUIC_List
[];
1944 #define MUIC_List "List.mui"
1949 #define MUIM_List_Clear 0x8042ad89 /* V4 */
1950 #define MUIM_List_CreateImage 0x80429804 /* V11 */
1951 #define MUIM_List_DeleteImage 0x80420f58 /* V11 */
1952 #define MUIM_List_Exchange 0x8042468c /* V4 */
1953 #define MUIM_List_GetEntry 0x804280ec /* V4 */
1954 #define MUIM_List_Insert 0x80426c87 /* V4 */
1955 #define MUIM_List_InsertSingle 0x804254d5 /* V7 */
1956 #define MUIM_List_Jump 0x8042baab /* V4 */
1957 #define MUIM_List_Move 0x804253c2 /* V9 */
1958 #define MUIM_List_NextSelected 0x80425f17 /* V6 */
1959 #define MUIM_List_Redraw 0x80427993 /* V4 */
1960 #define MUIM_List_Remove 0x8042647e /* V4 */
1961 #define MUIM_List_Select 0x804252d8 /* V4 */
1962 #define MUIM_List_Sort 0x80422275 /* V4 */
1963 #define MUIM_List_TestPos 0x80425f48 /* V11 */
1964 struct MUIP_List_Clear
{ ULONG MethodID
; };
1965 struct MUIP_List_CreateImage
{ ULONG MethodID
; Object
*obj
; ULONG flags
; };
1966 struct MUIP_List_DeleteImage
{ ULONG MethodID
; APTR listimg
; };
1967 struct MUIP_List_Exchange
{ ULONG MethodID
; LONG pos1
; LONG pos2
; };
1968 struct MUIP_List_GetEntry
{ ULONG MethodID
; LONG pos
; APTR
*entry
; };
1969 struct MUIP_List_Insert
{ ULONG MethodID
; APTR
*entries
; LONG count
; LONG pos
; };
1970 struct MUIP_List_InsertSingle
{ ULONG MethodID
; APTR entry
; LONG pos
; };
1971 struct MUIP_List_Jump
{ ULONG MethodID
; LONG pos
; };
1972 struct MUIP_List_Move
{ ULONG MethodID
; LONG from
; LONG to
; };
1973 struct MUIP_List_NextSelected
{ ULONG MethodID
; LONG
*pos
; };
1974 struct MUIP_List_Redraw
{ ULONG MethodID
; LONG pos
; };
1975 struct MUIP_List_Remove
{ ULONG MethodID
; LONG pos
; };
1976 struct MUIP_List_Select
{ ULONG MethodID
; LONG pos
; LONG seltype
; LONG
*state
; };
1977 struct MUIP_List_Sort
{ ULONG MethodID
; };
1978 struct MUIP_List_TestPos
{ ULONG MethodID
; LONG x
; LONG y
; struct MUI_List_TestPos_Result
*res
; };
1982 #define MUIA_List_Active 0x8042391c /* V4 isg LONG */
1983 #define MUIA_List_AdjustHeight 0x8042850d /* V4 i.. BOOL */
1984 #define MUIA_List_AdjustWidth 0x8042354a /* V4 i.. BOOL */
1985 #define MUIA_List_AutoVisible 0x8042a445 /* V11 isg BOOL */
1986 #define MUIA_List_CompareHook 0x80425c14 /* V4 is. struct Hook * */
1987 #define MUIA_List_ConstructHook 0x8042894f /* V4 is. struct Hook * */
1988 #define MUIA_List_DestructHook 0x804297ce /* V4 is. struct Hook * */
1989 #define MUIA_List_DisplayHook 0x8042b4d5 /* V4 is. struct Hook * */
1990 #define MUIA_List_DragSortable 0x80426099 /* V11 isg BOOL */
1991 #define MUIA_List_DropMark 0x8042aba6 /* V11 ..g LONG */
1992 #define MUIA_List_Entries 0x80421654 /* V4 ..g LONG */
1993 #define MUIA_List_First 0x804238d4 /* V4 ..g LONG */
1994 #define MUIA_List_Format 0x80423c0a /* V4 isg STRPTR */
1995 #define MUIA_List_InsertPosition 0x8042d0cd /* V9 ..g LONG */
1996 #define MUIA_List_MinLineHeight 0x8042d1c3 /* V4 i.. LONG */
1997 #define MUIA_List_MultiTestHook 0x8042c2c6 /* V4 is. struct Hook * */
1998 #define MUIA_List_Pool 0x80423431 /* V13 i.. APTR */
1999 #define MUIA_List_PoolPuddleSize 0x8042a4eb /* V13 i.. ULONG */
2000 #define MUIA_List_PoolThreshSize 0x8042c48c /* V13 i.. ULONG */
2001 #define MUIA_List_Quiet 0x8042d8c7 /* V4 .s. BOOL */
2002 #define MUIA_List_ShowDropMarks 0x8042c6f3 /* V11 isg BOOL */
2003 #define MUIA_List_SourceArray 0x8042c0a0 /* V4 i.. APTR */
2004 #define MUIA_List_Title 0x80423e66 /* V6 isg char * */
2005 #define MUIA_List_Visible 0x8042191f /* V4 ..g LONG */
2007 #define MUIV_List_Active_Off -1
2008 #define MUIV_List_Active_Top -2
2009 #define MUIV_List_Active_Bottom -3
2010 #define MUIV_List_Active_Up -4
2011 #define MUIV_List_Active_Down -5
2012 #define MUIV_List_Active_PageUp -6
2013 #define MUIV_List_Active_PageDown -7
2014 #define MUIV_List_ConstructHook_String -1
2015 #define MUIV_List_CopyHook_String -1
2016 #define MUIV_List_CursorType_None 0
2017 #define MUIV_List_CursorType_Bar 1
2018 #define MUIV_List_CursorType_Rect 2
2019 #define MUIV_List_DestructHook_String -1
2022 /****************************************************************************/
2024 /****************************************************************************/
2027 extern char MUIC_Floattext
[];
2029 #define MUIC_Floattext "Floattext.mui"
2034 #define MUIA_Floattext_Justify 0x8042dc03 /* V4 isg BOOL */
2035 #define MUIA_Floattext_SkipChars 0x80425c7d /* V4 is. STRPTR */
2036 #define MUIA_Floattext_TabSize 0x80427d17 /* V4 is. LONG */
2037 #define MUIA_Floattext_Text 0x8042d16a /* V4 isg STRPTR */
2041 /****************************************************************************/
2043 /****************************************************************************/
2046 extern char MUIC_Volumelist
[];
2048 #define MUIC_Volumelist "Volumelist.mui"
2052 /****************************************************************************/
2054 /****************************************************************************/
2057 extern char MUIC_Scrmodelist
[];
2059 #define MUIC_Scrmodelist "Scrmodelist.mui"
2067 /****************************************************************************/
2069 /****************************************************************************/
2072 extern char MUIC_Dirlist
[];
2074 #define MUIC_Dirlist "Dirlist.mui"
2079 #define MUIM_Dirlist_ReRead 0x80422d71 /* V4 */
2080 struct MUIP_Dirlist_ReRead
{ ULONG MethodID
; };
2084 #define MUIA_Dirlist_AcceptPattern 0x8042760a /* V4 is. STRPTR */
2085 #define MUIA_Dirlist_Directory 0x8042ea41 /* V4 isg STRPTR */
2086 #define MUIA_Dirlist_DrawersOnly 0x8042b379 /* V4 is. BOOL */
2087 #define MUIA_Dirlist_FilesOnly 0x8042896a /* V4 is. BOOL */
2088 #define MUIA_Dirlist_FilterDrawers 0x80424ad2 /* V4 is. BOOL */
2089 #define MUIA_Dirlist_FilterHook 0x8042ae19 /* V4 is. struct Hook * */
2090 #define MUIA_Dirlist_MultiSelDirs 0x80428653 /* V6 is. BOOL */
2091 #define MUIA_Dirlist_NumBytes 0x80429e26 /* V4 ..g LONG */
2092 #define MUIA_Dirlist_NumDrawers 0x80429cb8 /* V4 ..g LONG */
2093 #define MUIA_Dirlist_NumFiles 0x8042a6f0 /* V4 ..g LONG */
2094 #define MUIA_Dirlist_Path 0x80426176 /* V4 ..g STRPTR */
2095 #define MUIA_Dirlist_RejectIcons 0x80424808 /* V4 is. BOOL */
2096 #define MUIA_Dirlist_RejectPattern 0x804259c7 /* V4 is. STRPTR */
2097 #define MUIA_Dirlist_SortDirs 0x8042bbb9 /* V4 is. LONG */
2098 #define MUIA_Dirlist_SortHighLow 0x80421896 /* V4 is. BOOL */
2099 #define MUIA_Dirlist_SortType 0x804228bc /* V4 is. LONG */
2100 #define MUIA_Dirlist_Status 0x804240de /* V4 ..g LONG */
2102 #define MUIV_Dirlist_SortDirs_First 0
2103 #define MUIV_Dirlist_SortDirs_Last 1
2104 #define MUIV_Dirlist_SortDirs_Mix 2
2105 #define MUIV_Dirlist_SortType_Name 0
2106 #define MUIV_Dirlist_SortType_Date 1
2107 #define MUIV_Dirlist_SortType_Size 2
2108 #define MUIV_Dirlist_Status_Invalid 0
2109 #define MUIV_Dirlist_Status_Reading 1
2110 #define MUIV_Dirlist_Status_Valid 2
2113 /****************************************************************************/
2115 /****************************************************************************/
2118 extern char MUIC_Numeric
[];
2120 #define MUIC_Numeric "Numeric.mui"
2125 #define MUIM_Numeric_Decrease 0x804243a7 /* V11 */
2126 #define MUIM_Numeric_Increase 0x80426ecd /* V11 */
2127 #define MUIM_Numeric_ScaleToValue 0x8042032c /* V11 */
2128 #define MUIM_Numeric_SetDefault 0x8042ab0a /* V11 */
2129 #define MUIM_Numeric_Stringify 0x80424891 /* V11 */
2130 #define MUIM_Numeric_ValueToScale 0x80423e4f /* V11 */
2131 struct MUIP_Numeric_Decrease
{ ULONG MethodID
; LONG amount
; };
2132 struct MUIP_Numeric_Increase
{ ULONG MethodID
; LONG amount
; };
2133 struct MUIP_Numeric_ScaleToValue
{ ULONG MethodID
; LONG scalemin
; LONG scalemax
; LONG scale
; };
2134 struct MUIP_Numeric_SetDefault
{ ULONG MethodID
; };
2135 struct MUIP_Numeric_Stringify
{ ULONG MethodID
; LONG value
; };
2136 struct MUIP_Numeric_ValueToScale
{ ULONG MethodID
; LONG scalemin
; LONG scalemax
; };
2140 #define MUIA_Numeric_CheckAllSizes 0x80421594 /* V11 isg BOOL */
2141 #define MUIA_Numeric_Default 0x804263e8 /* V11 isg LONG */
2142 #define MUIA_Numeric_Format 0x804263e9 /* V11 isg STRPTR */
2143 #define MUIA_Numeric_Max 0x8042d78a /* V11 isg LONG */
2144 #define MUIA_Numeric_Min 0x8042e404 /* V11 isg LONG */
2145 #define MUIA_Numeric_Reverse 0x8042f2a0 /* V11 isg BOOL */
2146 #define MUIA_Numeric_RevLeftRight 0x804294a7 /* V11 isg BOOL */
2147 #define MUIA_Numeric_RevUpDown 0x804252dd /* V11 isg BOOL */
2148 #define MUIA_Numeric_Value 0x8042ae3a /* V11 isg LONG */
2152 /****************************************************************************/
2154 /****************************************************************************/
2157 extern char MUIC_Knob
[];
2159 #define MUIC_Knob "Knob.mui"
2163 /****************************************************************************/
2165 /****************************************************************************/
2168 extern char MUIC_Levelmeter
[];
2170 #define MUIC_Levelmeter "Levelmeter.mui"
2175 #define MUIA_Levelmeter_Label 0x80420dd5 /* V11 isg STRPTR */
2179 /****************************************************************************/
2180 /** Numericbutton **/
2181 /****************************************************************************/
2184 extern char MUIC_Numericbutton
[];
2186 #define MUIC_Numericbutton "Numericbutton.mui"
2190 /****************************************************************************/
2192 /****************************************************************************/
2195 extern char MUIC_Slider
[];
2197 #define MUIC_Slider "Slider.mui"
2202 #define MUIA_Slider_Horiz 0x8042fad1 /* V11 isg BOOL */
2204 #define MUIA_Slider_Level 0x8042ae3a /* V4 isg LONG */
2205 #endif /* MUI_OBSOLETE */
2207 #define MUIA_Slider_Max 0x8042d78a /* V4 isg LONG */
2208 #endif /* MUI_OBSOLETE */
2210 #define MUIA_Slider_Min 0x8042e404 /* V4 isg LONG */
2211 #endif /* MUI_OBSOLETE */
2212 #define MUIA_Slider_Quiet 0x80420b26 /* V6 i.. BOOL */
2214 #define MUIA_Slider_Reverse 0x8042f2a0 /* V4 isg BOOL */
2215 #endif /* MUI_OBSOLETE */
2219 /****************************************************************************/
2220 /** Framedisplay **/
2221 /****************************************************************************/
2224 extern char MUIC_Framedisplay
[];
2226 #define MUIC_Framedisplay "Framedisplay.mui"
2234 /****************************************************************************/
2236 /****************************************************************************/
2239 extern char MUIC_Popframe
[];
2241 #define MUIC_Popframe "Popframe.mui"
2245 /****************************************************************************/
2246 /** Imagedisplay **/
2247 /****************************************************************************/
2250 extern char MUIC_Imagedisplay
[];
2252 #define MUIC_Imagedisplay "Imagedisplay.mui"
2260 /****************************************************************************/
2262 /****************************************************************************/
2265 extern char MUIC_Popimage
[];
2267 #define MUIC_Popimage "Popimage.mui"
2271 /****************************************************************************/
2273 /****************************************************************************/
2276 extern char MUIC_Pendisplay
[];
2278 #define MUIC_Pendisplay "Pendisplay.mui"
2283 #define MUIM_Pendisplay_SetColormap 0x80426c80 /* V13 */
2284 #define MUIM_Pendisplay_SetMUIPen 0x8042039d /* V13 */
2285 #define MUIM_Pendisplay_SetRGB 0x8042c131 /* V13 */
2286 struct MUIP_Pendisplay_SetColormap
{ ULONG MethodID
; LONG colormap
; };
2287 struct MUIP_Pendisplay_SetMUIPen
{ ULONG MethodID
; LONG muipen
; };
2288 struct MUIP_Pendisplay_SetRGB
{ ULONG MethodID
; ULONG red
; ULONG green
; ULONG blue
; };
2292 #define MUIA_Pendisplay_Pen 0x8042a748 /* V13 ..g Object * */
2293 #define MUIA_Pendisplay_Reference 0x8042dc24 /* V13 isg Object * */
2294 #define MUIA_Pendisplay_RGBcolor 0x8042a1a9 /* V11 isg struct MUI_RGBcolor * */
2295 #define MUIA_Pendisplay_Spec 0x8042a204 /* V11 isg struct MUI_PenSpec * */
2299 /****************************************************************************/
2301 /****************************************************************************/
2304 extern char MUIC_Poppen
[];
2306 #define MUIC_Poppen "Poppen.mui"
2310 /****************************************************************************/
2312 /****************************************************************************/
2315 extern char MUIC_Group
[];
2317 #define MUIC_Group "Group.mui"
2322 #define MUIM_Group_ExitChange 0x8042d1cc /* V11 */
2323 #define MUIM_Group_InitChange 0x80420887 /* V11 */
2324 #define MUIM_Group_Sort 0x80427417 /* V4 */
2325 struct MUIP_Group_ExitChange
{ ULONG MethodID
; };
2326 struct MUIP_Group_InitChange
{ ULONG MethodID
; };
2327 struct MUIP_Group_Sort
{ ULONG MethodID
; Object
*obj
[1]; };
2331 #define MUIA_Group_ActivePage 0x80424199 /* V5 isg LONG */
2332 #define MUIA_Group_Child 0x804226e6 /* V4 i.. Object * */
2333 #define MUIA_Group_ChildList 0x80424748 /* V4 ..g struct List * */
2334 #define MUIA_Group_Columns 0x8042f416 /* V4 is. LONG */
2335 #define MUIA_Group_Horiz 0x8042536b /* V4 i.. BOOL */
2336 #define MUIA_Group_HorizSpacing 0x8042c651 /* V4 isg LONG */
2337 #define MUIA_Group_LayoutHook 0x8042c3b2 /* V11 i.. struct Hook * */
2338 #define MUIA_Group_PageMode 0x80421a5f /* V5 i.. BOOL */
2339 #define MUIA_Group_Rows 0x8042b68f /* V4 is. LONG */
2340 #define MUIA_Group_SameHeight 0x8042037e /* V4 i.. BOOL */
2341 #define MUIA_Group_SameSize 0x80420860 /* V4 i.. BOOL */
2342 #define MUIA_Group_SameWidth 0x8042b3ec /* V4 i.. BOOL */
2343 #define MUIA_Group_Spacing 0x8042866d /* V4 is. LONG */
2344 #define MUIA_Group_VertSpacing 0x8042e1bf /* V4 isg LONG */
2346 #define MUIV_Group_ActivePage_First 0
2347 #define MUIV_Group_ActivePage_Last -1
2348 #define MUIV_Group_ActivePage_Prev -2
2349 #define MUIV_Group_ActivePage_Next -3
2350 #define MUIV_Group_ActivePage_Advance -4
2353 /****************************************************************************/
2355 /****************************************************************************/
2358 extern char MUIC_Mccprefs
[];
2360 #define MUIC_Mccprefs "Mccprefs.mui"
2364 /****************************************************************************/
2366 /****************************************************************************/
2369 extern char MUIC_Register
[];
2371 #define MUIC_Register "Register.mui"
2376 #define MUIA_Register_Frame 0x8042349b /* V7 i.g BOOL */
2377 #define MUIA_Register_Titles 0x804297ec /* V7 i.g STRPTR * */
2381 /****************************************************************************/
2383 /****************************************************************************/
2386 extern char MUIC_Penadjust
[];
2388 #define MUIC_Penadjust "Penadjust.mui"
2396 #define MUIA_Penadjust_PSIMode 0x80421cbb /* V11 i.. BOOL */
2400 /****************************************************************************/
2401 /** Settingsgroup **/
2402 /****************************************************************************/
2405 extern char MUIC_Settingsgroup
[];
2407 #define MUIC_Settingsgroup "Settingsgroup.mui"
2412 #define MUIM_Settingsgroup_ConfigToGadgets 0x80427043 /* V11 */
2413 #define MUIM_Settingsgroup_GadgetsToConfig 0x80425242 /* V11 */
2414 struct MUIP_Settingsgroup_ConfigToGadgets
{ ULONG MethodID
; Object
*configdata
; };
2415 struct MUIP_Settingsgroup_GadgetsToConfig
{ ULONG MethodID
; Object
*configdata
; };
2422 /****************************************************************************/
2424 /****************************************************************************/
2427 extern char MUIC_Settings
[];
2429 #define MUIC_Settings "Settings.mui"
2440 /****************************************************************************/
2442 /****************************************************************************/
2445 extern char MUIC_Frameadjust
[];
2447 #define MUIC_Frameadjust "Frameadjust.mui"
2458 /****************************************************************************/
2460 /****************************************************************************/
2463 extern char MUIC_Imageadjust
[];
2465 #define MUIC_Imageadjust "Imageadjust.mui"
2474 #define MUIV_Imageadjust_Type_All 0
2475 #define MUIV_Imageadjust_Type_Image 1
2476 #define MUIV_Imageadjust_Type_Background 2
2477 #define MUIV_Imageadjust_Type_Pen 3
2480 /****************************************************************************/
2482 /****************************************************************************/
2485 extern char MUIC_Virtgroup
[];
2487 #define MUIC_Virtgroup "Virtgroup.mui"
2495 #define MUIA_Virtgroup_Height 0x80423038 /* V6 ..g LONG */
2496 #define MUIA_Virtgroup_Input 0x80427f7e /* V11 i.. BOOL */
2497 #define MUIA_Virtgroup_Left 0x80429371 /* V6 isg LONG */
2498 #define MUIA_Virtgroup_Top 0x80425200 /* V6 isg LONG */
2499 #define MUIA_Virtgroup_Width 0x80427c49 /* V6 ..g LONG */
2503 /****************************************************************************/
2505 /****************************************************************************/
2508 extern char MUIC_Scrollgroup
[];
2510 #define MUIC_Scrollgroup "Scrollgroup.mui"
2518 #define MUIA_Scrollgroup_Contents 0x80421261 /* V4 i.g Object * */
2519 #define MUIA_Scrollgroup_FreeHoriz 0x804292f3 /* V9 i.. BOOL */
2520 #define MUIA_Scrollgroup_FreeVert 0x804224f2 /* V9 i.. BOOL */
2521 #define MUIA_Scrollgroup_HorizBar 0x8042b63d /* V16 ..g Object * */
2522 #define MUIA_Scrollgroup_UseWinBorder 0x804284c1 /* V13 i.. BOOL */
2523 #define MUIA_Scrollgroup_VertBar 0x8042cdc0 /* V16 ..g Object * */
2527 /****************************************************************************/
2529 /****************************************************************************/
2532 extern char MUIC_Scrollbar
[];
2534 #define MUIC_Scrollbar "Scrollbar.mui"
2539 #define MUIA_Scrollbar_Type 0x8042fb6b /* V11 i.. LONG */
2541 #define MUIV_Scrollbar_Type_Default 0
2542 #define MUIV_Scrollbar_Type_Bottom 1
2543 #define MUIV_Scrollbar_Type_Top 2
2544 #define MUIV_Scrollbar_Type_Sym 3
2547 /****************************************************************************/
2549 /****************************************************************************/
2552 extern char MUIC_Listview
[];
2554 #define MUIC_Listview "Listview.mui"
2559 #define MUIA_Listview_ClickColumn 0x8042d1b3 /* V7 ..g LONG */
2560 #define MUIA_Listview_DefClickColumn 0x8042b296 /* V7 isg LONG */
2561 #define MUIA_Listview_DoubleClick 0x80424635 /* V4 i.g BOOL */
2562 #define MUIA_Listview_DragType 0x80425cd3 /* V11 isg LONG */
2563 #define MUIA_Listview_Input 0x8042682d /* V4 i.. BOOL */
2564 #define MUIA_Listview_List 0x8042bcce /* V4 i.g Object * */
2565 #define MUIA_Listview_MultiSelect 0x80427e08 /* V7 i.. LONG */
2566 #define MUIA_Listview_ScrollerPos 0x8042b1b4 /* V10 i.. BOOL */
2567 #define MUIA_Listview_SelectChange 0x8042178f /* V4 ..g BOOL */
2569 #define MUIV_Listview_DragType_None 0
2570 #define MUIV_Listview_DragType_Immediate 1
2571 #define MUIV_Listview_MultiSelect_None 0
2572 #define MUIV_Listview_MultiSelect_Default 1
2573 #define MUIV_Listview_MultiSelect_Shifted 2
2574 #define MUIV_Listview_MultiSelect_Always 3
2575 #define MUIV_Listview_ScrollerPos_Default 0
2576 #define MUIV_Listview_ScrollerPos_Left 1
2577 #define MUIV_Listview_ScrollerPos_Right 2
2578 #define MUIV_Listview_ScrollerPos_None 3
2581 /****************************************************************************/
2583 /****************************************************************************/
2586 extern char MUIC_Radio
[];
2588 #define MUIC_Radio "Radio.mui"
2593 #define MUIA_Radio_Active 0x80429b41 /* V4 isg LONG */
2594 #define MUIA_Radio_Entries 0x8042b6a1 /* V4 i.. STRPTR * */
2598 /****************************************************************************/
2600 /****************************************************************************/
2603 extern char MUIC_Cycle
[];
2605 #define MUIC_Cycle "Cycle.mui"
2610 #define MUIA_Cycle_Active 0x80421788 /* V4 isg LONG */
2611 #define MUIA_Cycle_Entries 0x80420629 /* V4 i.. STRPTR * */
2613 #define MUIV_Cycle_Active_Next -1
2614 #define MUIV_Cycle_Active_Prev -2
2617 /****************************************************************************/
2619 /****************************************************************************/
2622 extern char MUIC_Coloradjust
[];
2624 #define MUIC_Coloradjust "Coloradjust.mui"
2632 #define MUIA_Coloradjust_Blue 0x8042b8a3 /* V4 isg ULONG */
2633 #define MUIA_Coloradjust_Green 0x804285ab /* V4 isg ULONG */
2634 #define MUIA_Coloradjust_ModeID 0x8042ec59 /* V4 isg ULONG */
2635 #define MUIA_Coloradjust_Red 0x80420eaa /* V4 isg ULONG */
2636 #define MUIA_Coloradjust_RGB 0x8042f899 /* V4 isg ULONG * */
2640 /****************************************************************************/
2642 /****************************************************************************/
2645 extern char MUIC_Palette
[];
2647 #define MUIC_Palette "Palette.mui"
2652 #define MUIA_Palette_Entries 0x8042a3d8 /* V6 i.g struct MUI_Palette_Entry * */
2653 #define MUIA_Palette_Groupable 0x80423e67 /* V6 isg BOOL */
2654 #define MUIA_Palette_Names 0x8042c3a2 /* V6 isg char ** */
2658 /****************************************************************************/
2660 /****************************************************************************/
2663 extern char MUIC_Popstring
[];
2665 #define MUIC_Popstring "Popstring.mui"
2670 #define MUIM_Popstring_Close 0x8042dc52 /* V7 */
2671 #define MUIM_Popstring_Open 0x804258ba /* V7 */
2672 struct MUIP_Popstring_Close
{ ULONG MethodID
; LONG result
; };
2673 struct MUIP_Popstring_Open
{ ULONG MethodID
; };
2677 #define MUIA_Popstring_Button 0x8042d0b9 /* V7 i.g Object * */
2678 #define MUIA_Popstring_CloseHook 0x804256bf /* V7 isg struct Hook * */
2679 #define MUIA_Popstring_OpenHook 0x80429d00 /* V7 isg struct Hook * */
2680 #define MUIA_Popstring_String 0x804239ea /* V7 i.g Object * */
2681 #define MUIA_Popstring_Toggle 0x80422b7a /* V7 isg BOOL */
2685 /****************************************************************************/
2687 /****************************************************************************/
2690 extern char MUIC_Popobject
[];
2692 #define MUIC_Popobject "Popobject.mui"
2697 #define MUIA_Popobject_Follow 0x80424cb5 /* V7 isg BOOL */
2698 #define MUIA_Popobject_Light 0x8042a5a3 /* V7 isg BOOL */
2699 #define MUIA_Popobject_Object 0x804293e3 /* V7 i.g Object * */
2700 #define MUIA_Popobject_ObjStrHook 0x8042db44 /* V7 isg struct Hook * */
2701 #define MUIA_Popobject_StrObjHook 0x8042fbe1 /* V7 isg struct Hook * */
2702 #define MUIA_Popobject_Volatile 0x804252ec /* V7 isg BOOL */
2703 #define MUIA_Popobject_WindowHook 0x8042f194 /* V9 isg struct Hook * */
2707 /****************************************************************************/
2709 /****************************************************************************/
2712 extern char MUIC_Poplist
[];
2714 #define MUIC_Poplist "Poplist.mui"
2719 #define MUIA_Poplist_Array 0x8042084c /* V8 i.. char ** */
2723 /****************************************************************************/
2725 /****************************************************************************/
2728 extern char MUIC_Popscreen
[];
2730 #define MUIC_Popscreen "Popscreen.mui"
2738 /****************************************************************************/
2740 /****************************************************************************/
2743 extern char MUIC_Popasl
[];
2745 #define MUIC_Popasl "Popasl.mui"
2750 #define MUIA_Popasl_Active 0x80421b37 /* V7 ..g BOOL */
2751 #define MUIA_Popasl_StartHook 0x8042b703 /* V7 isg struct Hook * */
2752 #define MUIA_Popasl_StopHook 0x8042d8d2 /* V7 isg struct Hook * */
2753 #define MUIA_Popasl_Type 0x8042df3d /* V7 i.g ULONG */
2757 /****************************************************************************/
2759 /****************************************************************************/
2762 extern char MUIC_Semaphore
[];
2764 #define MUIC_Semaphore "Semaphore.mui"
2769 #define MUIM_Semaphore_Attempt 0x80426ce2 /* V11 */
2770 #define MUIM_Semaphore_AttemptShared 0x80422551 /* V11 */
2771 #define MUIM_Semaphore_Obtain 0x804276f0 /* V11 */
2772 #define MUIM_Semaphore_ObtainShared 0x8042ea02 /* V11 */
2773 #define MUIM_Semaphore_Release 0x80421f2d /* V11 */
2774 struct MUIP_Semaphore_Attempt
{ ULONG MethodID
; };
2775 struct MUIP_Semaphore_AttemptShared
{ ULONG MethodID
; };
2776 struct MUIP_Semaphore_Obtain
{ ULONG MethodID
; };
2777 struct MUIP_Semaphore_ObtainShared
{ ULONG MethodID
; };
2778 struct MUIP_Semaphore_Release
{ ULONG MethodID
; };
2781 /****************************************************************************/
2783 /****************************************************************************/
2786 extern char MUIC_Applist
[];
2788 #define MUIC_Applist "Applist.mui"
2795 /****************************************************************************/
2797 /****************************************************************************/
2800 extern char MUIC_Cclist
[];
2802 #define MUIC_Cclist "Cclist.mui"
2809 /****************************************************************************/
2811 /****************************************************************************/
2814 extern char MUIC_Dataspace
[];
2816 #define MUIC_Dataspace "Dataspace.mui"
2821 #define MUIM_Dataspace_Add 0x80423366 /* V11 */
2822 #define MUIM_Dataspace_Clear 0x8042b6c9 /* V11 */
2823 #define MUIM_Dataspace_Find 0x8042832c /* V11 */
2824 #define MUIM_Dataspace_Merge 0x80423e2b /* V11 */
2825 #define MUIM_Dataspace_ReadIFF 0x80420dfb /* V11 */
2826 #define MUIM_Dataspace_Remove 0x8042dce1 /* V11 */
2827 #define MUIM_Dataspace_WriteIFF 0x80425e8e /* V11 */
2828 struct MUIP_Dataspace_Add
{ ULONG MethodID
; APTR data
; LONG len
; ULONG id
; };
2829 struct MUIP_Dataspace_Clear
{ ULONG MethodID
; };
2830 struct MUIP_Dataspace_Find
{ ULONG MethodID
; ULONG id
; };
2831 struct MUIP_Dataspace_Merge
{ ULONG MethodID
; Object
*dataspace
; };
2832 struct MUIP_Dataspace_ReadIFF
{ ULONG MethodID
; struct IFFHandle
*handle
; };
2833 struct MUIP_Dataspace_Remove
{ ULONG MethodID
; ULONG id
; };
2834 struct MUIP_Dataspace_WriteIFF
{ ULONG MethodID
; struct IFFHandle
*handle
; ULONG type
; ULONG id
; };
2838 #define MUIA_Dataspace_Pool 0x80424cf9 /* V11 i.. APTR */
2842 /****************************************************************************/
2844 /****************************************************************************/
2847 extern char MUIC_Configdata
[];
2849 #define MUIC_Configdata "Configdata.mui"
2860 /****************************************************************************/
2862 /****************************************************************************/
2865 extern char MUIC_Dtpic
[];
2867 #define MUIC_Dtpic "Dtpic.mui"
2875 /*****************************************/
2876 /* End of automatic header file creation */
2877 /*****************************************/
2885 /*************************************************************************
2886 ** Structures and Macros for creating custom classes.
2887 *************************************************************************/
2893 ** - Everything described in this header file is only valid within
2894 ** MUI classes. You may never use any of these things out of
2895 ** a class, e.g. in a traditional MUI application.
2897 ** - Except when otherwise stated, all structures are strictly read only.
2901 /* Global information for every object */
2903 struct MUI_GlobalInfo
2906 Object
*mgi_ApplicationObject
;
2908 /* ... private data follows ... */
2912 /* Instance data of notify class */
2914 struct MUI_NotifyData
2916 struct MUI_GlobalInfo
*mnd_GlobalInfo
;
2926 /* MUI_MinMax structure holds information about minimum, maximum
2927 and default dimensions of an object. */
2939 #define MUI_MAXMAX 10000 /* use this if a dimension is not limited. */
2942 /* Hook message for custom layout */
2944 struct MUI_LayoutMsg
2946 ULONG lm_Type
; /* type of message (see defines below) */
2947 struct MinList
*lm_Children
; /* list of this groups children, traverse with NextObject() */
2948 struct MUI_MinMax lm_MinMax
; /* results for MUILM_MINMAX */
2955 } lm_Layout
; /* size (and result) for MUILM_LAYOUT */
2958 #define MUILM_MINMAX 1 /* MUI wants you to calc your min & max sizes */
2959 #define MUILM_LAYOUT 2 /* MUI wants you to layout your children */
2961 #define MUILM_UNKNOWN -1 /* return this if your hook doesn't implement lm_Type */
2964 /* (partial) instance data of area class */
2968 struct MUI_RenderInfo
*mad_RenderInfo
; /* RenderInfo for this object */
2970 struct TextFont
*mad_Font
; /* Font */
2971 struct MUI_MinMax mad_MinMax
; /* min/max/default sizes */
2972 struct IBox mad_Box
; /* position and dimension */
2973 BYTE mad_addleft
; /* frame & innerspacing left offset */
2974 BYTE mad_addtop
; /* frame & innerspacing top offset */
2975 BYTE mad_subwidth
; /* frame & innerspacing add. width */
2976 BYTE mad_subheight
; /* frame & innerspacing add. height */
2977 ULONG mad_Flags
; /* see definitions below */
2979 /* ... private data follows ... */
2982 /* Definitions for mad_Flags, other flags are private */
2984 #define MADF_DRAWOBJECT (1<< 0) /* completely redraw yourself */
2985 #define MADF_DRAWUPDATE (1<< 1) /* only update yourself */
2989 /* MUI's draw pens */
2991 #define MPEN_SHINE 0
2992 #define MPEN_HALFSHINE 1
2993 #define MPEN_BACKGROUND 2
2994 #define MPEN_HALFSHADOW 3
2995 #define MPEN_SHADOW 4
2999 #define MPEN_COUNT 8
3002 /* Mask for pens from MUI_ObtainPen() */
3004 #define MUIPEN_MASK 0x0000ffff
3005 #define MUIPEN(pen) ((pen) & MUIPEN_MASK)
3008 /* Information on display environment */
3010 struct MUI_RenderInfo
3012 Object
*mri_WindowObject
; /* valid between MUIM_Setup/MUIM_Cleanup */
3014 struct Screen
*mri_Screen
; /* valid between MUIM_Setup/MUIM_Cleanup */
3015 struct DrawInfo
*mri_DrawInfo
; /* valid between MUIM_Setup/MUIM_Cleanup */
3016 UWORD
*mri_Pens
; /* valid between MUIM_Setup/MUIM_Cleanup */
3017 struct Window
*mri_Window
; /* valid between MUIM_Show/MUIM_Hide */
3018 struct RastPort
*mri_RastPort
; /* valid between MUIM_Show/MUIM_Hide */
3020 ULONG mri_Flags
; /* valid between MUIM_Setup/MUIM_Cleanup */
3022 /* ... private data follows ... */
3026 ** If mri_Flags & MUIMRI_RECTFILL, RectFill() is quicker
3027 ** than Move()/Draw() for horizontal or vertical lines.
3028 ** on the current display.
3030 #define MUIMRI_RECTFILL (1<<0)
3033 ** If mri_Flags & MUIMRI_TRUECOLOR, display environment is a
3034 ** cybergraphics emulated hicolor or true color display.
3036 #define MUIMRI_TRUECOLOR (1<<1)
3039 ** If mri_Flags & MUIMRI_THINFRAMES, MUI uses thin frames
3040 ** (1:1) apsect ratio instead of standard 2:1 frames.
3042 #define MUIMRI_THINFRAMES (1<<2)
3045 ** If mri_Flags & MUIMRI_REFRESHMODE, MUI is currently
3046 ** refreshing a WFLG_SIMPLEREFRESH window and is between
3047 ** a BeginRefresh()/EndRefresh() pair.
3049 #define MUIMRI_REFRESHMODE (1<<3)
3052 /* the following macros can be used to get pointers to an objects
3053 GlobalInfo and RenderInfo structures. */
3055 struct __dummyXFC2__
3057 struct MUI_NotifyData mnd
;
3058 struct MUI_AreaData mad
;
3061 #define muiNotifyData(obj) (&(((struct __dummyXFC2__ *)(obj))->mnd))
3062 #define muiAreaData(obj) (&(((struct __dummyXFC2__ *)(obj))->mad))
3064 #define muiGlobalInfo(obj) (((struct __dummyXFC2__ *)(obj))->mnd.mnd_GlobalInfo)
3065 #define muiUserData(obj) (((struct __dummyXFC2__ *)(obj))->mnd.mnd_UserData)
3066 #define muiRenderInfo(obj) (((struct __dummyXFC2__ *)(obj))->mad.mad_RenderInfo)
3070 /* User configurable keyboard events coming with MUIM_HandleInput */
3074 MUIKEY_RELEASE
= -2, /* not a real key, faked when MUIKEY_PRESS is released */
3093 MUIKEY_WINDOW_CLOSE
,
3098 MUIKEY_COUNT
/* counter */
3101 #define MUIKEYF_PRESS (1<<MUIKEY_PRESS)
3102 #define MUIKEYF_TOGGLE (1<<MUIKEY_TOGGLE)
3103 #define MUIKEYF_UP (1<<MUIKEY_UP)
3104 #define MUIKEYF_DOWN (1<<MUIKEY_DOWN)
3105 #define MUIKEYF_PAGEUP (1<<MUIKEY_PAGEUP)
3106 #define MUIKEYF_PAGEDOWN (1<<MUIKEY_PAGEDOWN)
3107 #define MUIKEYF_TOP (1<<MUIKEY_TOP)
3108 #define MUIKEYF_BOTTOM (1<<MUIKEY_BOTTOM)
3109 #define MUIKEYF_LEFT (1<<MUIKEY_LEFT)
3110 #define MUIKEYF_RIGHT (1<<MUIKEY_RIGHT)
3111 #define MUIKEYF_WORDLEFT (1<<MUIKEY_WORDLEFT)
3112 #define MUIKEYF_WORDRIGHT (1<<MUIKEY_WORDRIGHT)
3113 #define MUIKEYF_LINESTART (1<<MUIKEY_LINESTART)
3114 #define MUIKEYF_LINEEND (1<<MUIKEY_LINEEND)
3115 #define MUIKEYF_GADGET_NEXT (1<<MUIKEY_GADGET_NEXT)
3116 #define MUIKEYF_GADGET_PREV (1<<MUIKEY_GADGET_PREV)
3117 #define MUIKEYF_GADGET_OFF (1<<MUIKEY_GADGET_OFF)
3118 #define MUIKEYF_WINDOW_CLOSE (1<<MUIKEY_WINDOW_CLOSE)
3119 #define MUIKEYF_WINDOW_NEXT (1<<MUIKEY_WINDOW_NEXT)
3120 #define MUIKEYF_WINDOW_PREV (1<<MUIKEY_WINDOW_PREV)
3121 #define MUIKEYF_HELP (1<<MUIKEY_HELP)
3122 #define MUIKEYF_POPUP (1<<MUIKEY_POPUP)
3125 /* Some useful shortcuts. define MUI_NOSHORTCUTS to get rid of them */
3126 /* NOTE: These macros may only be used in custom classes and are */
3127 /* only valid if your class is inbetween the specified methods! */
3129 #ifndef MUI_NOSHORTCUTS
3131 #define _app(obj) (muiGlobalInfo(obj)->mgi_ApplicationObject) /* valid between MUIM_Setup/Cleanup */
3132 #define _win(obj) (muiRenderInfo(obj)->mri_WindowObject) /* valid between MUIM_Setup/Cleanup */
3133 #define _dri(obj) (muiRenderInfo(obj)->mri_DrawInfo) /* valid between MUIM_Setup/Cleanup */
3134 #define _screen(obj) (muiRenderInfo(obj)->mri_Screen) /* valid between MUIM_Setup/Cleanup */
3135 #define _pens(obj) (muiRenderInfo(obj)->mri_Pens) /* valid between MUIM_Setup/Cleanup */
3136 #define _window(obj) (muiRenderInfo(obj)->mri_Window) /* valid between MUIM_Show/Hide */
3137 #define _rp(obj) (muiRenderInfo(obj)->mri_RastPort) /* valid between MUIM_Show/Hide */
3138 #define _left(obj) (muiAreaData(obj)->mad_Box.Left) /* valid during MUIM_Draw */
3139 #define _top(obj) (muiAreaData(obj)->mad_Box.Top) /* valid during MUIM_Draw */
3140 #define _width(obj) (muiAreaData(obj)->mad_Box.Width) /* valid during MUIM_Draw */
3141 #define _height(obj) (muiAreaData(obj)->mad_Box.Height) /* valid during MUIM_Draw */
3142 #define _right(obj) (_left(obj)+_width(obj)-1) /* valid during MUIM_Draw */
3143 #define _bottom(obj) (_top(obj)+_height(obj)-1) /* valid during MUIM_Draw */
3144 #define _addleft(obj) (muiAreaData(obj)->mad_addleft ) /* valid during MUIM_Draw */
3145 #define _addtop(obj) (muiAreaData(obj)->mad_addtop ) /* valid during MUIM_Draw */
3146 #define _subwidth(obj) (muiAreaData(obj)->mad_subwidth ) /* valid during MUIM_Draw */
3147 #define _subheight(obj) (muiAreaData(obj)->mad_subheight) /* valid during MUIM_Draw */
3148 #define _mleft(obj) (_left(obj)+_addleft(obj)) /* valid during MUIM_Draw */
3149 #define _mtop(obj) (_top(obj)+_addtop(obj)) /* valid during MUIM_Draw */
3150 #define _mwidth(obj) (_width(obj)-_subwidth(obj)) /* valid during MUIM_Draw */
3151 #define _mheight(obj) (_height(obj)-_subheight(obj)) /* valid during MUIM_Draw */
3152 #define _mright(obj) (_mleft(obj)+_mwidth(obj)-1) /* valid during MUIM_Draw */
3153 #define _mbottom(obj) (_mtop(obj)+_mheight(obj)-1) /* valid during MUIM_Draw */
3154 #define _font(obj) (muiAreaData(obj)->mad_Font) /* valid between MUIM_Setup/Cleanup */
3155 #define _minwidth(obj) (muiAreaData(obj)->mad_MinMax.MinWidth) /* valid between MUIM_Show/Hide */
3156 #define _minheight(obj) (muiAreaData(obj)->mad_MinMax.MinHeight) /* valid between MUIM_Show/Hide */
3157 #define _maxwidth(obj) (muiAreaData(obj)->mad_MinMax.MaxWidth) /* valid between MUIM_Show/Hide */
3158 #define _maxheight(obj) (muiAreaData(obj)->mad_MinMax.MaxHeight) /* valid between MUIM_Show/Hide */
3159 #define _defwidth(obj) (muiAreaData(obj)->mad_MinMax.DefWidth) /* valid between MUIM_Show/Hide */
3160 #define _defheight(obj) (muiAreaData(obj)->mad_MinMax.DefHeight) /* valid between MUIM_Show/Hide */
3161 #define _flags(obj) (muiAreaData(obj)->mad_Flags)
3167 /* MUI_CustomClass returned by MUI_CreateCustomClass() */
3169 struct MUI_CustomClass
3171 APTR mcc_UserData
; /* use for whatever you want */
3173 struct Library
*mcc_UtilityBase
; /* MUI has opened these libraries */
3174 struct Library
*mcc_DOSBase
; /* for you automatically. You can */
3175 struct Library
*mcc_GfxBase
; /* use them or decide to open */
3176 struct Library
*mcc_IntuitionBase
; /* your libraries yourself. */
3178 struct IClass
*mcc_Super
; /* pointer to super class */
3179 struct IClass
*mcc_Class
; /* pointer to the new class */
3181 /* ... private data follows ... */
3188 #elif defined(__VBCC__)
3189 #pragma default-align