Updated from original SVN.
[cake.git] / workbench / classes / gadgets / texteditor / includes / libraries / mui.h
blob82718f30890d100ca8cda9fd25eb471ab1ac9765
1 /***************************************************************************
2 **
3 ** MUI - MagicUserInterface
4 ** (c) 1993-1997 Stefan Stuntz
5 **
6 ** Main Header File
7 **
8 ****************************************************************************
9 ** Class Tree
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:
83 ** Name Meaning
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
109 #ifndef EXEC_TYPES_H
110 #include <exec/types.h>
111 #endif
113 #ifndef DOS_DOS_H
114 #include <dos/dos.h>
115 #endif
117 #ifndef INTUITION_CLASSES_H
118 #include <intuition/classes.h>
119 #endif
121 #ifndef INTUITION_SCREENS_H
122 #include <intuition/screens.h>
123 #endif
125 #ifndef PROTO_INTUITION_H
126 #include <proto/intuition.h>
127 #endif
129 #include "amiga-align.h"
132 /***************************************************************************
133 ** Library specification
134 ***************************************************************************/
136 #define MUIMASTER_NAME "muimaster.library"
137 #define MUIMASTER_VMIN 11
138 #define MUIMASTER_VLATEST 19
141 ** !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
142 ** Warning, some of the macros in this header file work only with
143 ** muimaster.library V11 and above. If you recompile your programs,
144 ** be sure to open muimaster.library with MUIMASTER_VMIN as version number.
145 ** !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
149 /* comment this if you dont want to include obsolete identifiers */
151 #define MUI_OBSOLETE
155 /*************************************************************************
156 ** Config items for MUIM_GetConfigItem
157 *************************************************************************/
160 #define MUICFG_PublicScreen 36
165 /*************************************************************************
166 ** Black box specification structures for images, pens, frames
167 *************************************************************************/
169 struct MUI_PenSpec
171 char buf[32];
176 /*************************************************************************
177 ** Public Screen Stuff
178 *************************************************************************/
181 ** NOTE: This stuff is only included to allow compilation of the supplied
182 ** public screen manager for educational purposes. Everything
183 ** here is subject to change without notice and I guarantee to
184 ** do that just for fun!
185 ** More info can be found in the screen manager source file.
188 #define PSD_INITIAL_NAME "(unnamed)"
189 #define PSD_INITIAL_TITLE "MUI Public Screen"
190 #define PSD_ID_MPUB MAKE_ID('M','P','U','B')
192 #define PSD_NAME_FRONTMOST "«Frontmost»"
194 #define PSD_FILENAME_SAVE "envarc:mui/PublicScreens.iff"
195 #define PSD_FILENAME_USE "env:mui/PublicScreens.iff"
197 #define PSD_MAXLEN_NAME 32
198 #define PSD_MAXLEN_TITLE 128
199 #define PSD_MAXLEN_FONT 48
200 #define PSD_MAXLEN_BACKGROUND 256
201 #define PSD_NUMCOLS 8
202 #define PSD_MAXSYSPENS 20
203 #define PSD_NUMSYSPENS 12
204 #define PSD_MAXMUIPENS 10
205 #define PSD_NUMMUIPENS MPEN_COUNT
207 struct MUI_RGBcolor
209 ULONG red;
210 ULONG green;
211 ULONG blue;
214 struct MUI_PubScreenDesc
216 LONG Version;
218 char Name[PSD_MAXLEN_NAME];
219 char Title[PSD_MAXLEN_TITLE];
220 char Font[PSD_MAXLEN_FONT];
221 char Background[PSD_MAXLEN_BACKGROUND];
223 ULONG DisplayID;
225 UWORD DisplayWidth;
226 UWORD DisplayHeight;
228 UBYTE DisplayDepth;
229 UBYTE OverscanType;
230 UBYTE AutoScroll;
231 UBYTE NoDrag;
232 UBYTE Exclusive;
233 UBYTE Interleaved;
234 UBYTE SysDefault;
235 UBYTE Behind;
236 UBYTE AutoClose;
237 UBYTE CloseGadget;
238 UBYTE DummyWasForeign;
240 BYTE SystemPens[PSD_MAXSYSPENS];
241 UBYTE Reserved[1+7*4-PSD_MAXSYSPENS];
243 struct MUI_RGBcolor Palette[PSD_NUMCOLS];
244 struct MUI_RGBcolor rsvd[PSD_MAXSYSPENS-PSD_NUMCOLS];
246 struct MUI_PenSpec rsvd2[PSD_MAXMUIPENS];
248 LONG Changed;
249 APTR UserData;
252 struct MUIS_InfoClient
254 struct MinNode node;
255 struct Task *task;
256 ULONG sigbit;
260 /***************************************************************************
261 ** Object Types for MUI_MakeObject()
262 ***************************************************************************/
264 #define MUIO_Label 1 /* STRPTR label, ULONG flags */
265 #define MUIO_Button 2 /* STRPTR label */
266 #define MUIO_Checkmark 3 /* STRPTR label */
267 #define MUIO_Cycle 4 /* STRPTR label, STRPTR *entries */
268 #define MUIO_Radio 5 /* STRPTR label, STRPTR *entries */
269 #define MUIO_Slider 6 /* STRPTR label, LONG min, LONG max */
270 #define MUIO_String 7 /* STRPTR label, LONG maxlen */
271 #define MUIO_PopButton 8 /* STRPTR imagespec */
272 #define MUIO_HSpace 9 /* LONG space */
273 #define MUIO_VSpace 10 /* LONG space */
274 #define MUIO_HBar 11 /* LONG space */
275 #define MUIO_VBar 12 /* LONG space */
276 #define MUIO_MenustripNM 13 /* struct NewMenu *nm, ULONG flags */
277 #define MUIO_Menuitem 14 /* STRPTR label, STRPTR shortcut, ULONG flags, ULONG data */
278 #define MUIO_BarTitle 15 /* STRPTR label */
279 #define MUIO_NumericButton 16 /* STRPTR label, LONG min, LONG max, STRPTR format */
281 #define MUIO_Menuitem_CopyStrings (1<<30)
283 #define MUIO_Label_SingleFrame (1<< 8)
284 #define MUIO_Label_DoubleFrame (1<< 9)
285 #define MUIO_Label_LeftAligned (1<<10)
286 #define MUIO_Label_Centered (1<<11)
287 #define MUIO_Label_FreeVert (1<<12)
289 #define MUIO_MenustripNM_CommandKeyCheck (1<<0) /* check for "localized" menu items such as "O\0Open" */
293 /***************************************************************************
294 ** ARexx Interface
295 ***************************************************************************/
297 struct MUI_Command
299 char *mc_Name;
300 char *mc_Template;
301 LONG mc_Parameters;
302 struct Hook *mc_Hook;
303 LONG mc_Reserved[5];
306 #define MC_TEMPLATE_ID ((STRPTR)~0)
308 #define MUI_RXERR_BADDEFINITION -1
309 #define MUI_RXERR_OUTOFMEMORY -2
310 #define MUI_RXERR_UNKNOWNCOMMAND -3
311 #define MUI_RXERR_BADSYNTAX -4
314 /***************************************************************************
315 ** Return values for MUI_Error()
316 ***************************************************************************/
318 #define MUIE_OK 0
319 #define MUIE_OutOfMemory 1
320 #define MUIE_OutOfGfxMemory 2
321 #define MUIE_InvalidWindowObject 3
322 #define MUIE_MissingLibrary 4
323 #define MUIE_NoARexx 5
324 #define MUIE_SingleTask 6
328 /***************************************************************************
329 ** Standard MUI Images & Backgrounds
330 ***************************************************************************/
332 #define MUII_WindowBack 0 /* These images are configured */
333 #define MUII_RequesterBack 1 /* with the preferences program. */
334 #define MUII_ButtonBack 2
335 #define MUII_ListBack 3
336 #define MUII_TextBack 4
337 #define MUII_PropBack 5
338 #define MUII_PopupBack 6
339 #define MUII_SelectedBack 7
340 #define MUII_ListCursor 8
341 #define MUII_ListSelect 9
342 #define MUII_ListSelCur 10
343 #define MUII_ArrowUp 11
344 #define MUII_ArrowDown 12
345 #define MUII_ArrowLeft 13
346 #define MUII_ArrowRight 14
347 #define MUII_CheckMark 15
348 #define MUII_RadioButton 16
349 #define MUII_Cycle 17
350 #define MUII_PopUp 18
351 #define MUII_PopFile 19
352 #define MUII_PopDrawer 20
353 #define MUII_PropKnob 21
354 #define MUII_Drawer 22
355 #define MUII_HardDisk 23
356 #define MUII_Disk 24
357 #define MUII_Chip 25
358 #define MUII_Volume 26
359 #define MUII_RegisterBack 27
360 #define MUII_Network 28
361 #define MUII_Assign 29
362 #define MUII_TapePlay 30
363 #define MUII_TapePlayBack 31
364 #define MUII_TapePause 32
365 #define MUII_TapeStop 33
366 #define MUII_TapeRecord 34
367 #define MUII_GroupBack 35
368 #define MUII_SliderBack 36
369 #define MUII_SliderKnob 37
370 #define MUII_TapeUp 38
371 #define MUII_TapeDown 39
372 #define MUII_PageBack 40
373 #define MUII_ReadListBack 41
374 #define MUII_Count 42
376 #define MUII_BACKGROUND 128 /* These are direct color */
377 #define MUII_SHADOW 129 /* combinations and are not */
378 #define MUII_SHINE 130 /* affected by users prefs. */
379 #define MUII_FILL 131
380 #define MUII_SHADOWBACK 132 /* Generally, you should */
381 #define MUII_SHADOWFILL 133 /* avoid using them. Better */
382 #define MUII_SHADOWSHINE 134 /* use one of the customized */
383 #define MUII_FILLBACK 135 /* images above. */
384 #define MUII_FILLSHINE 136
385 #define MUII_SHINEBACK 137
386 #define MUII_FILLBACK2 138
387 #define MUII_HSHINEBACK 139
388 #define MUII_HSHADOWBACK 140
389 #define MUII_HSHINESHINE 141
390 #define MUII_HSHADOWSHADOW 142
391 #define MUII_MARKSHINE 143
392 #define MUII_MARKHALFSHINE 144
393 #define MUII_MARKBACKGROUND 145
394 #define MUII_LASTPAT 145
398 /***************************************************************************
399 ** Special values for some methods
400 ***************************************************************************/
402 #define MUIV_TriggerValue 0x49893131
403 #define MUIV_NotTriggerValue 0x49893133
404 #define MUIV_EveryTime 0x49893131
406 #define MUIV_Notify_Self 1
407 #define MUIV_Notify_Window 2
408 #define MUIV_Notify_Application 3
409 #define MUIV_Notify_Parent 4
411 #define MUIV_Application_Save_ENV ((STRPTR) 0)
412 #define MUIV_Application_Save_ENVARC ((STRPTR)~0)
413 #define MUIV_Application_Load_ENV ((STRPTR) 0)
414 #define MUIV_Application_Load_ENVARC ((STRPTR)~0)
416 #define MUIV_Application_ReturnID_Quit -1
418 #define MUIV_List_Insert_Top 0
419 #define MUIV_List_Insert_Active -1
420 #define MUIV_List_Insert_Sorted -2
421 #define MUIV_List_Insert_Bottom -3
423 #define MUIV_List_Remove_First 0
424 #define MUIV_List_Remove_Active -1
425 #define MUIV_List_Remove_Last -2
426 #define MUIV_List_Remove_Selected -3
428 #define MUIV_List_Select_Off 0
429 #define MUIV_List_Select_On 1
430 #define MUIV_List_Select_Toggle 2
431 #define MUIV_List_Select_Ask 3
433 #define MUIV_List_GetEntry_Active -1
434 #define MUIV_List_Select_Active -1
435 #define MUIV_List_Select_All -2
437 #define MUIV_List_Redraw_Active -1
438 #define MUIV_List_Redraw_All -2
440 #define MUIV_List_Move_Top 0
441 #define MUIV_List_Move_Active -1
442 #define MUIV_List_Move_Bottom -2
443 #define MUIV_List_Move_Next -3 /* only valid for second parameter */
444 #define MUIV_List_Move_Previous -4 /* only valid for second parameter */
446 #define MUIV_List_Exchange_Top 0
447 #define MUIV_List_Exchange_Active -1
448 #define MUIV_List_Exchange_Bottom -2
449 #define MUIV_List_Exchange_Next -3 /* only valid for second parameter */
450 #define MUIV_List_Exchange_Previous -4 /* only valid for second parameter */
452 #define MUIV_List_Jump_Top 0
453 #define MUIV_List_Jump_Active -1
454 #define MUIV_List_Jump_Bottom -2
455 #define MUIV_List_Jump_Up -4
456 #define MUIV_List_Jump_Down -3
458 #define MUIV_List_NextSelected_Start -1
459 #define MUIV_List_NextSelected_End -1
461 #define MUIV_DragQuery_Refuse 0
462 #define MUIV_DragQuery_Accept 1
464 #define MUIV_DragReport_Abort 0
465 #define MUIV_DragReport_Continue 1
466 #define MUIV_DragReport_Lock 2
467 #define MUIV_DragReport_Refresh 3
472 /***************************************************************************
473 ** Control codes for text strings
474 ***************************************************************************/
476 #define MUIX_R "\033r" /* right justified */
477 #define MUIX_C "\033c" /* centered */
478 #define MUIX_L "\033l" /* left justified */
480 #define MUIX_N "\033n" /* normal */
481 #define MUIX_B "\033b" /* bold */
482 #define MUIX_I "\033i" /* italic */
483 #define MUIX_U "\033u" /* underlined */
485 #define MUIX_PT "\0332" /* text pen */
486 #define MUIX_PH "\0338" /* highlight text pen */
490 /***************************************************************************
491 ** Parameter structures for some classes
492 ***************************************************************************/
494 struct MUI_Palette_Entry
496 LONG mpe_ID;
497 ULONG mpe_Red;
498 ULONG mpe_Green;
499 ULONG mpe_Blue;
500 LONG mpe_Group;
503 #define MUIV_Palette_Entry_End -1
506 /*****************************/
507 /* Application Input Handler */
508 /*****************************/
510 struct MUI_InputHandlerNode
512 struct MinNode ihn_Node;
513 Object *ihn_Object;
515 union
517 ULONG ihn_sigs;
518 struct
520 UWORD ihn_millis;
521 UWORD ihn_current;
522 } ihn_timer;
524 ihn_stuff;
526 ULONG ihn_Flags; /* see below */
527 ULONG ihn_Method;
530 #define ihn_Signals ihn_stuff.ihn_sigs
531 #define ihn_Millis ihn_stuff.ihn_timer.ihn_millis
532 #define ihn_Current ihn_stuff.ihn_timer.ihn_current
534 /* Flags for ihn_Flags */
535 #define MUIIHNF_TIMER (1<<0) /* set ihn_Ticks to number of 1/100 sec ticks you want to be triggered */
538 /************************/
539 /* Window Event Handler */
540 /************************/
542 struct MUI_EventHandlerNode
544 struct MinNode ehn_Node;
545 BYTE ehn_Reserved; /* don't touch! */
546 BYTE ehn_Priority; /* event handlers are inserted according to their priority. */
547 UWORD ehn_Flags; /* certain flags, see below for definitions. */
548 Object *ehn_Object; /* object which should receive MUIM_HandleEvent. */
549 struct IClass *ehn_Class; /* if !=NULL, MUIM_HandleEvent is invoked on exactly this class with CoerceMethod(). */
550 ULONG ehn_Events; /* one or more IDCMP flags this handler should react on. */
553 /* flags for ehn_Flags */
554 #define MUI_EHF_ALWAYSKEYS (1<<0)
556 /* other values reserved for future use */
558 /* return values for MUIM_HandleEvent (bit-masked, all other bits must be 0) */
559 #define MUI_EventHandlerRC_Eat (1<<0) /* stop MUI from calling other handlers */
562 /**********************/
563 /* List Position Test */
564 /**********************/
566 struct MUI_List_TestPos_Result
568 LONG entry; /* number of entry, -1 if mouse not over valid entry */
569 WORD column; /* numer of column, -1 if no valid column */
570 UWORD flags; /* see below */
571 WORD xoffset; /* x offset of mouse click relative to column start */
572 WORD yoffset; /* y offset of mouse click from center of line
573 (negative values mean click was above center,
574 positive values mean click was below center) */
577 #define MUI_LPR_ABOVE (1<<0)
578 #define MUI_LPR_BELOW (1<<1)
579 #define MUI_LPR_LEFT (1<<2)
580 #define MUI_LPR_RIGHT (1<<3)
583 /***************************************************************************
585 ** Macro Section
586 ** -------------
588 ** To make GUI creation more easy and understandable, you can use the
589 ** macros below. If you dont want, just define MUI_NOSHORTCUTS to disable
590 ** them.
592 ** These macros are available to C programmers only.
594 ***************************************************************************/
596 #ifndef MUI_NOSHORTCUTS
600 /***************************************************************************
602 ** Object Generation
603 ** -----------------
605 ** The xxxObject (and xChilds) macros generate new instances of MUI classes.
606 ** Every xxxObject can be followed by tagitems specifying initial create
607 ** time attributes for the new object and must be terminated with the
608 ** End macro:
610 ** obj = StringObject,
611 ** MUIA_String_Contents, "foo",
612 ** MUIA_String_MaxLen , 40,
613 ** End;
615 ** With the Child, SubWindow and WindowContents shortcuts you can
616 ** construct a complete GUI within one command:
618 ** app = ApplicationObject,
620 ** ...
622 ** SubWindow, WindowObject,
623 ** WindowContents, VGroup,
624 ** Child, String("foo",40),
625 ** Child, String("bar",50),
626 ** Child, HGroup,
627 ** Child, CheckMark(TRUE),
628 ** Child, CheckMark(FALSE),
629 ** End,
630 ** End,
631 ** End,
633 ** SubWindow, WindowObject,
634 ** WindowContents, HGroup,
635 ** Child, ...,
636 ** Child, ...,
637 ** End,
638 ** End,
640 ** ...
642 ** End;
644 ***************************************************************************/
646 #define MenustripObject MUI_NewObject(MUIC_Menustrip
647 #define MenuObject MUI_NewObject(MUIC_Menu
648 #define MenuObjectT(name) MUI_NewObject(MUIC_Menu,MUIA_Menu_Title,name
649 #define MenuitemObject MUI_NewObject(MUIC_Menuitem
650 #define WindowObject MUI_NewObject(MUIC_Window
651 #define ImageObject MUI_NewObject(MUIC_Image
652 #define BitmapObject MUI_NewObject(MUIC_Bitmap
653 #define BodychunkObject MUI_NewObject(MUIC_Bodychunk
654 #define NotifyObject MUI_NewObject(MUIC_Notify
655 #define ApplicationObject MUI_NewObject(MUIC_Application
656 #define TextObject MUI_NewObject(MUIC_Text
657 #define RectangleObject MUI_NewObject(MUIC_Rectangle
658 #define BalanceObject MUI_NewObject(MUIC_Balance
659 #define ListObject MUI_NewObject(MUIC_List
660 #define PropObject MUI_NewObject(MUIC_Prop
661 #define StringObject MUI_NewObject(MUIC_String
662 #define ScrollbarObject MUI_NewObject(MUIC_Scrollbar
663 #define ListviewObject MUI_NewObject(MUIC_Listview
664 #define RadioObject MUI_NewObject(MUIC_Radio
665 #define VolumelistObject MUI_NewObject(MUIC_Volumelist
666 #define FloattextObject MUI_NewObject(MUIC_Floattext
667 #define DirlistObject MUI_NewObject(MUIC_Dirlist
668 #define CycleObject MUI_NewObject(MUIC_Cycle
669 #define GaugeObject MUI_NewObject(MUIC_Gauge
670 #define ScaleObject MUI_NewObject(MUIC_Scale
671 #define NumericObject MUI_NewObject(MUIC_Numeric
672 #define SliderObject MUI_NewObject(MUIC_Slider
673 #define NumericbuttonObject MUI_NewObject(MUIC_Numericbutton
674 #define KnobObject MUI_NewObject(MUIC_Knob
675 #define LevelmeterObject MUI_NewObject(MUIC_Levelmeter
676 #define BoopsiObject MUI_NewObject(MUIC_Boopsi
677 #define ColorfieldObject MUI_NewObject(MUIC_Colorfield
678 #define PenadjustObject MUI_NewObject(MUIC_Penadjust
679 #define ColoradjustObject MUI_NewObject(MUIC_Coloradjust
680 #define PaletteObject MUI_NewObject(MUIC_Palette
681 #define GroupObject MUI_NewObject(MUIC_Group
682 #define RegisterObject MUI_NewObject(MUIC_Register
683 #define VirtgroupObject MUI_NewObject(MUIC_Virtgroup
684 #define ScrollgroupObject MUI_NewObject(MUIC_Scrollgroup
685 #define PopstringObject MUI_NewObject(MUIC_Popstring
686 #define PopobjectObject MUI_NewObject(MUIC_Popobject
687 #define PoplistObject MUI_NewObject(MUIC_Poplist
688 #define PopaslObject MUI_NewObject(MUIC_Popasl
689 #define PendisplayObject MUI_NewObject(MUIC_Pendisplay
690 #define PoppenObject MUI_NewObject(MUIC_Poppen
691 #define AboutmuiObject MUI_NewObject(MUIC_Aboutmui
692 #define ScrmodelistObject MUI_NewObject(MUIC_Scrmodelist
693 #define KeyentryObject MUI_NewObject(MUIC_Keyentry
694 #define VGroup MUI_NewObject(MUIC_Group
695 #define HGroup MUI_NewObject(MUIC_Group,MUIA_Group_Horiz,TRUE
696 #define ColGroup(cols) MUI_NewObject(MUIC_Group,MUIA_Group_Columns,(cols)
697 #define RowGroup(rows) MUI_NewObject(MUIC_Group,MUIA_Group_Rows ,(rows)
698 #define PageGroup MUI_NewObject(MUIC_Group,MUIA_Group_PageMode,TRUE
699 #define VGroupV MUI_NewObject(MUIC_Virtgroup
700 #define HGroupV MUI_NewObject(MUIC_Virtgroup,MUIA_Group_Horiz,TRUE
701 #define ColGroupV(cols) MUI_NewObject(MUIC_Virtgroup,MUIA_Group_Columns,(cols)
702 #define RowGroupV(rows) MUI_NewObject(MUIC_Virtgroup,MUIA_Group_Rows ,(rows)
703 #define PageGroupV MUI_NewObject(MUIC_Virtgroup,MUIA_Group_PageMode,TRUE
704 #define RegisterGroup(t) MUI_NewObject(MUIC_Register,MUIA_Register_Titles,(t)
705 #define End TAG_DONE)
707 #define Child MUIA_Group_Child
708 #define SubWindow MUIA_Application_Window
709 #define WindowContents MUIA_Window_RootObject
713 /***************************************************************************
715 ** Frame Types
716 ** -----------
718 ** These macros may be used to specify one of MUI's different frame types.
719 ** Note that every macro consists of one { ti_Tag, ti_Data } pair.
721 ** GroupFrameT() is a special kind of frame that contains a centered
722 ** title text.
724 ** HGroup, GroupFrameT("Horiz Groups"),
725 ** Child, RectangleObject, TextFrame , End,
726 ** Child, RectangleObject, StringFrame, End,
727 ** Child, RectangleObject, ButtonFrame, End,
728 ** Child, RectangleObject, ListFrame , End,
729 ** End,
731 ***************************************************************************/
733 #define NoFrame MUIA_Frame, MUIV_Frame_None
734 #define ButtonFrame MUIA_Frame, MUIV_Frame_Button
735 #define ImageButtonFrame MUIA_Frame, MUIV_Frame_ImageButton
736 #define TextFrame MUIA_Frame, MUIV_Frame_Text
737 #define StringFrame MUIA_Frame, MUIV_Frame_String
738 #define ReadListFrame MUIA_Frame, MUIV_Frame_ReadList
739 #define InputListFrame MUIA_Frame, MUIV_Frame_InputList
740 #define PropFrame MUIA_Frame, MUIV_Frame_Prop
741 #define SliderFrame MUIA_Frame, MUIV_Frame_Slider
742 #define GaugeFrame MUIA_Frame, MUIV_Frame_Gauge
743 #define VirtualFrame MUIA_Frame, MUIV_Frame_Virtual
744 #define GroupFrame MUIA_Frame, MUIV_Frame_Group
745 #define GroupFrameT(s) MUIA_Frame, MUIV_Frame_Group, MUIA_FrameTitle, s, MUIA_Background, MUII_GroupBack
749 /***************************************************************************
751 ** Spacing Macros
752 ** --------------
754 ***************************************************************************/
756 #define HVSpace MUI_NewObject(MUIC_Rectangle,TAG_DONE)
757 #define HSpace(x) MUI_MakeObject(MUIO_HSpace,x)
758 #define VSpace(x) MUI_MakeObject(MUIO_VSpace,x)
759 #define HCenter(obj) (HGroup, GroupSpacing(0), Child, HSpace(0), Child, (obj), Child, HSpace(0), End)
760 #define VCenter(obj) (VGroup, GroupSpacing(0), Child, VSpace(0), Child, (obj), Child, VSpace(0), End)
761 #define InnerSpacing(h,v) MUIA_InnerLeft,(h),MUIA_InnerRight,(h),MUIA_InnerTop,(v),MUIA_InnerBottom,(v)
762 #define GroupSpacing(x) MUIA_Group_Spacing,x
766 #ifdef MUI_OBSOLETE
768 /***************************************************************************
770 ** String-Object
771 ** -------------
773 ** The following macro creates a simple string gadget.
775 ***************************************************************************/
777 #define String(contents,maxlen)\
778 StringObject,\
779 StringFrame,\
780 MUIA_String_MaxLen , maxlen,\
781 MUIA_String_Contents, contents,\
784 #define KeyString(contents,maxlen,controlchar)\
785 StringObject,\
786 StringFrame,\
787 MUIA_ControlChar , controlchar,\
788 MUIA_String_MaxLen , maxlen,\
789 MUIA_String_Contents, contents,\
792 #endif
796 #ifdef MUI_OBSOLETE
798 /***************************************************************************
800 ** CheckMark-Object
801 ** ----------------
803 ** The following macro creates a checkmark gadget.
805 ***************************************************************************/
807 #define CheckMark(selected)\
808 ImageObject,\
809 ImageButtonFrame,\
810 MUIA_InputMode , MUIV_InputMode_Toggle,\
811 MUIA_Image_Spec , MUII_CheckMark,\
812 MUIA_Image_FreeVert , TRUE,\
813 MUIA_Selected , selected,\
814 MUIA_Background , MUII_ButtonBack,\
815 MUIA_ShowSelState , FALSE,\
818 #define KeyCheckMark(selected,control)\
819 ImageObject,\
820 ImageButtonFrame,\
821 MUIA_InputMode , MUIV_InputMode_Toggle,\
822 MUIA_Image_Spec , MUII_CheckMark,\
823 MUIA_Image_FreeVert , TRUE,\
824 MUIA_Selected , selected,\
825 MUIA_Background , MUII_ButtonBack,\
826 MUIA_ShowSelState , FALSE,\
827 MUIA_ControlChar , control,\
830 #endif
833 /***************************************************************************
835 ** Button-Objects
836 ** --------------
838 ** Note: Use small letters for KeyButtons, e.g.
839 ** KeyButton("Cancel",'c') and not KeyButton("Cancel",'C') !!
841 ***************************************************************************/
843 #define SimpleButton(label) MUI_MakeObject(MUIO_Button,label)
845 #ifdef MUI_OBSOLETE
847 #define KeyButton(name,key)\
848 TextObject,\
849 ButtonFrame,\
850 MUIA_Font, MUIV_Font_Button,\
851 MUIA_Text_Contents, name,\
852 MUIA_Text_PreParse, "\33c",\
853 MUIA_Text_HiChar , key,\
854 MUIA_ControlChar , key,\
855 MUIA_InputMode , MUIV_InputMode_RelVerify,\
856 MUIA_Background , MUII_ButtonBack,\
859 #endif
862 #ifdef MUI_OBSOLETE
864 /***************************************************************************
866 ** Cycle-Object
867 ** ------------
869 ***************************************************************************/
871 #define Cycle(entries) CycleObject, MUIA_Font, MUIV_Font_Button, MUIA_Cycle_Entries, entries, End
872 #define KeyCycle(entries,key) CycleObject, MUIA_Font, MUIV_Font_Button, MUIA_Cycle_Entries, entries, MUIA_ControlChar, key, End
876 /***************************************************************************
878 ** Radio-Object
879 ** ------------
881 ***************************************************************************/
883 #define Radio(name,array)\
884 RadioObject,\
885 GroupFrameT(name),\
886 MUIA_Radio_Entries,array,\
889 #define KeyRadio(name,array,key)\
890 RadioObject,\
891 GroupFrameT(name),\
892 MUIA_Radio_Entries,array,\
893 MUIA_ControlChar, key,\
898 /***************************************************************************
900 ** Slider-Object
901 ** -------------
903 ***************************************************************************/
906 #define Slider(min,max,level)\
907 SliderObject,\
908 MUIA_Numeric_Min , min,\
909 MUIA_Numeric_Max , max,\
910 MUIA_Numeric_Value, level,\
913 #define KeySlider(min,max,level,key)\
914 SliderObject,\
915 MUIA_Numeric_Min , min,\
916 MUIA_Numeric_Max , max,\
917 MUIA_Numeric_Value, level,\
918 MUIA_ControlChar , key,\
921 #endif
925 /***************************************************************************
927 ** Button to be used for popup objects
929 ***************************************************************************/
931 #define PopButton(img) MUI_MakeObject(MUIO_PopButton,img)
935 /***************************************************************************
937 ** Labeling Objects
938 ** ----------------
940 ** Labeling objects, e.g. a group of string gadgets,
942 ** Small: |foo |
943 ** Normal: |bar |
944 ** Big: |foobar|
945 ** Huge: |barfoo|
947 ** is done using a 2 column group:
949 ** ColGroup(2),
950 ** Child, Label2("Small:" ),
951 ** Child, StringObject, End,
952 ** Child, Label2("Normal:"),
953 ** Child, StringObject, End,
954 ** Child, Label2("Big:" ),
955 ** Child, StringObject, End,
956 ** Child, Label2("Huge:" ),
957 ** Child, StringObject, End,
958 ** End,
960 ** Note that we have three versions of the label macro, depending on
961 ** the frame type of the right hand object:
963 ** Label1(): For use with standard frames (e.g. checkmarks).
964 ** Label2(): For use with double high frames (e.g. string gadgets).
965 ** Label() : For use with objects without a frame.
967 ** These macros ensure that your label will look fine even if the
968 ** user of your application configured some strange spacing values.
969 ** If you want to use your own labeling, you'll have to pay attention
970 ** on this topic yourself.
972 ***************************************************************************/
974 #define Label(label) MUI_MakeObject(MUIO_Label,label,0)
975 #define Label1(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_SingleFrame)
976 #define Label2(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_DoubleFrame)
977 #define LLabel(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned)
978 #define LLabel1(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|MUIO_Label_SingleFrame)
979 #define LLabel2(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|MUIO_Label_DoubleFrame)
980 #define CLabel(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_Centered)
981 #define CLabel1(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_Centered|MUIO_Label_SingleFrame)
982 #define CLabel2(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_Centered|MUIO_Label_DoubleFrame)
984 #define FreeLabel(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert)
985 #define FreeLabel1(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_SingleFrame)
986 #define FreeLabel2(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_DoubleFrame)
987 #define FreeLLabel(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_LeftAligned)
988 #define FreeLLabel1(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_LeftAligned|MUIO_Label_SingleFrame)
989 #define FreeLLabel2(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_LeftAligned|MUIO_Label_DoubleFrame)
990 #define FreeCLabel(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_Centered)
991 #define FreeCLabel1(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_Centered|MUIO_Label_SingleFrame)
992 #define FreeCLabel2(label) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_Centered|MUIO_Label_DoubleFrame)
994 #define KeyLabel(label,key) MUI_MakeObject(MUIO_Label,label,key)
995 #define KeyLabel1(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_SingleFrame|(key))
996 #define KeyLabel2(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_DoubleFrame|(key))
997 #define KeyLLabel(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|(key))
998 #define KeyLLabel1(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|MUIO_Label_SingleFrame|(key))
999 #define KeyLLabel2(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_LeftAligned|MUIO_Label_DoubleFrame|(key))
1000 #define KeyCLabel(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_Centered|(key))
1001 #define KeyCLabel1(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_Centered|MUIO_Label_SingleFrame|(key))
1002 #define KeyCLabel2(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_Centered|MUIO_Label_DoubleFrame|(key))
1004 #define FreeKeyLabel(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|(key))
1005 #define FreeKeyLabel1(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_SingleFrame|(key))
1006 #define FreeKeyLabel2(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_DoubleFrame|(key))
1007 #define FreeKeyLLabel(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_LeftAligned|(key))
1008 #define FreeKeyLLabel1(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_LeftAligned|MUIO_Label_SingleFrame|(key))
1009 #define FreeKeyLLabel2(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_LeftAligned|MUIO_Label_DoubleFrame|(key))
1010 #define FreeKeyCLabel(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_Centered|(key))
1011 #define FreeKeyCLabel1(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_Centered|MUIO_Label_SingleFrame|(key))
1012 #define FreeKeyCLabel2(label,key) MUI_MakeObject(MUIO_Label,label,MUIO_Label_FreeVert|MUIO_Label_Centered|MUIO_Label_DoubleFrame|(key))
1016 /***************************************************************************
1018 ** Controlling Objects
1019 ** -------------------
1021 ** set() and get() are two short stubs for BOOPSI GetAttr() and SetAttrs()
1022 ** calls:
1024 ** {
1025 ** char *x;
1027 ** set(obj,MUIA_String_Contents,"foobar");
1028 ** get(obj,MUIA_String_Contents,&x);
1030 ** printf("gadget contains '%s'\n",x);
1031 ** }
1033 ** nnset() sets an attribute without triggering a possible notification.
1035 ***************************************************************************/
1037 #ifndef __cplusplus
1039 #define get(obj,attr,store) GetAttr(attr,obj,(ULONG *)store)
1040 #define set(obj,attr,value) SetAttrs(obj,attr,value,TAG_DONE)
1041 #define nnset(obj,attr,value) SetAttrs(obj,MUIA_NoNotify,TRUE,attr,value,TAG_DONE)
1043 #define setmutex(obj,n) set(obj,MUIA_Radio_Active,n)
1044 #define setcycle(obj,n) set(obj,MUIA_Cycle_Active,n)
1045 #define setstring(obj,s) set(obj,MUIA_String_Contents,s)
1046 #define setcheckmark(obj,b) set(obj,MUIA_Selected,b)
1047 #define setslider(obj,l) set(obj,MUIA_Numeric_Value,l)
1049 #endif
1052 #endif /* MUI_NOSHORTCUTS */
1055 /***************************************************************************
1057 ** For Boopsi Image Implementors Only:
1059 ** If MUI is using a boopsi image object, it will send a special method
1060 ** immediately after object creation. This method has a parameter structure
1061 ** where the boopsi can fill in its minimum and maximum size and learn if
1062 ** its used in a horizontal or vertical context.
1064 ** The boopsi image must use the method id (MUIM_BoopsiQuery) as return
1065 ** value. That's how MUI sees that the method is implemented.
1067 ** Note: MUI does not depend on this method. If the boopsi image doesn't
1068 ** implement it, minimum size will be 0 and maximum size unlimited.
1070 ***************************************************************************/
1072 #define MUIM_BoopsiQuery 0x80427157 /* this is send to the boopsi and */
1073 /* must be used as return value */
1075 struct MUI_BoopsiQuery /* parameter structure */
1077 ULONG mbq_MethodID; /* always MUIM_BoopsiQuery */
1079 struct Screen *mbq_Screen; /* obsolete, use mbq_RenderInfo */
1080 ULONG mbq_Flags; /* read only, see below */
1082 LONG mbq_MinWidth ; /* write only, fill in min width */
1083 LONG mbq_MinHeight; /* write only, fill in min height */
1084 LONG mbq_MaxWidth ; /* write only, fill in max width */
1085 LONG mbq_MaxHeight; /* write only, fill in max height */
1086 LONG mbq_DefWidth ; /* write only, fill in def width */
1087 LONG mbq_DefHeight; /* write only, fill in def height */
1089 struct MUI_RenderInfo *mbq_RenderInfo; /* read only, display context */
1091 /* may grow in future ... */
1094 #define MUIP_BoopsiQuery MUI_BoopsiQuery /* old structure name */
1096 #define MBQF_HORIZ (1<<0) /* object used in a horizontal */
1097 /* context (else vertical) */
1099 #define MBQ_MUI_MAXMAX (10000) /* use this for unlimited MaxWidth/Height */
1102 /*******************************************/
1103 /* Begin of automatic header file creation */
1104 /*******************************************/
1109 /****************************************************************************/
1110 /** Notify **/
1111 /****************************************************************************/
1113 #ifdef _DCC
1114 extern char MUIC_Notify[];
1115 #else
1116 #define MUIC_Notify "Notify.mui"
1117 #endif
1119 /* Methods */
1121 #define MUIM_CallHook 0x8042b96b /* V4 */
1122 #define MUIM_Export 0x80420f1c /* V12 */
1123 #define MUIM_FindUData 0x8042c196 /* V8 */
1124 #define MUIM_GetConfigItem 0x80423edb /* V11 */
1125 #define MUIM_GetUData 0x8042ed0c /* V8 */
1126 #define MUIM_Import 0x8042d012 /* V12 */
1127 #define MUIM_KillNotify 0x8042d240 /* V4 */
1128 #define MUIM_KillNotifyObj 0x8042b145 /* V16 */
1129 #define MUIM_MultiSet 0x8042d356 /* V7 */
1130 #define MUIM_NoNotifySet 0x8042216f /* V9 */
1131 #define MUIM_Notify 0x8042c9cb /* V4 */
1132 #define MUIM_Set 0x8042549a /* V4 */
1133 #define MUIM_SetAsString 0x80422590 /* V4 */
1134 #define MUIM_SetUData 0x8042c920 /* V8 */
1135 #define MUIM_SetUDataOnce 0x8042ca19 /* V11 */
1136 #define MUIM_WriteLong 0x80428d86 /* V6 */
1137 #define MUIM_WriteString 0x80424bf4 /* V6 */
1138 struct MUIP_CallHook { ULONG MethodID; struct Hook *Hook; ULONG param1; /* ... */ };
1139 struct MUIP_Export { ULONG MethodID; Object *dataspace; };
1140 struct MUIP_FindUData { ULONG MethodID; ULONG udata; };
1141 struct MUIP_GetConfigItem { ULONG MethodID; ULONG id; ULONG *storage; };
1142 struct MUIP_GetUData { ULONG MethodID; ULONG udata; ULONG attr; ULONG *storage; };
1143 struct MUIP_Import { ULONG MethodID; Object *dataspace; };
1144 struct MUIP_KillNotify { ULONG MethodID; ULONG TrigAttr; };
1145 struct MUIP_KillNotifyObj { ULONG MethodID; ULONG TrigAttr; Object *dest; };
1146 struct MUIP_MultiSet { ULONG MethodID; ULONG attr; ULONG val; APTR obj; /* ... */ };
1147 struct MUIP_NoNotifySet { ULONG MethodID; ULONG attr; char *format; ULONG val; /* ... */ };
1148 struct MUIP_Notify { ULONG MethodID; ULONG TrigAttr; ULONG TrigVal; APTR DestObj; ULONG FollowParams; /* ... */ };
1149 struct MUIP_Set { ULONG MethodID; ULONG attr; ULONG val; };
1150 struct MUIP_SetAsString { ULONG MethodID; ULONG attr; char *format; ULONG val; /* ... */ };
1151 struct MUIP_SetUData { ULONG MethodID; ULONG udata; ULONG attr; ULONG val; };
1152 struct MUIP_SetUDataOnce { ULONG MethodID; ULONG udata; ULONG attr; ULONG val; };
1153 struct MUIP_WriteLong { ULONG MethodID; ULONG val; ULONG *memory; };
1154 struct MUIP_WriteString { ULONG MethodID; char *str; char *memory; };
1156 /* Attributes */
1158 #define MUIA_ApplicationObject 0x8042d3ee /* V4 ..g Object * */
1159 #define MUIA_AppMessage 0x80421955 /* V5 ..g struct AppMessage * */
1160 #define MUIA_HelpLine 0x8042a825 /* V4 isg LONG */
1161 #define MUIA_HelpNode 0x80420b85 /* V4 isg STRPTR */
1162 #define MUIA_NoNotify 0x804237f9 /* V7 .s. BOOL */
1163 #define MUIA_ObjectID 0x8042d76e /* V11 isg ULONG */
1164 #define MUIA_Parent 0x8042e35f /* V11 ..g Object * */
1165 #define MUIA_Revision 0x80427eaa /* V4 ..g LONG */
1166 #define MUIA_UserData 0x80420313 /* V4 isg ULONG */
1167 #define MUIA_Version 0x80422301 /* V4 ..g LONG */
1171 /****************************************************************************/
1172 /** Family **/
1173 /****************************************************************************/
1175 #ifdef _DCC
1176 extern char MUIC_Family[];
1177 #else
1178 #define MUIC_Family "Family.mui"
1179 #endif
1181 /* Methods */
1183 #define MUIM_Family_AddHead 0x8042e200 /* V8 */
1184 #define MUIM_Family_AddTail 0x8042d752 /* V8 */
1185 #define MUIM_Family_Insert 0x80424d34 /* V8 */
1186 #define MUIM_Family_Remove 0x8042f8a9 /* V8 */
1187 #define MUIM_Family_Sort 0x80421c49 /* V8 */
1188 #define MUIM_Family_Transfer 0x8042c14a /* V8 */
1189 struct MUIP_Family_AddHead { ULONG MethodID; Object *obj; };
1190 struct MUIP_Family_AddTail { ULONG MethodID; Object *obj; };
1191 struct MUIP_Family_Insert { ULONG MethodID; Object *obj; Object *pred; };
1192 struct MUIP_Family_Remove { ULONG MethodID; Object *obj; };
1193 struct MUIP_Family_Sort { ULONG MethodID; Object *obj[1]; };
1194 struct MUIP_Family_Transfer { ULONG MethodID; Object *family; };
1196 /* Attributes */
1198 #define MUIA_Family_Child 0x8042c696 /* V8 i.. Object * */
1199 #define MUIA_Family_List 0x80424b9e /* V8 ..g struct MinList * */
1203 /****************************************************************************/
1204 /** Menustrip **/
1205 /****************************************************************************/
1207 #ifdef _DCC
1208 extern char MUIC_Menustrip[];
1209 #else
1210 #define MUIC_Menustrip "Menustrip.mui"
1211 #endif
1213 /* Methods */
1216 /* Attributes */
1218 #define MUIA_Menustrip_Enabled 0x8042815b /* V8 isg BOOL */
1222 /****************************************************************************/
1223 /** Menu **/
1224 /****************************************************************************/
1226 #ifdef _DCC
1227 extern char MUIC_Menu[];
1228 #else
1229 #define MUIC_Menu "Menu.mui"
1230 #endif
1232 /* Methods */
1235 /* Attributes */
1237 #define MUIA_Menu_Enabled 0x8042ed48 /* V8 isg BOOL */
1238 #define MUIA_Menu_Title 0x8042a0e3 /* V8 isg STRPTR */
1242 /****************************************************************************/
1243 /** Menuitem **/
1244 /****************************************************************************/
1246 #ifdef _DCC
1247 extern char MUIC_Menuitem[];
1248 #else
1249 #define MUIC_Menuitem "Menuitem.mui"
1250 #endif
1252 /* Methods */
1255 /* Attributes */
1257 #define MUIA_Menuitem_Checked 0x8042562a /* V8 isg BOOL */
1258 #define MUIA_Menuitem_Checkit 0x80425ace /* V8 isg BOOL */
1259 #define MUIA_Menuitem_CommandString 0x8042b9cc /* V16 isg BOOL */
1260 #define MUIA_Menuitem_Enabled 0x8042ae0f /* V8 isg BOOL */
1261 #define MUIA_Menuitem_Exclude 0x80420bc6 /* V8 isg LONG */
1262 #define MUIA_Menuitem_Shortcut 0x80422030 /* V8 isg STRPTR */
1263 #define MUIA_Menuitem_Title 0x804218be /* V8 isg STRPTR */
1264 #define MUIA_Menuitem_Toggle 0x80424d5c /* V8 isg BOOL */
1265 #define MUIA_Menuitem_Trigger 0x80426f32 /* V8 ..g struct MenuItem * */
1267 #define MUIV_Menuitem_Shortcut_Check -1
1270 /****************************************************************************/
1271 /** Application **/
1272 /****************************************************************************/
1274 #ifdef _DCC
1275 extern char MUIC_Application[];
1276 #else
1277 #define MUIC_Application "Application.mui"
1278 #endif
1280 /* Methods */
1282 #define MUIM_Application_AboutMUI 0x8042d21d /* V14 */
1283 #define MUIM_Application_AddInputHandler 0x8042f099 /* V11 */
1284 #define MUIM_Application_CheckRefresh 0x80424d68 /* V11 */
1285 #ifdef MUI_OBSOLETE
1286 #define MUIM_Application_GetMenuCheck 0x8042c0a7 /* V4 */
1287 #endif /* MUI_OBSOLETE */
1288 #ifdef MUI_OBSOLETE
1289 #define MUIM_Application_GetMenuState 0x8042a58f /* V4 */
1290 #endif /* MUI_OBSOLETE */
1291 #ifdef MUI_OBSOLETE
1292 #define MUIM_Application_Input 0x8042d0f5 /* V4 */
1293 #endif /* MUI_OBSOLETE */
1294 #define MUIM_Application_InputBuffered 0x80427e59 /* V4 */
1295 #define MUIM_Application_Load 0x8042f90d /* V4 */
1296 #define MUIM_Application_NewInput 0x80423ba6 /* V11 */
1297 #define MUIM_Application_OpenConfigWindow 0x804299ba /* V11 */
1298 #define MUIM_Application_PushMethod 0x80429ef8 /* V4 */
1299 #define MUIM_Application_RemInputHandler 0x8042e7af /* V11 */
1300 #define MUIM_Application_ReturnID 0x804276ef /* V4 */
1301 #define MUIM_Application_Save 0x804227ef /* V4 */
1302 #define MUIM_Application_SetConfigItem 0x80424a80 /* V11 */
1303 #ifdef MUI_OBSOLETE
1304 #define MUIM_Application_SetMenuCheck 0x8042a707 /* V4 */
1305 #endif /* MUI_OBSOLETE */
1306 #ifdef MUI_OBSOLETE
1307 #define MUIM_Application_SetMenuState 0x80428bef /* V4 */
1308 #endif /* MUI_OBSOLETE */
1309 #define MUIM_Application_ShowHelp 0x80426479 /* V4 */
1310 struct MUIP_Application_AboutMUI { ULONG MethodID; Object *refwindow; };
1311 struct MUIP_Application_AddInputHandler { ULONG MethodID; struct MUI_InputHandlerNode *ihnode; };
1312 struct MUIP_Application_CheckRefresh { ULONG MethodID; };
1313 struct MUIP_Application_GetMenuCheck { ULONG MethodID; ULONG MenuID; };
1314 struct MUIP_Application_GetMenuState { ULONG MethodID; ULONG MenuID; };
1315 struct MUIP_Application_Input { ULONG MethodID; LONGBITS *signal; };
1316 struct MUIP_Application_InputBuffered { ULONG MethodID; };
1317 struct MUIP_Application_Load { ULONG MethodID; STRPTR name; };
1318 struct MUIP_Application_NewInput { ULONG MethodID; LONGBITS *signal; };
1319 struct MUIP_Application_OpenConfigWindow { ULONG MethodID; ULONG flags; };
1320 struct MUIP_Application_PushMethod { ULONG MethodID; Object *dest; LONG count; /* ... */ };
1321 struct MUIP_Application_RemInputHandler { ULONG MethodID; struct MUI_InputHandlerNode *ihnode; };
1322 struct MUIP_Application_ReturnID { ULONG MethodID; ULONG retid; };
1323 struct MUIP_Application_Save { ULONG MethodID; STRPTR name; };
1324 struct MUIP_Application_SetConfigItem { ULONG MethodID; ULONG item; APTR data; };
1325 struct MUIP_Application_SetMenuCheck { ULONG MethodID; ULONG MenuID; LONG stat; };
1326 struct MUIP_Application_SetMenuState { ULONG MethodID; ULONG MenuID; LONG stat; };
1327 struct MUIP_Application_ShowHelp { ULONG MethodID; Object *window; char *name; char *node; LONG line; };
1329 /* Attributes */
1331 #define MUIA_Application_Active 0x804260ab /* V4 isg BOOL */
1332 #define MUIA_Application_Author 0x80424842 /* V4 i.g STRPTR */
1333 #define MUIA_Application_Base 0x8042e07a /* V4 i.g STRPTR */
1334 #define MUIA_Application_Broker 0x8042dbce /* V4 ..g Broker * */
1335 #define MUIA_Application_BrokerHook 0x80428f4b /* V4 isg struct Hook * */
1336 #define MUIA_Application_BrokerPort 0x8042e0ad /* V6 ..g struct MsgPort * */
1337 #define MUIA_Application_BrokerPri 0x8042c8d0 /* V6 i.g LONG */
1338 #define MUIA_Application_Commands 0x80428648 /* V4 isg struct MUI_Command * */
1339 #define MUIA_Application_Copyright 0x8042ef4d /* V4 i.g STRPTR */
1340 #define MUIA_Application_Description 0x80421fc6 /* V4 i.g STRPTR */
1341 #define MUIA_Application_DiskObject 0x804235cb /* V4 isg struct DiskObject * */
1342 #define MUIA_Application_DoubleStart 0x80423bc6 /* V4 ..g BOOL */
1343 #define MUIA_Application_DropObject 0x80421266 /* V5 is. Object * */
1344 #define MUIA_Application_ForceQuit 0x804257df /* V8 ..g BOOL */
1345 #define MUIA_Application_HelpFile 0x804293f4 /* V8 isg STRPTR */
1346 #define MUIA_Application_Iconified 0x8042a07f /* V4 .sg BOOL */
1347 #ifdef MUI_OBSOLETE
1348 #define MUIA_Application_Menu 0x80420e1f /* V4 i.g struct NewMenu * */
1349 #endif /* MUI_OBSOLETE */
1350 #define MUIA_Application_MenuAction 0x80428961 /* V4 ..g ULONG */
1351 #define MUIA_Application_MenuHelp 0x8042540b /* V4 ..g ULONG */
1352 #define MUIA_Application_Menustrip 0x804252d9 /* V8 i.. Object * */
1353 #define MUIA_Application_RexxHook 0x80427c42 /* V7 isg struct Hook * */
1354 #define MUIA_Application_RexxMsg 0x8042fd88 /* V4 ..g struct RxMsg * */
1355 #define MUIA_Application_RexxString 0x8042d711 /* V4 .s. STRPTR */
1356 #define MUIA_Application_SingleTask 0x8042a2c8 /* V4 i.. BOOL */
1357 #define MUIA_Application_Sleep 0x80425711 /* V4 .s. BOOL */
1358 #define MUIA_Application_Title 0x804281b8 /* V4 i.g STRPTR */
1359 #define MUIA_Application_UseCommodities 0x80425ee5 /* V10 i.. BOOL */
1360 #define MUIA_Application_UseRexx 0x80422387 /* V10 i.. BOOL */
1361 #define MUIA_Application_Version 0x8042b33f /* V4 i.g STRPTR */
1362 #define MUIA_Application_Window 0x8042bfe0 /* V4 i.. Object * */
1363 #define MUIA_Application_WindowList 0x80429abe /* V13 ..g struct List * */
1365 #define MUIV_Application_Package_NetConnect 0xa3ff7b49
1368 /****************************************************************************/
1369 /** Window **/
1370 /****************************************************************************/
1372 #ifdef _DCC
1373 extern char MUIC_Window[];
1374 #else
1375 #define MUIC_Window "Window.mui"
1376 #endif
1378 /* Methods */
1380 #define MUIM_Window_AddEventHandler 0x804203b7 /* V16 */
1381 #ifdef MUI_OBSOLETE
1382 #define MUIM_Window_GetMenuCheck 0x80420414 /* V4 */
1383 #endif /* MUI_OBSOLETE */
1384 #ifdef MUI_OBSOLETE
1385 #define MUIM_Window_GetMenuState 0x80420d2f /* V4 */
1386 #endif /* MUI_OBSOLETE */
1387 #define MUIM_Window_RemEventHandler 0x8042679e /* V16 */
1388 #define MUIM_Window_ScreenToBack 0x8042913d /* V4 */
1389 #define MUIM_Window_ScreenToFront 0x804227a4 /* V4 */
1390 #ifdef MUI_OBSOLETE
1391 #define MUIM_Window_SetCycleChain 0x80426510 /* V4 */
1392 #endif /* MUI_OBSOLETE */
1393 #ifdef MUI_OBSOLETE
1394 #define MUIM_Window_SetMenuCheck 0x80422243 /* V4 */
1395 #endif /* MUI_OBSOLETE */
1396 #ifdef MUI_OBSOLETE
1397 #define MUIM_Window_SetMenuState 0x80422b5e /* V4 */
1398 #endif /* MUI_OBSOLETE */
1399 #define MUIM_Window_Snapshot 0x8042945e /* V11 */
1400 #define MUIM_Window_ToBack 0x8042152e /* V4 */
1401 #define MUIM_Window_ToFront 0x8042554f /* V4 */
1402 struct MUIP_Window_AddEventHandler { ULONG MethodID; struct MUI_EventHandlerNode *ehnode; };
1403 struct MUIP_Window_GetMenuCheck { ULONG MethodID; ULONG MenuID; };
1404 struct MUIP_Window_GetMenuState { ULONG MethodID; ULONG MenuID; };
1405 struct MUIP_Window_RemEventHandler { ULONG MethodID; struct MUI_EventHandlerNode *ehnode; };
1406 struct MUIP_Window_ScreenToBack { ULONG MethodID; };
1407 struct MUIP_Window_ScreenToFront { ULONG MethodID; };
1408 struct MUIP_Window_SetCycleChain { ULONG MethodID; Object *obj[1]; };
1409 struct MUIP_Window_SetMenuCheck { ULONG MethodID; ULONG MenuID; LONG stat; };
1410 struct MUIP_Window_SetMenuState { ULONG MethodID; ULONG MenuID; LONG stat; };
1411 struct MUIP_Window_Snapshot { ULONG MethodID; LONG flags; };
1412 struct MUIP_Window_ToBack { ULONG MethodID; };
1413 struct MUIP_Window_ToFront { ULONG MethodID; };
1415 /* Attributes */
1417 #define MUIA_Window_Activate 0x80428d2f /* V4 isg BOOL */
1418 #define MUIA_Window_ActiveObject 0x80427925 /* V4 .sg Object * */
1419 #define MUIA_Window_AltHeight 0x8042cce3 /* V4 i.g LONG */
1420 #define MUIA_Window_AltLeftEdge 0x80422d65 /* V4 i.g LONG */
1421 #define MUIA_Window_AltTopEdge 0x8042e99b /* V4 i.g LONG */
1422 #define MUIA_Window_AltWidth 0x804260f4 /* V4 i.g LONG */
1423 #define MUIA_Window_AppWindow 0x804280cf /* V5 i.. BOOL */
1424 #define MUIA_Window_Backdrop 0x8042c0bb /* V4 i.. BOOL */
1425 #define MUIA_Window_Borderless 0x80429b79 /* V4 i.. BOOL */
1426 #define MUIA_Window_CloseGadget 0x8042a110 /* V4 i.. BOOL */
1427 #define MUIA_Window_CloseRequest 0x8042e86e /* V4 ..g BOOL */
1428 #define MUIA_Window_DefaultObject 0x804294d7 /* V4 isg Object * */
1429 #define MUIA_Window_DepthGadget 0x80421923 /* V4 i.. BOOL */
1430 #define MUIA_Window_DragBar 0x8042045d /* V4 i.. BOOL */
1431 #define MUIA_Window_FancyDrawing 0x8042bd0e /* V8 isg BOOL */
1432 #define MUIA_Window_Height 0x80425846 /* V4 i.g LONG */
1433 #define MUIA_Window_ID 0x804201bd /* V4 isg ULONG */
1434 #define MUIA_Window_InputEvent 0x804247d8 /* V4 ..g struct InputEvent * */
1435 #define MUIA_Window_IsSubWindow 0x8042b5aa /* V4 isg BOOL */
1436 #define MUIA_Window_LeftEdge 0x80426c65 /* V4 i.g LONG */
1437 #ifdef MUI_OBSOLETE
1438 #define MUIA_Window_Menu 0x8042db94 /* V4 i.. struct NewMenu * */
1439 #endif /* MUI_OBSOLETE */
1440 #define MUIA_Window_MenuAction 0x80427521 /* V8 isg ULONG */
1441 #define MUIA_Window_Menustrip 0x8042855e /* V8 i.g Object * */
1442 #define MUIA_Window_MouseObject 0x8042bf9b /* V10 ..g Object * */
1443 #define MUIA_Window_NeedsMouseObject 0x8042372a /* V10 i.. BOOL */
1444 #define MUIA_Window_NoMenus 0x80429df5 /* V4 is. BOOL */
1445 #define MUIA_Window_Open 0x80428aa0 /* V4 .sg BOOL */
1446 #define MUIA_Window_PublicScreen 0x804278e4 /* V6 isg STRPTR */
1447 #define MUIA_Window_RefWindow 0x804201f4 /* V4 is. Object * */
1448 #define MUIA_Window_RootObject 0x8042cba5 /* V4 isg Object * */
1449 #define MUIA_Window_Screen 0x8042df4f /* V4 isg struct Screen * */
1450 #define MUIA_Window_ScreenTitle 0x804234b0 /* V5 isg STRPTR */
1451 #define MUIA_Window_SizeGadget 0x8042e33d /* V4 i.. BOOL */
1452 #define MUIA_Window_SizeRight 0x80424780 /* V4 i.. BOOL */
1453 #define MUIA_Window_Sleep 0x8042e7db /* V4 .sg BOOL */
1454 #define MUIA_Window_Title 0x8042ad3d /* V4 isg STRPTR */
1455 #define MUIA_Window_TopEdge 0x80427c66 /* V4 i.g LONG */
1456 #define MUIA_Window_UseBottomBorderScroller 0x80424e79 /* V13 isg BOOL */
1457 #define MUIA_Window_UseLeftBorderScroller 0x8042433e /* V13 isg BOOL */
1458 #define MUIA_Window_UseRightBorderScroller 0x8042c05e /* V13 isg BOOL */
1459 #define MUIA_Window_Width 0x8042dcae /* V4 i.g LONG */
1460 #define MUIA_Window_Window 0x80426a42 /* V4 ..g struct Window * */
1462 #define MUIV_Window_ActiveObject_None 0
1463 #define MUIV_Window_ActiveObject_Next -1
1464 #define MUIV_Window_ActiveObject_Prev -2
1465 #define MUIV_Window_AltHeight_MinMax(p) (0-(p))
1466 #define MUIV_Window_AltHeight_Visible(p) (-100-(p))
1467 #define MUIV_Window_AltHeight_Screen(p) (-200-(p))
1468 #define MUIV_Window_AltHeight_Scaled -1000
1469 #define MUIV_Window_AltLeftEdge_Centered -1
1470 #define MUIV_Window_AltLeftEdge_Moused -2
1471 #define MUIV_Window_AltLeftEdge_NoChange -1000
1472 #define MUIV_Window_AltTopEdge_Centered -1
1473 #define MUIV_Window_AltTopEdge_Moused -2
1474 #define MUIV_Window_AltTopEdge_Delta(p) (-3-(p))
1475 #define MUIV_Window_AltTopEdge_NoChange -1000
1476 #define MUIV_Window_AltWidth_MinMax(p) (0-(p))
1477 #define MUIV_Window_AltWidth_Visible(p) (-100-(p))
1478 #define MUIV_Window_AltWidth_Screen(p) (-200-(p))
1479 #define MUIV_Window_AltWidth_Scaled -1000
1480 #define MUIV_Window_Height_MinMax(p) (0-(p))
1481 #define MUIV_Window_Height_Visible(p) (-100-(p))
1482 #define MUIV_Window_Height_Screen(p) (-200-(p))
1483 #define MUIV_Window_Height_Scaled -1000
1484 #define MUIV_Window_Height_Default -1001
1485 #define MUIV_Window_LeftEdge_Centered -1
1486 #define MUIV_Window_LeftEdge_Moused -2
1487 #ifdef MUI_OBSOLETE
1488 #define MUIV_Window_Menu_NoMenu -1
1489 #endif /* MUI_OBSOLETE */
1490 #define MUIV_Window_TopEdge_Centered -1
1491 #define MUIV_Window_TopEdge_Moused -2
1492 #define MUIV_Window_TopEdge_Delta(p) (-3-(p))
1493 #define MUIV_Window_Width_MinMax(p) (0-(p))
1494 #define MUIV_Window_Width_Visible(p) (-100-(p))
1495 #define MUIV_Window_Width_Screen(p) (-200-(p))
1496 #define MUIV_Window_Width_Scaled -1000
1497 #define MUIV_Window_Width_Default -1001
1500 /****************************************************************************/
1501 /** Aboutmui **/
1502 /****************************************************************************/
1504 #ifdef _DCC
1505 extern char MUIC_Aboutmui[];
1506 #else
1507 #define MUIC_Aboutmui "Aboutmui.mui"
1508 #endif
1510 /* Methods */
1513 /* Attributes */
1515 #define MUIA_Aboutmui_Application 0x80422523 /* V11 i.. Object * */
1519 /****************************************************************************/
1520 /** Area **/
1521 /****************************************************************************/
1523 #ifdef _DCC
1524 extern char MUIC_Area[];
1525 #else
1526 #define MUIC_Area "Area.mui"
1527 #endif
1529 /* Methods */
1531 #define MUIM_AskMinMax 0x80423874 /* Custom Class */ /* V4 */
1532 #define MUIM_Cleanup 0x8042d985 /* Custom Class */ /* V4 */
1533 #define MUIM_ContextMenuBuild 0x80429d2e /* V11 */
1534 #define MUIM_ContextMenuChoice 0x80420f0e /* V11 */
1535 #define MUIM_CreateBubble 0x80421c41 /* V18 */
1536 #define MUIM_CreateShortHelp 0x80428e93 /* V11 */
1537 #define MUIM_DeleteBubble 0x804211af /* V18 */
1538 #define MUIM_DeleteShortHelp 0x8042d35a /* V11 */
1539 #define MUIM_DragBegin 0x8042c03a /* V11 */
1540 #define MUIM_DragDrop 0x8042c555 /* V11 */
1541 #define MUIM_DragFinish 0x804251f0 /* V11 */
1542 #define MUIM_DragQuery 0x80420261 /* V11 */
1543 #define MUIM_DragReport 0x8042edad /* V11 */
1544 #define MUIM_Draw 0x80426f3f /* Custom Class */ /* V4 */
1545 #define MUIM_DrawBackground 0x804238ca /* V11 */
1546 #define MUIM_HandleEvent 0x80426d66 /* Custom Class */ /* V16 */
1547 #define MUIM_HandleInput 0x80422a1a /* Custom Class */ /* V4 */
1548 #define MUIM_Hide 0x8042f20f /* Custom Class */ /* V4 */
1549 #define MUIM_Setup 0x80428354 /* Custom Class */ /* V4 */
1550 #define MUIM_Show 0x8042cc84 /* Custom Class */ /* V4 */
1551 struct MUIP_AskMinMax { ULONG MethodID; struct MUI_MinMax *MinMaxInfo; }; /* Custom Class */
1552 struct MUIP_Cleanup { ULONG MethodID; }; /* Custom Class */
1553 struct MUIP_ContextMenuBuild { ULONG MethodID; LONG mx; LONG my; };
1554 struct MUIP_ContextMenuChoice { ULONG MethodID; Object *item; };
1555 struct MUIP_CreateBubble { ULONG MethodID; LONG x; LONG y; char *txt; ULONG flags; };
1556 struct MUIP_CreateShortHelp { ULONG MethodID; LONG mx; LONG my; };
1557 struct MUIP_DeleteBubble { ULONG MethodID; APTR bubble; };
1558 struct MUIP_DeleteShortHelp { ULONG MethodID; STRPTR help; };
1559 struct MUIP_DragBegin { ULONG MethodID; Object *obj; };
1560 struct MUIP_DragDrop { ULONG MethodID; Object *obj; LONG x; LONG y; };
1561 struct MUIP_DragFinish { ULONG MethodID; Object *obj; };
1562 struct MUIP_DragQuery { ULONG MethodID; Object *obj; };
1563 struct MUIP_DragReport { ULONG MethodID; Object *obj; LONG x; LONG y; LONG update; };
1564 struct MUIP_Draw { ULONG MethodID; ULONG flags; }; /* Custom Class */
1565 struct MUIP_DrawBackground { ULONG MethodID; LONG left; LONG top; LONG width; LONG height; LONG xoffset; LONG yoffset; LONG flags; };
1566 struct MUIP_HandleEvent { ULONG MethodID; struct IntuiMessage *imsg; LONG muikey; }; /* Custom Class */
1567 struct MUIP_HandleInput { ULONG MethodID; struct IntuiMessage *imsg; LONG muikey; }; /* Custom Class */
1568 struct MUIP_Hide { ULONG MethodID; }; /* Custom Class */
1569 struct MUIP_Setup { ULONG MethodID; struct MUI_RenderInfo *RenderInfo; }; /* Custom Class */
1570 struct MUIP_Show { ULONG MethodID; }; /* Custom Class */
1572 /* Attributes */
1574 #define MUIA_Background 0x8042545b /* V4 is. LONG */
1575 #define MUIA_BottomEdge 0x8042e552 /* V4 ..g LONG */
1576 #define MUIA_ContextMenu 0x8042b704 /* V11 isg Object * */
1577 #define MUIA_ContextMenuTrigger 0x8042a2c1 /* V11 ..g Object * */
1578 #define MUIA_ControlChar 0x8042120b /* V4 isg char */
1579 #define MUIA_CycleChain 0x80421ce7 /* V11 isg LONG */
1580 #define MUIA_Disabled 0x80423661 /* V4 isg BOOL */
1581 #define MUIA_Draggable 0x80420b6e /* V11 isg BOOL */
1582 #define MUIA_Dropable 0x8042fbce /* V11 isg BOOL */
1583 #ifdef MUI_OBSOLETE
1584 #define MUIA_ExportID 0x8042d76e /* V4 isg ULONG */
1585 #endif /* MUI_OBSOLETE */
1586 #define MUIA_FillArea 0x804294a3 /* V4 is. BOOL */
1587 #define MUIA_FixHeight 0x8042a92b /* V4 i.. LONG */
1588 #define MUIA_FixHeightTxt 0x804276f2 /* V4 i.. STRPTR */
1589 #define MUIA_FixWidth 0x8042a3f1 /* V4 i.. LONG */
1590 #define MUIA_FixWidthTxt 0x8042d044 /* V4 i.. STRPTR */
1591 #define MUIA_Font 0x8042be50 /* V4 i.g struct TextFont * */
1592 #define MUIA_Frame 0x8042ac64 /* V4 i.. LONG */
1593 #define MUIA_FramePhantomHoriz 0x8042ed76 /* V4 i.. BOOL */
1594 #define MUIA_FrameTitle 0x8042d1c7 /* V4 i.. STRPTR */
1595 #define MUIA_Height 0x80423237 /* V4 ..g LONG */
1596 #define MUIA_HorizDisappear 0x80429615 /* V11 isg LONG */
1597 #define MUIA_HorizWeight 0x80426db9 /* V4 isg WORD */
1598 #define MUIA_InnerBottom 0x8042f2c0 /* V4 i.g LONG */
1599 #define MUIA_InnerLeft 0x804228f8 /* V4 i.g LONG */
1600 #define MUIA_InnerRight 0x804297ff /* V4 i.g LONG */
1601 #define MUIA_InnerTop 0x80421eb6 /* V4 i.g LONG */
1602 #define MUIA_InputMode 0x8042fb04 /* V4 i.. LONG */
1603 #define MUIA_LeftEdge 0x8042bec6 /* V4 ..g LONG */
1604 #define MUIA_MaxHeight 0x804293e4 /* V11 i.. LONG */
1605 #define MUIA_MaxWidth 0x8042f112 /* V11 i.. LONG */
1606 #define MUIA_Pressed 0x80423535 /* V4 ..g BOOL */
1607 #define MUIA_RightEdge 0x8042ba82 /* V4 ..g LONG */
1608 #define MUIA_Selected 0x8042654b /* V4 isg BOOL */
1609 #define MUIA_ShortHelp 0x80428fe3 /* V11 isg STRPTR */
1610 #define MUIA_ShowMe 0x80429ba8 /* V4 isg BOOL */
1611 #define MUIA_ShowSelState 0x8042caac /* V4 i.. BOOL */
1612 #define MUIA_Timer 0x80426435 /* V4 ..g LONG */
1613 #define MUIA_TopEdge 0x8042509b /* V4 ..g LONG */
1614 #define MUIA_VertDisappear 0x8042d12f /* V11 isg LONG */
1615 #define MUIA_VertWeight 0x804298d0 /* V4 isg WORD */
1616 #define MUIA_Weight 0x80421d1f /* V4 i.. WORD */
1617 #define MUIA_Width 0x8042b59c /* V4 ..g LONG */
1618 #define MUIA_Window 0x80421591 /* V4 ..g struct Window * */
1619 #define MUIA_WindowObject 0x8042669e /* V4 ..g Object * */
1621 #define MUIV_Font_Inherit 0
1622 #define MUIV_Font_Normal -1
1623 #define MUIV_Font_List -2
1624 #define MUIV_Font_Tiny -3
1625 #define MUIV_Font_Fixed -4
1626 #define MUIV_Font_Title -5
1627 #define MUIV_Font_Big -6
1628 #define MUIV_Font_Button -7
1629 #define MUIV_Frame_None 0
1630 #define MUIV_Frame_Button 1
1631 #define MUIV_Frame_ImageButton 2
1632 #define MUIV_Frame_Text 3
1633 #define MUIV_Frame_String 4
1634 #define MUIV_Frame_ReadList 5
1635 #define MUIV_Frame_InputList 6
1636 #define MUIV_Frame_Prop 7
1637 #define MUIV_Frame_Gauge 8
1638 #define MUIV_Frame_Group 9
1639 #define MUIV_Frame_PopUp 10
1640 #define MUIV_Frame_Virtual 11
1641 #define MUIV_Frame_Slider 12
1642 #define MUIV_Frame_Count 13
1643 #define MUIV_InputMode_None 0
1644 #define MUIV_InputMode_RelVerify 1
1645 #define MUIV_InputMode_Immediate 2
1646 #define MUIV_InputMode_Toggle 3
1649 /****************************************************************************/
1650 /** Rectangle **/
1651 /****************************************************************************/
1653 #ifdef _DCC
1654 extern char MUIC_Rectangle[];
1655 #else
1656 #define MUIC_Rectangle "Rectangle.mui"
1657 #endif
1659 /* Attributes */
1661 #define MUIA_Rectangle_BarTitle 0x80426689 /* V11 i.g STRPTR */
1662 #define MUIA_Rectangle_HBar 0x8042c943 /* V7 i.g BOOL */
1663 #define MUIA_Rectangle_VBar 0x80422204 /* V7 i.g BOOL */
1667 /****************************************************************************/
1668 /** Balance **/
1669 /****************************************************************************/
1671 #ifdef _DCC
1672 extern char MUIC_Balance[];
1673 #else
1674 #define MUIC_Balance "Balance.mui"
1675 #endif
1678 /****************************************************************************/
1679 /** Image **/
1680 /****************************************************************************/
1682 #ifdef _DCC
1683 extern char MUIC_Image[];
1684 #else
1685 #define MUIC_Image "Image.mui"
1686 #endif
1688 /* Attributes */
1690 #define MUIA_Image_FontMatch 0x8042815d /* V4 i.. BOOL */
1691 #define MUIA_Image_FontMatchHeight 0x80429f26 /* V4 i.. BOOL */
1692 #define MUIA_Image_FontMatchWidth 0x804239bf /* V4 i.. BOOL */
1693 #define MUIA_Image_FreeHoriz 0x8042da84 /* V4 i.. BOOL */
1694 #define MUIA_Image_FreeVert 0x8042ea28 /* V4 i.. BOOL */
1695 #define MUIA_Image_OldImage 0x80424f3d /* V4 i.. struct Image * */
1696 #define MUIA_Image_Spec 0x804233d5 /* V4 i.. char * */
1697 #define MUIA_Image_State 0x8042a3ad /* V4 is. LONG */
1701 /****************************************************************************/
1702 /** Bitmap **/
1703 /****************************************************************************/
1705 #ifdef _DCC
1706 extern char MUIC_Bitmap[];
1707 #else
1708 #define MUIC_Bitmap "Bitmap.mui"
1709 #endif
1711 /* Attributes */
1713 #define MUIA_Bitmap_Bitmap 0x804279bd /* V8 isg struct BitMap * */
1714 #define MUIA_Bitmap_Height 0x80421560 /* V8 isg LONG */
1715 #define MUIA_Bitmap_MappingTable 0x8042e23d /* V8 isg UBYTE * */
1716 #define MUIA_Bitmap_Precision 0x80420c74 /* V11 isg LONG */
1717 #define MUIA_Bitmap_RemappedBitmap 0x80423a47 /* V11 ..g struct BitMap * */
1718 #define MUIA_Bitmap_SourceColors 0x80425360 /* V8 isg ULONG * */
1719 #define MUIA_Bitmap_Transparent 0x80422805 /* V8 isg LONG */
1720 #define MUIA_Bitmap_UseFriend 0x804239d8 /* V11 i.. BOOL */
1721 #define MUIA_Bitmap_Width 0x8042eb3a /* V8 isg LONG */
1725 /****************************************************************************/
1726 /** Bodychunk **/
1727 /****************************************************************************/
1729 #ifdef _DCC
1730 extern char MUIC_Bodychunk[];
1731 #else
1732 #define MUIC_Bodychunk "Bodychunk.mui"
1733 #endif
1735 /* Attributes */
1737 #define MUIA_Bodychunk_Body 0x8042ca67 /* V8 isg UBYTE * */
1738 #define MUIA_Bodychunk_Compression 0x8042de5f /* V8 isg UBYTE */
1739 #define MUIA_Bodychunk_Depth 0x8042c392 /* V8 isg LONG */
1740 #define MUIA_Bodychunk_Masking 0x80423b0e /* V8 isg UBYTE */
1744 /****************************************************************************/
1745 /** Text **/
1746 /****************************************************************************/
1748 #ifdef _DCC
1749 extern char MUIC_Text[];
1750 #else
1751 #define MUIC_Text "Text.mui"
1752 #endif
1754 /* Attributes */
1756 #define MUIA_Text_Contents 0x8042f8dc /* V4 isg STRPTR */
1757 #define MUIA_Text_HiChar 0x804218ff /* V4 i.. char */
1758 #define MUIA_Text_PreParse 0x8042566d /* V4 isg STRPTR */
1759 #define MUIA_Text_SetMax 0x80424d0a /* V4 i.. BOOL */
1760 #define MUIA_Text_SetMin 0x80424e10 /* V4 i.. BOOL */
1761 #define MUIA_Text_SetVMax 0x80420d8b /* V11 i.. BOOL */
1765 /****************************************************************************/
1766 /** Gadget **/
1767 /****************************************************************************/
1769 #ifdef _DCC
1770 extern char MUIC_Gadget[];
1771 #else
1772 #define MUIC_Gadget "Gadget.mui"
1773 #endif
1775 /* Attributes */
1777 #define MUIA_Gadget_Gadget 0x8042ec1a /* V11 ..g struct Gadget * */
1781 /****************************************************************************/
1782 /** String **/
1783 /****************************************************************************/
1785 #ifdef _DCC
1786 extern char MUIC_String[];
1787 #else
1788 #define MUIC_String "String.mui"
1789 #endif
1791 /* Methods */
1794 /* Attributes */
1796 #define MUIA_String_Accept 0x8042e3e1 /* V4 isg STRPTR */
1797 #define MUIA_String_Acknowledge 0x8042026c /* V4 ..g STRPTR */
1798 #define MUIA_String_AdvanceOnCR 0x804226de /* V11 isg BOOL */
1799 #define MUIA_String_AttachedList 0x80420fd2 /* V4 isg Object * */
1800 #define MUIA_String_BufferPos 0x80428b6c /* V4 .sg LONG */
1801 #define MUIA_String_Contents 0x80428ffd /* V4 isg STRPTR */
1802 #define MUIA_String_DisplayPos 0x8042ccbf /* V4 .sg LONG */
1803 #define MUIA_String_EditHook 0x80424c33 /* V7 isg struct Hook * */
1804 #define MUIA_String_Format 0x80427484 /* V4 i.g LONG */
1805 #define MUIA_String_Integer 0x80426e8a /* V4 isg ULONG */
1806 #define MUIA_String_LonelyEditHook 0x80421569 /* V11 isg BOOL */
1807 #define MUIA_String_MaxLen 0x80424984 /* V4 i.g LONG */
1808 #define MUIA_String_Reject 0x8042179c /* V4 isg STRPTR */
1809 #define MUIA_String_Secret 0x80428769 /* V4 i.g BOOL */
1811 #define MUIV_String_Format_Left 0
1812 #define MUIV_String_Format_Center 1
1813 #define MUIV_String_Format_Right 2
1816 /****************************************************************************/
1817 /** Boopsi **/
1818 /****************************************************************************/
1820 #ifdef _DCC
1821 extern char MUIC_Boopsi[];
1822 #else
1823 #define MUIC_Boopsi "Boopsi.mui"
1824 #endif
1826 /* Attributes */
1828 #define MUIA_Boopsi_Class 0x80426999 /* V4 isg struct IClass * */
1829 #define MUIA_Boopsi_ClassID 0x8042bfa3 /* V4 isg char * */
1830 #define MUIA_Boopsi_MaxHeight 0x8042757f /* V4 isg ULONG */
1831 #define MUIA_Boopsi_MaxWidth 0x8042bcb1 /* V4 isg ULONG */
1832 #define MUIA_Boopsi_MinHeight 0x80422c93 /* V4 isg ULONG */
1833 #define MUIA_Boopsi_MinWidth 0x80428fb2 /* V4 isg ULONG */
1834 #define MUIA_Boopsi_Object 0x80420178 /* V4 ..g Object * */
1835 #define MUIA_Boopsi_Remember 0x8042f4bd /* V4 i.. ULONG */
1836 #define MUIA_Boopsi_Smart 0x8042b8d7 /* V9 i.. BOOL */
1837 #define MUIA_Boopsi_TagDrawInfo 0x8042bae7 /* V4 isg ULONG */
1838 #define MUIA_Boopsi_TagScreen 0x8042bc71 /* V4 isg ULONG */
1839 #define MUIA_Boopsi_TagWindow 0x8042e11d /* V4 isg ULONG */
1843 /****************************************************************************/
1844 /** Prop **/
1845 /****************************************************************************/
1847 #ifdef _DCC
1848 extern char MUIC_Prop[];
1849 #else
1850 #define MUIC_Prop "Prop.mui"
1851 #endif
1853 /* Methods */
1855 #define MUIM_Prop_Decrease 0x80420dd1 /* V16 */
1856 #define MUIM_Prop_Increase 0x8042cac0 /* V16 */
1857 struct MUIP_Prop_Decrease { ULONG MethodID; LONG amount; };
1858 struct MUIP_Prop_Increase { ULONG MethodID; LONG amount; };
1860 /* Attributes */
1862 #define MUIA_Prop_Entries 0x8042fbdb /* V4 isg LONG */
1863 #define MUIA_Prop_First 0x8042d4b2 /* V4 isg LONG */
1864 #define MUIA_Prop_Horiz 0x8042f4f3 /* V4 i.g BOOL */
1865 #define MUIA_Prop_Slider 0x80429c3a /* V4 isg BOOL */
1866 #define MUIA_Prop_UseWinBorder 0x8042deee /* V13 i.. LONG */
1867 #define MUIA_Prop_Visible 0x8042fea6 /* V4 isg LONG */
1869 #define MUIV_Prop_UseWinBorder_None 0
1870 #define MUIV_Prop_UseWinBorder_Left 1
1871 #define MUIV_Prop_UseWinBorder_Right 2
1872 #define MUIV_Prop_UseWinBorder_Bottom 3
1875 /****************************************************************************/
1876 /** Gauge **/
1877 /****************************************************************************/
1879 #ifdef _DCC
1880 extern char MUIC_Gauge[];
1881 #else
1882 #define MUIC_Gauge "Gauge.mui"
1883 #endif
1885 /* Attributes */
1887 #define MUIA_Gauge_Current 0x8042f0dd /* V4 isg LONG */
1888 #define MUIA_Gauge_Divide 0x8042d8df /* V4 isg BOOL */
1889 #define MUIA_Gauge_Horiz 0x804232dd /* V4 i.. BOOL */
1890 #define MUIA_Gauge_InfoText 0x8042bf15 /* V7 isg STRPTR */
1891 #define MUIA_Gauge_Max 0x8042bcdb /* V4 isg LONG */
1895 /****************************************************************************/
1896 /** Scale **/
1897 /****************************************************************************/
1899 #ifdef _DCC
1900 extern char MUIC_Scale[];
1901 #else
1902 #define MUIC_Scale "Scale.mui"
1903 #endif
1905 /* Attributes */
1907 #define MUIA_Scale_Horiz 0x8042919a /* V4 isg BOOL */
1911 /****************************************************************************/
1912 /** Colorfield **/
1913 /****************************************************************************/
1915 #ifdef _DCC
1916 extern char MUIC_Colorfield[];
1917 #else
1918 #define MUIC_Colorfield "Colorfield.mui"
1919 #endif
1921 /* Attributes */
1923 #define MUIA_Colorfield_Blue 0x8042d3b0 /* V4 isg ULONG */
1924 #define MUIA_Colorfield_Green 0x80424466 /* V4 isg ULONG */
1925 #define MUIA_Colorfield_Pen 0x8042713a /* V4 ..g ULONG */
1926 #define MUIA_Colorfield_Red 0x804279f6 /* V4 isg ULONG */
1927 #define MUIA_Colorfield_RGB 0x8042677a /* V4 isg ULONG * */
1931 /****************************************************************************/
1932 /** List **/
1933 /****************************************************************************/
1935 #ifdef _DCC
1936 extern char MUIC_List[];
1937 #else
1938 #define MUIC_List "List.mui"
1939 #endif
1941 /* Methods */
1943 #define MUIM_List_Clear 0x8042ad89 /* V4 */
1944 #define MUIM_List_CreateImage 0x80429804 /* V11 */
1945 #define MUIM_List_DeleteImage 0x80420f58 /* V11 */
1946 #define MUIM_List_Exchange 0x8042468c /* V4 */
1947 #define MUIM_List_GetEntry 0x804280ec /* V4 */
1948 #define MUIM_List_Insert 0x80426c87 /* V4 */
1949 #define MUIM_List_InsertSingle 0x804254d5 /* V7 */
1950 #define MUIM_List_Jump 0x8042baab /* V4 */
1951 #define MUIM_List_Move 0x804253c2 /* V9 */
1952 #define MUIM_List_NextSelected 0x80425f17 /* V6 */
1953 #define MUIM_List_Redraw 0x80427993 /* V4 */
1954 #define MUIM_List_Remove 0x8042647e /* V4 */
1955 #define MUIM_List_Select 0x804252d8 /* V4 */
1956 #define MUIM_List_Sort 0x80422275 /* V4 */
1957 #define MUIM_List_TestPos 0x80425f48 /* V11 */
1958 struct MUIP_List_Clear { ULONG MethodID; };
1959 struct MUIP_List_CreateImage { ULONG MethodID; Object *obj; ULONG flags; };
1960 struct MUIP_List_DeleteImage { ULONG MethodID; APTR listimg; };
1961 struct MUIP_List_Exchange { ULONG MethodID; LONG pos1; LONG pos2; };
1962 struct MUIP_List_GetEntry { ULONG MethodID; LONG pos; APTR *entry; };
1963 struct MUIP_List_Insert { ULONG MethodID; APTR *entries; LONG count; LONG pos; };
1964 struct MUIP_List_InsertSingle { ULONG MethodID; APTR entry; LONG pos; };
1965 struct MUIP_List_Jump { ULONG MethodID; LONG pos; };
1966 struct MUIP_List_Move { ULONG MethodID; LONG from; LONG to; };
1967 struct MUIP_List_NextSelected { ULONG MethodID; LONG *pos; };
1968 struct MUIP_List_Redraw { ULONG MethodID; LONG pos; };
1969 struct MUIP_List_Remove { ULONG MethodID; LONG pos; };
1970 struct MUIP_List_Select { ULONG MethodID; LONG pos; LONG seltype; LONG *state; };
1971 struct MUIP_List_Sort { ULONG MethodID; };
1972 struct MUIP_List_TestPos { ULONG MethodID; LONG x; LONG y; struct MUI_List_TestPos_Result *res; };
1974 /* Attributes */
1976 #define MUIA_List_Active 0x8042391c /* V4 isg LONG */
1977 #define MUIA_List_AdjustHeight 0x8042850d /* V4 i.. BOOL */
1978 #define MUIA_List_AdjustWidth 0x8042354a /* V4 i.. BOOL */
1979 #define MUIA_List_AutoVisible 0x8042a445 /* V11 isg BOOL */
1980 #define MUIA_List_CompareHook 0x80425c14 /* V4 is. struct Hook * */
1981 #define MUIA_List_ConstructHook 0x8042894f /* V4 is. struct Hook * */
1982 #define MUIA_List_DestructHook 0x804297ce /* V4 is. struct Hook * */
1983 #define MUIA_List_DisplayHook 0x8042b4d5 /* V4 is. struct Hook * */
1984 #define MUIA_List_DragSortable 0x80426099 /* V11 isg BOOL */
1985 #define MUIA_List_DropMark 0x8042aba6 /* V11 ..g LONG */
1986 #define MUIA_List_Entries 0x80421654 /* V4 ..g LONG */
1987 #define MUIA_List_First 0x804238d4 /* V4 ..g LONG */
1988 #define MUIA_List_Format 0x80423c0a /* V4 isg STRPTR */
1989 #define MUIA_List_InsertPosition 0x8042d0cd /* V9 ..g LONG */
1990 #define MUIA_List_MinLineHeight 0x8042d1c3 /* V4 i.. LONG */
1991 #define MUIA_List_MultiTestHook 0x8042c2c6 /* V4 is. struct Hook * */
1992 #define MUIA_List_Pool 0x80423431 /* V13 i.. APTR */
1993 #define MUIA_List_PoolPuddleSize 0x8042a4eb /* V13 i.. ULONG */
1994 #define MUIA_List_PoolThreshSize 0x8042c48c /* V13 i.. ULONG */
1995 #define MUIA_List_Quiet 0x8042d8c7 /* V4 .s. BOOL */
1996 #define MUIA_List_ShowDropMarks 0x8042c6f3 /* V11 isg BOOL */
1997 #define MUIA_List_SourceArray 0x8042c0a0 /* V4 i.. APTR */
1998 #define MUIA_List_Title 0x80423e66 /* V6 isg char * */
1999 #define MUIA_List_Visible 0x8042191f /* V4 ..g LONG */
2001 #define MUIV_List_Active_Off -1
2002 #define MUIV_List_Active_Top -2
2003 #define MUIV_List_Active_Bottom -3
2004 #define MUIV_List_Active_Up -4
2005 #define MUIV_List_Active_Down -5
2006 #define MUIV_List_Active_PageUp -6
2007 #define MUIV_List_Active_PageDown -7
2008 #define MUIV_List_ConstructHook_String -1
2009 #define MUIV_List_CopyHook_String -1
2010 #define MUIV_List_CursorType_None 0
2011 #define MUIV_List_CursorType_Bar 1
2012 #define MUIV_List_CursorType_Rect 2
2013 #define MUIV_List_DestructHook_String -1
2016 /****************************************************************************/
2017 /** Floattext **/
2018 /****************************************************************************/
2020 #ifdef _DCC
2021 extern char MUIC_Floattext[];
2022 #else
2023 #define MUIC_Floattext "Floattext.mui"
2024 #endif
2026 /* Attributes */
2028 #define MUIA_Floattext_Justify 0x8042dc03 /* V4 isg BOOL */
2029 #define MUIA_Floattext_SkipChars 0x80425c7d /* V4 is. STRPTR */
2030 #define MUIA_Floattext_TabSize 0x80427d17 /* V4 is. LONG */
2031 #define MUIA_Floattext_Text 0x8042d16a /* V4 isg STRPTR */
2035 /****************************************************************************/
2036 /** Volumelist **/
2037 /****************************************************************************/
2039 #ifdef _DCC
2040 extern char MUIC_Volumelist[];
2041 #else
2042 #define MUIC_Volumelist "Volumelist.mui"
2043 #endif
2046 /****************************************************************************/
2047 /** Scrmodelist **/
2048 /****************************************************************************/
2050 #ifdef _DCC
2051 extern char MUIC_Scrmodelist[];
2052 #else
2053 #define MUIC_Scrmodelist "Scrmodelist.mui"
2054 #endif
2056 /* Attributes */
2061 /****************************************************************************/
2062 /** Dirlist **/
2063 /****************************************************************************/
2065 #ifdef _DCC
2066 extern char MUIC_Dirlist[];
2067 #else
2068 #define MUIC_Dirlist "Dirlist.mui"
2069 #endif
2071 /* Methods */
2073 #define MUIM_Dirlist_ReRead 0x80422d71 /* V4 */
2074 struct MUIP_Dirlist_ReRead { ULONG MethodID; };
2076 /* Attributes */
2078 #define MUIA_Dirlist_AcceptPattern 0x8042760a /* V4 is. STRPTR */
2079 #define MUIA_Dirlist_Directory 0x8042ea41 /* V4 isg STRPTR */
2080 #define MUIA_Dirlist_DrawersOnly 0x8042b379 /* V4 is. BOOL */
2081 #define MUIA_Dirlist_FilesOnly 0x8042896a /* V4 is. BOOL */
2082 #define MUIA_Dirlist_FilterDrawers 0x80424ad2 /* V4 is. BOOL */
2083 #define MUIA_Dirlist_FilterHook 0x8042ae19 /* V4 is. struct Hook * */
2084 #define MUIA_Dirlist_MultiSelDirs 0x80428653 /* V6 is. BOOL */
2085 #define MUIA_Dirlist_NumBytes 0x80429e26 /* V4 ..g LONG */
2086 #define MUIA_Dirlist_NumDrawers 0x80429cb8 /* V4 ..g LONG */
2087 #define MUIA_Dirlist_NumFiles 0x8042a6f0 /* V4 ..g LONG */
2088 #define MUIA_Dirlist_Path 0x80426176 /* V4 ..g STRPTR */
2089 #define MUIA_Dirlist_RejectIcons 0x80424808 /* V4 is. BOOL */
2090 #define MUIA_Dirlist_RejectPattern 0x804259c7 /* V4 is. STRPTR */
2091 #define MUIA_Dirlist_SortDirs 0x8042bbb9 /* V4 is. LONG */
2092 #define MUIA_Dirlist_SortHighLow 0x80421896 /* V4 is. BOOL */
2093 #define MUIA_Dirlist_SortType 0x804228bc /* V4 is. LONG */
2094 #define MUIA_Dirlist_Status 0x804240de /* V4 ..g LONG */
2096 #define MUIV_Dirlist_SortDirs_First 0
2097 #define MUIV_Dirlist_SortDirs_Last 1
2098 #define MUIV_Dirlist_SortDirs_Mix 2
2099 #define MUIV_Dirlist_SortType_Name 0
2100 #define MUIV_Dirlist_SortType_Date 1
2101 #define MUIV_Dirlist_SortType_Size 2
2102 #define MUIV_Dirlist_Status_Invalid 0
2103 #define MUIV_Dirlist_Status_Reading 1
2104 #define MUIV_Dirlist_Status_Valid 2
2107 /****************************************************************************/
2108 /** Numeric **/
2109 /****************************************************************************/
2111 #ifdef _DCC
2112 extern char MUIC_Numeric[];
2113 #else
2114 #define MUIC_Numeric "Numeric.mui"
2115 #endif
2117 /* Methods */
2119 #define MUIM_Numeric_Decrease 0x804243a7 /* V11 */
2120 #define MUIM_Numeric_Increase 0x80426ecd /* V11 */
2121 #define MUIM_Numeric_ScaleToValue 0x8042032c /* V11 */
2122 #define MUIM_Numeric_SetDefault 0x8042ab0a /* V11 */
2123 #define MUIM_Numeric_Stringify 0x80424891 /* V11 */
2124 #define MUIM_Numeric_ValueToScale 0x80423e4f /* V11 */
2125 struct MUIP_Numeric_Decrease { ULONG MethodID; LONG amount; };
2126 struct MUIP_Numeric_Increase { ULONG MethodID; LONG amount; };
2127 struct MUIP_Numeric_ScaleToValue { ULONG MethodID; LONG scalemin; LONG scalemax; LONG scale; };
2128 struct MUIP_Numeric_SetDefault { ULONG MethodID; };
2129 struct MUIP_Numeric_Stringify { ULONG MethodID; LONG value; };
2130 struct MUIP_Numeric_ValueToScale { ULONG MethodID; LONG scalemin; LONG scalemax; };
2132 /* Attributes */
2134 #define MUIA_Numeric_CheckAllSizes 0x80421594 /* V11 isg BOOL */
2135 #define MUIA_Numeric_Default 0x804263e8 /* V11 isg LONG */
2136 #define MUIA_Numeric_Format 0x804263e9 /* V11 isg STRPTR */
2137 #define MUIA_Numeric_Max 0x8042d78a /* V11 isg LONG */
2138 #define MUIA_Numeric_Min 0x8042e404 /* V11 isg LONG */
2139 #define MUIA_Numeric_Reverse 0x8042f2a0 /* V11 isg BOOL */
2140 #define MUIA_Numeric_RevLeftRight 0x804294a7 /* V11 isg BOOL */
2141 #define MUIA_Numeric_RevUpDown 0x804252dd /* V11 isg BOOL */
2142 #define MUIA_Numeric_Value 0x8042ae3a /* V11 isg LONG */
2146 /****************************************************************************/
2147 /** Knob **/
2148 /****************************************************************************/
2150 #ifdef _DCC
2151 extern char MUIC_Knob[];
2152 #else
2153 #define MUIC_Knob "Knob.mui"
2154 #endif
2157 /****************************************************************************/
2158 /** Levelmeter **/
2159 /****************************************************************************/
2161 #ifdef _DCC
2162 extern char MUIC_Levelmeter[];
2163 #else
2164 #define MUIC_Levelmeter "Levelmeter.mui"
2165 #endif
2167 /* Attributes */
2169 #define MUIA_Levelmeter_Label 0x80420dd5 /* V11 isg STRPTR */
2173 /****************************************************************************/
2174 /** Numericbutton **/
2175 /****************************************************************************/
2177 #ifdef _DCC
2178 extern char MUIC_Numericbutton[];
2179 #else
2180 #define MUIC_Numericbutton "Numericbutton.mui"
2181 #endif
2184 /****************************************************************************/
2185 /** Slider **/
2186 /****************************************************************************/
2188 #ifdef _DCC
2189 extern char MUIC_Slider[];
2190 #else
2191 #define MUIC_Slider "Slider.mui"
2192 #endif
2194 /* Attributes */
2196 #define MUIA_Slider_Horiz 0x8042fad1 /* V11 isg BOOL */
2197 #ifdef MUI_OBSOLETE
2198 #define MUIA_Slider_Level 0x8042ae3a /* V4 isg LONG */
2199 #endif /* MUI_OBSOLETE */
2200 #ifdef MUI_OBSOLETE
2201 #define MUIA_Slider_Max 0x8042d78a /* V4 isg LONG */
2202 #endif /* MUI_OBSOLETE */
2203 #ifdef MUI_OBSOLETE
2204 #define MUIA_Slider_Min 0x8042e404 /* V4 isg LONG */
2205 #endif /* MUI_OBSOLETE */
2206 #define MUIA_Slider_Quiet 0x80420b26 /* V6 i.. BOOL */
2207 #ifdef MUI_OBSOLETE
2208 #define MUIA_Slider_Reverse 0x8042f2a0 /* V4 isg BOOL */
2209 #endif /* MUI_OBSOLETE */
2213 /****************************************************************************/
2214 /** Framedisplay **/
2215 /****************************************************************************/
2217 #ifdef _DCC
2218 extern char MUIC_Framedisplay[];
2219 #else
2220 #define MUIC_Framedisplay "Framedisplay.mui"
2221 #endif
2223 /* Attributes */
2228 /****************************************************************************/
2229 /** Popframe **/
2230 /****************************************************************************/
2232 #ifdef _DCC
2233 extern char MUIC_Popframe[];
2234 #else
2235 #define MUIC_Popframe "Popframe.mui"
2236 #endif
2239 /****************************************************************************/
2240 /** Imagedisplay **/
2241 /****************************************************************************/
2243 #ifdef _DCC
2244 extern char MUIC_Imagedisplay[];
2245 #else
2246 #define MUIC_Imagedisplay "Imagedisplay.mui"
2247 #endif
2249 /* Attributes */
2254 /****************************************************************************/
2255 /** Popimage **/
2256 /****************************************************************************/
2258 #ifdef _DCC
2259 extern char MUIC_Popimage[];
2260 #else
2261 #define MUIC_Popimage "Popimage.mui"
2262 #endif
2265 /****************************************************************************/
2266 /** Pendisplay **/
2267 /****************************************************************************/
2269 #ifdef _DCC
2270 extern char MUIC_Pendisplay[];
2271 #else
2272 #define MUIC_Pendisplay "Pendisplay.mui"
2273 #endif
2275 /* Methods */
2277 #define MUIM_Pendisplay_SetColormap 0x80426c80 /* V13 */
2278 #define MUIM_Pendisplay_SetMUIPen 0x8042039d /* V13 */
2279 #define MUIM_Pendisplay_SetRGB 0x8042c131 /* V13 */
2280 struct MUIP_Pendisplay_SetColormap { ULONG MethodID; LONG colormap; };
2281 struct MUIP_Pendisplay_SetMUIPen { ULONG MethodID; LONG muipen; };
2282 struct MUIP_Pendisplay_SetRGB { ULONG MethodID; ULONG red; ULONG green; ULONG blue; };
2284 /* Attributes */
2286 #define MUIA_Pendisplay_Pen 0x8042a748 /* V13 ..g Object * */
2287 #define MUIA_Pendisplay_Reference 0x8042dc24 /* V13 isg Object * */
2288 #define MUIA_Pendisplay_RGBcolor 0x8042a1a9 /* V11 isg struct MUI_RGBcolor * */
2289 #define MUIA_Pendisplay_Spec 0x8042a204 /* V11 isg struct MUI_PenSpec * */
2293 /****************************************************************************/
2294 /** Poppen **/
2295 /****************************************************************************/
2297 #ifdef _DCC
2298 extern char MUIC_Poppen[];
2299 #else
2300 #define MUIC_Poppen "Poppen.mui"
2301 #endif
2304 /****************************************************************************/
2305 /** Group **/
2306 /****************************************************************************/
2308 #ifdef _DCC
2309 extern char MUIC_Group[];
2310 #else
2311 #define MUIC_Group "Group.mui"
2312 #endif
2314 /* Methods */
2316 #define MUIM_Group_ExitChange 0x8042d1cc /* V11 */
2317 #define MUIM_Group_InitChange 0x80420887 /* V11 */
2318 #define MUIM_Group_Sort 0x80427417 /* V4 */
2319 struct MUIP_Group_ExitChange { ULONG MethodID; };
2320 struct MUIP_Group_InitChange { ULONG MethodID; };
2321 struct MUIP_Group_Sort { ULONG MethodID; Object *obj[1]; };
2323 /* Attributes */
2325 #define MUIA_Group_ActivePage 0x80424199 /* V5 isg LONG */
2326 #define MUIA_Group_Child 0x804226e6 /* V4 i.. Object * */
2327 #define MUIA_Group_ChildList 0x80424748 /* V4 ..g struct List * */
2328 #define MUIA_Group_Columns 0x8042f416 /* V4 is. LONG */
2329 #define MUIA_Group_Horiz 0x8042536b /* V4 i.. BOOL */
2330 #define MUIA_Group_HorizSpacing 0x8042c651 /* V4 isg LONG */
2331 #define MUIA_Group_LayoutHook 0x8042c3b2 /* V11 i.. struct Hook * */
2332 #define MUIA_Group_PageMode 0x80421a5f /* V5 i.. BOOL */
2333 #define MUIA_Group_Rows 0x8042b68f /* V4 is. LONG */
2334 #define MUIA_Group_SameHeight 0x8042037e /* V4 i.. BOOL */
2335 #define MUIA_Group_SameSize 0x80420860 /* V4 i.. BOOL */
2336 #define MUIA_Group_SameWidth 0x8042b3ec /* V4 i.. BOOL */
2337 #define MUIA_Group_Spacing 0x8042866d /* V4 is. LONG */
2338 #define MUIA_Group_VertSpacing 0x8042e1bf /* V4 isg LONG */
2340 #define MUIV_Group_ActivePage_First 0
2341 #define MUIV_Group_ActivePage_Last -1
2342 #define MUIV_Group_ActivePage_Prev -2
2343 #define MUIV_Group_ActivePage_Next -3
2344 #define MUIV_Group_ActivePage_Advance -4
2347 /****************************************************************************/
2348 /** Mccprefs **/
2349 /****************************************************************************/
2351 #ifdef _DCC
2352 extern char MUIC_Mccprefs[];
2353 #else
2354 #define MUIC_Mccprefs "Mccprefs.mui"
2355 #endif
2358 /****************************************************************************/
2359 /** Register **/
2360 /****************************************************************************/
2362 #ifdef _DCC
2363 extern char MUIC_Register[];
2364 #else
2365 #define MUIC_Register "Register.mui"
2366 #endif
2368 /* Attributes */
2370 #define MUIA_Register_Frame 0x8042349b /* V7 i.g BOOL */
2371 #define MUIA_Register_Titles 0x804297ec /* V7 i.g STRPTR * */
2375 /****************************************************************************/
2376 /** Penadjust **/
2377 /****************************************************************************/
2379 #ifdef _DCC
2380 extern char MUIC_Penadjust[];
2381 #else
2382 #define MUIC_Penadjust "Penadjust.mui"
2383 #endif
2385 /* Methods */
2388 /* Attributes */
2390 #define MUIA_Penadjust_PSIMode 0x80421cbb /* V11 i.. BOOL */
2394 /****************************************************************************/
2395 /** Settingsgroup **/
2396 /****************************************************************************/
2398 #ifdef _DCC
2399 extern char MUIC_Settingsgroup[];
2400 #else
2401 #define MUIC_Settingsgroup "Settingsgroup.mui"
2402 #endif
2404 /* Methods */
2406 #define MUIM_Settingsgroup_ConfigToGadgets 0x80427043 /* V11 */
2407 #define MUIM_Settingsgroup_GadgetsToConfig 0x80425242 /* V11 */
2408 struct MUIP_Settingsgroup_ConfigToGadgets { ULONG MethodID; Object *configdata; };
2409 struct MUIP_Settingsgroup_GadgetsToConfig { ULONG MethodID; Object *configdata; };
2411 /* Attributes */
2416 /****************************************************************************/
2417 /** Settings **/
2418 /****************************************************************************/
2420 #ifdef _DCC
2421 extern char MUIC_Settings[];
2422 #else
2423 #define MUIC_Settings "Settings.mui"
2424 #endif
2426 /* Methods */
2429 /* Attributes */
2434 /****************************************************************************/
2435 /** Frameadjust **/
2436 /****************************************************************************/
2438 #ifdef _DCC
2439 extern char MUIC_Frameadjust[];
2440 #else
2441 #define MUIC_Frameadjust "Frameadjust.mui"
2442 #endif
2444 /* Methods */
2447 /* Attributes */
2452 /****************************************************************************/
2453 /** Imageadjust **/
2454 /****************************************************************************/
2456 #ifdef _DCC
2457 extern char MUIC_Imageadjust[];
2458 #else
2459 #define MUIC_Imageadjust "Imageadjust.mui"
2460 #endif
2462 /* Methods */
2465 /* Attributes */
2468 #define MUIV_Imageadjust_Type_All 0
2469 #define MUIV_Imageadjust_Type_Image 1
2470 #define MUIV_Imageadjust_Type_Background 2
2471 #define MUIV_Imageadjust_Type_Pen 3
2474 /****************************************************************************/
2475 /** Virtgroup **/
2476 /****************************************************************************/
2478 #ifdef _DCC
2479 extern char MUIC_Virtgroup[];
2480 #else
2481 #define MUIC_Virtgroup "Virtgroup.mui"
2482 #endif
2484 /* Methods */
2487 /* Attributes */
2489 #define MUIA_Virtgroup_Height 0x80423038 /* V6 ..g LONG */
2490 #define MUIA_Virtgroup_Input 0x80427f7e /* V11 i.. BOOL */
2491 #define MUIA_Virtgroup_Left 0x80429371 /* V6 isg LONG */
2492 #define MUIA_Virtgroup_Top 0x80425200 /* V6 isg LONG */
2493 #define MUIA_Virtgroup_Width 0x80427c49 /* V6 ..g LONG */
2497 /****************************************************************************/
2498 /** Scrollgroup **/
2499 /****************************************************************************/
2501 #ifdef _DCC
2502 extern char MUIC_Scrollgroup[];
2503 #else
2504 #define MUIC_Scrollgroup "Scrollgroup.mui"
2505 #endif
2507 /* Methods */
2510 /* Attributes */
2512 #define MUIA_Scrollgroup_Contents 0x80421261 /* V4 i.g Object * */
2513 #define MUIA_Scrollgroup_FreeHoriz 0x804292f3 /* V9 i.. BOOL */
2514 #define MUIA_Scrollgroup_FreeVert 0x804224f2 /* V9 i.. BOOL */
2515 #define MUIA_Scrollgroup_HorizBar 0x8042b63d /* V16 ..g Object * */
2516 #define MUIA_Scrollgroup_UseWinBorder 0x804284c1 /* V13 i.. BOOL */
2517 #define MUIA_Scrollgroup_VertBar 0x8042cdc0 /* V16 ..g Object * */
2521 /****************************************************************************/
2522 /** Scrollbar **/
2523 /****************************************************************************/
2525 #ifdef _DCC
2526 extern char MUIC_Scrollbar[];
2527 #else
2528 #define MUIC_Scrollbar "Scrollbar.mui"
2529 #endif
2531 /* Attributes */
2533 #define MUIA_Scrollbar_Type 0x8042fb6b /* V11 i.. LONG */
2535 #define MUIV_Scrollbar_Type_Default 0
2536 #define MUIV_Scrollbar_Type_Bottom 1
2537 #define MUIV_Scrollbar_Type_Top 2
2538 #define MUIV_Scrollbar_Type_Sym 3
2541 /****************************************************************************/
2542 /** Listview **/
2543 /****************************************************************************/
2545 #ifdef _DCC
2546 extern char MUIC_Listview[];
2547 #else
2548 #define MUIC_Listview "Listview.mui"
2549 #endif
2551 /* Attributes */
2553 #define MUIA_Listview_ClickColumn 0x8042d1b3 /* V7 ..g LONG */
2554 #define MUIA_Listview_DefClickColumn 0x8042b296 /* V7 isg LONG */
2555 #define MUIA_Listview_DoubleClick 0x80424635 /* V4 i.g BOOL */
2556 #define MUIA_Listview_DragType 0x80425cd3 /* V11 isg LONG */
2557 #define MUIA_Listview_Input 0x8042682d /* V4 i.. BOOL */
2558 #define MUIA_Listview_List 0x8042bcce /* V4 i.g Object * */
2559 #define MUIA_Listview_MultiSelect 0x80427e08 /* V7 i.. LONG */
2560 #define MUIA_Listview_ScrollerPos 0x8042b1b4 /* V10 i.. BOOL */
2561 #define MUIA_Listview_SelectChange 0x8042178f /* V4 ..g BOOL */
2563 #define MUIV_Listview_DragType_None 0
2564 #define MUIV_Listview_DragType_Immediate 1
2565 #define MUIV_Listview_MultiSelect_None 0
2566 #define MUIV_Listview_MultiSelect_Default 1
2567 #define MUIV_Listview_MultiSelect_Shifted 2
2568 #define MUIV_Listview_MultiSelect_Always 3
2569 #define MUIV_Listview_ScrollerPos_Default 0
2570 #define MUIV_Listview_ScrollerPos_Left 1
2571 #define MUIV_Listview_ScrollerPos_Right 2
2572 #define MUIV_Listview_ScrollerPos_None 3
2575 /****************************************************************************/
2576 /** Radio **/
2577 /****************************************************************************/
2579 #ifdef _DCC
2580 extern char MUIC_Radio[];
2581 #else
2582 #define MUIC_Radio "Radio.mui"
2583 #endif
2585 /* Attributes */
2587 #define MUIA_Radio_Active 0x80429b41 /* V4 isg LONG */
2588 #define MUIA_Radio_Entries 0x8042b6a1 /* V4 i.. STRPTR * */
2592 /****************************************************************************/
2593 /** Cycle **/
2594 /****************************************************************************/
2596 #ifdef _DCC
2597 extern char MUIC_Cycle[];
2598 #else
2599 #define MUIC_Cycle "Cycle.mui"
2600 #endif
2602 /* Attributes */
2604 #define MUIA_Cycle_Active 0x80421788 /* V4 isg LONG */
2605 #define MUIA_Cycle_Entries 0x80420629 /* V4 i.. STRPTR * */
2607 #define MUIV_Cycle_Active_Next -1
2608 #define MUIV_Cycle_Active_Prev -2
2611 /****************************************************************************/
2612 /** Coloradjust **/
2613 /****************************************************************************/
2615 #ifdef _DCC
2616 extern char MUIC_Coloradjust[];
2617 #else
2618 #define MUIC_Coloradjust "Coloradjust.mui"
2619 #endif
2621 /* Methods */
2624 /* Attributes */
2626 #define MUIA_Coloradjust_Blue 0x8042b8a3 /* V4 isg ULONG */
2627 #define MUIA_Coloradjust_Green 0x804285ab /* V4 isg ULONG */
2628 #define MUIA_Coloradjust_ModeID 0x8042ec59 /* V4 isg ULONG */
2629 #define MUIA_Coloradjust_Red 0x80420eaa /* V4 isg ULONG */
2630 #define MUIA_Coloradjust_RGB 0x8042f899 /* V4 isg ULONG * */
2634 /****************************************************************************/
2635 /** Palette **/
2636 /****************************************************************************/
2638 #ifdef _DCC
2639 extern char MUIC_Palette[];
2640 #else
2641 #define MUIC_Palette "Palette.mui"
2642 #endif
2644 /* Attributes */
2646 #define MUIA_Palette_Entries 0x8042a3d8 /* V6 i.g struct MUI_Palette_Entry * */
2647 #define MUIA_Palette_Groupable 0x80423e67 /* V6 isg BOOL */
2648 #define MUIA_Palette_Names 0x8042c3a2 /* V6 isg char ** */
2652 /****************************************************************************/
2653 /** Popstring **/
2654 /****************************************************************************/
2656 #ifdef _DCC
2657 extern char MUIC_Popstring[];
2658 #else
2659 #define MUIC_Popstring "Popstring.mui"
2660 #endif
2662 /* Methods */
2664 #define MUIM_Popstring_Close 0x8042dc52 /* V7 */
2665 #define MUIM_Popstring_Open 0x804258ba /* V7 */
2666 struct MUIP_Popstring_Close { ULONG MethodID; LONG result; };
2667 struct MUIP_Popstring_Open { ULONG MethodID; };
2669 /* Attributes */
2671 #define MUIA_Popstring_Button 0x8042d0b9 /* V7 i.g Object * */
2672 #define MUIA_Popstring_CloseHook 0x804256bf /* V7 isg struct Hook * */
2673 #define MUIA_Popstring_OpenHook 0x80429d00 /* V7 isg struct Hook * */
2674 #define MUIA_Popstring_String 0x804239ea /* V7 i.g Object * */
2675 #define MUIA_Popstring_Toggle 0x80422b7a /* V7 isg BOOL */
2679 /****************************************************************************/
2680 /** Popobject **/
2681 /****************************************************************************/
2683 #ifdef _DCC
2684 extern char MUIC_Popobject[];
2685 #else
2686 #define MUIC_Popobject "Popobject.mui"
2687 #endif
2689 /* Attributes */
2691 #define MUIA_Popobject_Follow 0x80424cb5 /* V7 isg BOOL */
2692 #define MUIA_Popobject_Light 0x8042a5a3 /* V7 isg BOOL */
2693 #define MUIA_Popobject_Object 0x804293e3 /* V7 i.g Object * */
2694 #define MUIA_Popobject_ObjStrHook 0x8042db44 /* V7 isg struct Hook * */
2695 #define MUIA_Popobject_StrObjHook 0x8042fbe1 /* V7 isg struct Hook * */
2696 #define MUIA_Popobject_Volatile 0x804252ec /* V7 isg BOOL */
2697 #define MUIA_Popobject_WindowHook 0x8042f194 /* V9 isg struct Hook * */
2701 /****************************************************************************/
2702 /** Poplist **/
2703 /****************************************************************************/
2705 #ifdef _DCC
2706 extern char MUIC_Poplist[];
2707 #else
2708 #define MUIC_Poplist "Poplist.mui"
2709 #endif
2711 /* Attributes */
2713 #define MUIA_Poplist_Array 0x8042084c /* V8 i.. char ** */
2717 /****************************************************************************/
2718 /** Popscreen **/
2719 /****************************************************************************/
2721 #ifdef _DCC
2722 extern char MUIC_Popscreen[];
2723 #else
2724 #define MUIC_Popscreen "Popscreen.mui"
2725 #endif
2727 /* Attributes */
2732 /****************************************************************************/
2733 /** Popasl **/
2734 /****************************************************************************/
2736 #ifdef _DCC
2737 extern char MUIC_Popasl[];
2738 #else
2739 #define MUIC_Popasl "Popasl.mui"
2740 #endif
2742 /* Attributes */
2744 #define MUIA_Popasl_Active 0x80421b37 /* V7 ..g BOOL */
2745 #define MUIA_Popasl_StartHook 0x8042b703 /* V7 isg struct Hook * */
2746 #define MUIA_Popasl_StopHook 0x8042d8d2 /* V7 isg struct Hook * */
2747 #define MUIA_Popasl_Type 0x8042df3d /* V7 i.g ULONG */
2751 /****************************************************************************/
2752 /** Semaphore **/
2753 /****************************************************************************/
2755 #ifdef _DCC
2756 extern char MUIC_Semaphore[];
2757 #else
2758 #define MUIC_Semaphore "Semaphore.mui"
2759 #endif
2761 /* Methods */
2763 #define MUIM_Semaphore_Attempt 0x80426ce2 /* V11 */
2764 #define MUIM_Semaphore_AttemptShared 0x80422551 /* V11 */
2765 #define MUIM_Semaphore_Obtain 0x804276f0 /* V11 */
2766 #define MUIM_Semaphore_ObtainShared 0x8042ea02 /* V11 */
2767 #define MUIM_Semaphore_Release 0x80421f2d /* V11 */
2768 struct MUIP_Semaphore_Attempt { ULONG MethodID; };
2769 struct MUIP_Semaphore_AttemptShared { ULONG MethodID; };
2770 struct MUIP_Semaphore_Obtain { ULONG MethodID; };
2771 struct MUIP_Semaphore_ObtainShared { ULONG MethodID; };
2772 struct MUIP_Semaphore_Release { ULONG MethodID; };
2775 /****************************************************************************/
2776 /** Applist **/
2777 /****************************************************************************/
2779 #ifdef _DCC
2780 extern char MUIC_Applist[];
2781 #else
2782 #define MUIC_Applist "Applist.mui"
2783 #endif
2785 /* Methods */
2789 /****************************************************************************/
2790 /** Cclist **/
2791 /****************************************************************************/
2793 #ifdef _DCC
2794 extern char MUIC_Cclist[];
2795 #else
2796 #define MUIC_Cclist "Cclist.mui"
2797 #endif
2799 /* Methods */
2803 /****************************************************************************/
2804 /** Dataspace **/
2805 /****************************************************************************/
2807 #ifdef _DCC
2808 extern char MUIC_Dataspace[];
2809 #else
2810 #define MUIC_Dataspace "Dataspace.mui"
2811 #endif
2813 /* Methods */
2815 #define MUIM_Dataspace_Add 0x80423366 /* V11 */
2816 #define MUIM_Dataspace_Clear 0x8042b6c9 /* V11 */
2817 #define MUIM_Dataspace_Find 0x8042832c /* V11 */
2818 #define MUIM_Dataspace_Merge 0x80423e2b /* V11 */
2819 #define MUIM_Dataspace_ReadIFF 0x80420dfb /* V11 */
2820 #define MUIM_Dataspace_Remove 0x8042dce1 /* V11 */
2821 #define MUIM_Dataspace_WriteIFF 0x80425e8e /* V11 */
2822 struct MUIP_Dataspace_Add { ULONG MethodID; APTR data; LONG len; ULONG id; };
2823 struct MUIP_Dataspace_Clear { ULONG MethodID; };
2824 struct MUIP_Dataspace_Find { ULONG MethodID; ULONG id; };
2825 struct MUIP_Dataspace_Merge { ULONG MethodID; Object *dataspace; };
2826 struct MUIP_Dataspace_ReadIFF { ULONG MethodID; struct IFFHandle *handle; };
2827 struct MUIP_Dataspace_Remove { ULONG MethodID; ULONG id; };
2828 struct MUIP_Dataspace_WriteIFF { ULONG MethodID; struct IFFHandle *handle; ULONG type; ULONG id; };
2830 /* Attributes */
2832 #define MUIA_Dataspace_Pool 0x80424cf9 /* V11 i.. APTR */
2836 /****************************************************************************/
2837 /** Configdata **/
2838 /****************************************************************************/
2840 #ifdef _DCC
2841 extern char MUIC_Configdata[];
2842 #else
2843 #define MUIC_Configdata "Configdata.mui"
2844 #endif
2846 /* Methods */
2849 /* Attributes */
2854 /****************************************************************************/
2855 /** Dtpic **/
2856 /****************************************************************************/
2858 #ifdef _DCC
2859 extern char MUIC_Dtpic[];
2860 #else
2861 #define MUIC_Dtpic "Dtpic.mui"
2862 #endif
2864 /* Attributes */
2869 /*****************************************/
2870 /* End of automatic header file creation */
2871 /*****************************************/
2879 /*************************************************************************
2880 ** Structures and Macros for creating custom classes.
2881 *************************************************************************/
2885 ** GENERAL NOTES:
2887 ** - Everything described in this header file is only valid within
2888 ** MUI classes. You may never use any of these things out of
2889 ** a class, e.g. in a traditional MUI application.
2891 ** - Except when otherwise stated, all structures are strictly read only.
2895 /* Global information for every object */
2897 struct MUI_GlobalInfo
2899 ULONG priv0;
2900 Object *mgi_ApplicationObject;
2902 /* ... private data follows ... */
2906 /* Instance data of notify class */
2908 struct MUI_NotifyData
2910 struct MUI_GlobalInfo *mnd_GlobalInfo;
2911 ULONG mnd_UserData;
2912 ULONG mnd_ObjectID;
2913 ULONG priv1;
2914 ULONG priv2;
2915 ULONG priv3;
2916 ULONG priv4;
2920 /* MUI_MinMax structure holds information about minimum, maximum
2921 and default dimensions of an object. */
2923 struct MUI_MinMax
2925 WORD MinWidth;
2926 WORD MinHeight;
2927 WORD MaxWidth;
2928 WORD MaxHeight;
2929 WORD DefWidth;
2930 WORD DefHeight;
2933 #define MUI_MAXMAX 10000 /* use this if a dimension is not limited. */
2936 /* Hook message for custom layout */
2938 struct MUI_LayoutMsg
2940 ULONG lm_Type; /* type of message (see defines below) */
2941 struct MinList *lm_Children; /* list of this groups children, traverse with NextObject() */
2942 struct MUI_MinMax lm_MinMax; /* results for MUILM_MINMAX */
2943 struct
2945 LONG Width;
2946 LONG Height;
2947 ULONG priv5;
2948 ULONG priv6;
2949 } lm_Layout; /* size (and result) for MUILM_LAYOUT */
2952 #define MUILM_MINMAX 1 /* MUI wants you to calc your min & max sizes */
2953 #define MUILM_LAYOUT 2 /* MUI wants you to layout your children */
2955 #define MUILM_UNKNOWN -1 /* return this if your hook doesn't implement lm_Type */
2958 /* (partial) instance data of area class */
2960 struct MUI_AreaData
2962 struct MUI_RenderInfo *mad_RenderInfo; /* RenderInfo for this object */
2963 ULONG priv7;
2964 struct TextFont *mad_Font; /* Font */
2965 struct MUI_MinMax mad_MinMax; /* min/max/default sizes */
2966 struct IBox mad_Box; /* position and dimension */
2967 BYTE mad_addleft; /* frame & innerspacing left offset */
2968 BYTE mad_addtop; /* frame & innerspacing top offset */
2969 BYTE mad_subwidth; /* frame & innerspacing add. width */
2970 BYTE mad_subheight; /* frame & innerspacing add. height */
2971 ULONG mad_Flags; /* see definitions below */
2973 /* ... private data follows ... */
2976 /* Definitions for mad_Flags, other flags are private */
2978 #define MADF_DRAWOBJECT (1<< 0) /* completely redraw yourself */
2979 #define MADF_DRAWUPDATE (1<< 1) /* only update yourself */
2983 /* MUI's draw pens */
2985 #define MPEN_SHINE 0
2986 #define MPEN_HALFSHINE 1
2987 #define MPEN_BACKGROUND 2
2988 #define MPEN_HALFSHADOW 3
2989 #define MPEN_SHADOW 4
2990 #define MPEN_TEXT 5
2991 #define MPEN_FILL 6
2992 #define MPEN_MARK 7
2993 #define MPEN_COUNT 8
2996 /* Mask for pens from MUI_ObtainPen() */
2998 #define MUIPEN_MASK 0x0000ffff
2999 #define MUIPEN(pen) ((pen) & MUIPEN_MASK)
3002 /* Information on display environment */
3004 struct MUI_RenderInfo
3006 Object *mri_WindowObject; /* valid between MUIM_Setup/MUIM_Cleanup */
3008 struct Screen *mri_Screen; /* valid between MUIM_Setup/MUIM_Cleanup */
3009 struct DrawInfo *mri_DrawInfo; /* valid between MUIM_Setup/MUIM_Cleanup */
3010 UWORD *mri_Pens; /* valid between MUIM_Setup/MUIM_Cleanup */
3011 struct Window *mri_Window; /* valid between MUIM_Show/MUIM_Hide */
3012 struct RastPort *mri_RastPort; /* valid between MUIM_Show/MUIM_Hide */
3014 ULONG mri_Flags; /* valid between MUIM_Setup/MUIM_Cleanup */
3016 /* ... private data follows ... */
3020 ** If mri_Flags & MUIMRI_RECTFILL, RectFill() is quicker
3021 ** than Move()/Draw() for horizontal or vertical lines.
3022 ** on the current display.
3024 #define MUIMRI_RECTFILL (1<<0)
3027 ** If mri_Flags & MUIMRI_TRUECOLOR, display environment is a
3028 ** cybergraphics emulated hicolor or true color display.
3030 #define MUIMRI_TRUECOLOR (1<<1)
3033 ** If mri_Flags & MUIMRI_THINFRAMES, MUI uses thin frames
3034 ** (1:1) apsect ratio instead of standard 2:1 frames.
3036 #define MUIMRI_THINFRAMES (1<<2)
3039 ** If mri_Flags & MUIMRI_REFRESHMODE, MUI is currently
3040 ** refreshing a WFLG_SIMPLEREFRESH window and is between
3041 ** a BeginRefresh()/EndRefresh() pair.
3043 #define MUIMRI_REFRESHMODE (1<<3)
3046 /* the following macros can be used to get pointers to an objects
3047 GlobalInfo and RenderInfo structures. */
3049 struct __dummyXFC2__
3051 struct MUI_NotifyData mnd;
3052 struct MUI_AreaData mad;
3055 #define muiNotifyData(obj) (&(((struct __dummyXFC2__ *)(obj))->mnd))
3056 #define muiAreaData(obj) (&(((struct __dummyXFC2__ *)(obj))->mad))
3058 #define muiGlobalInfo(obj) (((struct __dummyXFC2__ *)(obj))->mnd.mnd_GlobalInfo)
3059 #define muiUserData(obj) (((struct __dummyXFC2__ *)(obj))->mnd.mnd_UserData)
3060 #define muiRenderInfo(obj) (((struct __dummyXFC2__ *)(obj))->mad.mad_RenderInfo)
3064 /* User configurable keyboard events coming with MUIM_HandleInput */
3066 enum
3068 MUIKEY_RELEASE = -2, /* not a real key, faked when MUIKEY_PRESS is released */
3069 MUIKEY_NONE = -1,
3070 MUIKEY_PRESS,
3071 MUIKEY_TOGGLE,
3072 MUIKEY_UP,
3073 MUIKEY_DOWN,
3074 MUIKEY_PAGEUP,
3075 MUIKEY_PAGEDOWN,
3076 MUIKEY_TOP,
3077 MUIKEY_BOTTOM,
3078 MUIKEY_LEFT,
3079 MUIKEY_RIGHT,
3080 MUIKEY_WORDLEFT,
3081 MUIKEY_WORDRIGHT,
3082 MUIKEY_LINESTART,
3083 MUIKEY_LINEEND,
3084 MUIKEY_GADGET_NEXT,
3085 MUIKEY_GADGET_PREV,
3086 MUIKEY_GADGET_OFF,
3087 MUIKEY_WINDOW_CLOSE,
3088 MUIKEY_WINDOW_NEXT,
3089 MUIKEY_WINDOW_PREV,
3090 MUIKEY_HELP,
3091 MUIKEY_POPUP,
3092 MUIKEY_COUNT /* counter */
3095 #define MUIKEYF_PRESS (1<<MUIKEY_PRESS)
3096 #define MUIKEYF_TOGGLE (1<<MUIKEY_TOGGLE)
3097 #define MUIKEYF_UP (1<<MUIKEY_UP)
3098 #define MUIKEYF_DOWN (1<<MUIKEY_DOWN)
3099 #define MUIKEYF_PAGEUP (1<<MUIKEY_PAGEUP)
3100 #define MUIKEYF_PAGEDOWN (1<<MUIKEY_PAGEDOWN)
3101 #define MUIKEYF_TOP (1<<MUIKEY_TOP)
3102 #define MUIKEYF_BOTTOM (1<<MUIKEY_BOTTOM)
3103 #define MUIKEYF_LEFT (1<<MUIKEY_LEFT)
3104 #define MUIKEYF_RIGHT (1<<MUIKEY_RIGHT)
3105 #define MUIKEYF_WORDLEFT (1<<MUIKEY_WORDLEFT)
3106 #define MUIKEYF_WORDRIGHT (1<<MUIKEY_WORDRIGHT)
3107 #define MUIKEYF_LINESTART (1<<MUIKEY_LINESTART)
3108 #define MUIKEYF_LINEEND (1<<MUIKEY_LINEEND)
3109 #define MUIKEYF_GADGET_NEXT (1<<MUIKEY_GADGET_NEXT)
3110 #define MUIKEYF_GADGET_PREV (1<<MUIKEY_GADGET_PREV)
3111 #define MUIKEYF_GADGET_OFF (1<<MUIKEY_GADGET_OFF)
3112 #define MUIKEYF_WINDOW_CLOSE (1<<MUIKEY_WINDOW_CLOSE)
3113 #define MUIKEYF_WINDOW_NEXT (1<<MUIKEY_WINDOW_NEXT)
3114 #define MUIKEYF_WINDOW_PREV (1<<MUIKEY_WINDOW_PREV)
3115 #define MUIKEYF_HELP (1<<MUIKEY_HELP)
3116 #define MUIKEYF_POPUP (1<<MUIKEY_POPUP)
3119 /* Some useful shortcuts. define MUI_NOSHORTCUTS to get rid of them */
3120 /* NOTE: These macros may only be used in custom classes and are */
3121 /* only valid if your class is inbetween the specified methods! */
3123 #ifndef MUI_NOSHORTCUTS
3125 #define _app(obj) (muiGlobalInfo(obj)->mgi_ApplicationObject) /* valid between MUIM_Setup/Cleanup */
3126 #define _win(obj) (muiRenderInfo(obj)->mri_WindowObject) /* valid between MUIM_Setup/Cleanup */
3127 #define _dri(obj) (muiRenderInfo(obj)->mri_DrawInfo) /* valid between MUIM_Setup/Cleanup */
3128 #define _screen(obj) (muiRenderInfo(obj)->mri_Screen) /* valid between MUIM_Setup/Cleanup */
3129 #define _pens(obj) (muiRenderInfo(obj)->mri_Pens) /* valid between MUIM_Setup/Cleanup */
3130 #define _window(obj) (muiRenderInfo(obj)->mri_Window) /* valid between MUIM_Show/Hide */
3131 #define _rp(obj) (muiRenderInfo(obj)->mri_RastPort) /* valid between MUIM_Show/Hide */
3132 #define _left(obj) (muiAreaData(obj)->mad_Box.Left) /* valid during MUIM_Draw */
3133 #define _top(obj) (muiAreaData(obj)->mad_Box.Top) /* valid during MUIM_Draw */
3134 #define _width(obj) (muiAreaData(obj)->mad_Box.Width) /* valid during MUIM_Draw */
3135 #define _height(obj) (muiAreaData(obj)->mad_Box.Height) /* valid during MUIM_Draw */
3136 #define _right(obj) (_left(obj)+_width(obj)-1) /* valid during MUIM_Draw */
3137 #define _bottom(obj) (_top(obj)+_height(obj)-1) /* valid during MUIM_Draw */
3138 #define _addleft(obj) (muiAreaData(obj)->mad_addleft ) /* valid during MUIM_Draw */
3139 #define _addtop(obj) (muiAreaData(obj)->mad_addtop ) /* valid during MUIM_Draw */
3140 #define _subwidth(obj) (muiAreaData(obj)->mad_subwidth ) /* valid during MUIM_Draw */
3141 #define _subheight(obj) (muiAreaData(obj)->mad_subheight) /* valid during MUIM_Draw */
3142 #define _mleft(obj) (_left(obj)+_addleft(obj)) /* valid during MUIM_Draw */
3143 #define _mtop(obj) (_top(obj)+_addtop(obj)) /* valid during MUIM_Draw */
3144 #define _mwidth(obj) (_width(obj)-_subwidth(obj)) /* valid during MUIM_Draw */
3145 #define _mheight(obj) (_height(obj)-_subheight(obj)) /* valid during MUIM_Draw */
3146 #define _mright(obj) (_mleft(obj)+_mwidth(obj)-1) /* valid during MUIM_Draw */
3147 #define _mbottom(obj) (_mtop(obj)+_mheight(obj)-1) /* valid during MUIM_Draw */
3148 #define _font(obj) (muiAreaData(obj)->mad_Font) /* valid between MUIM_Setup/Cleanup */
3149 #define _minwidth(obj) (muiAreaData(obj)->mad_MinMax.MinWidth) /* valid between MUIM_Show/Hide */
3150 #define _minheight(obj) (muiAreaData(obj)->mad_MinMax.MinHeight) /* valid between MUIM_Show/Hide */
3151 #define _maxwidth(obj) (muiAreaData(obj)->mad_MinMax.MaxWidth) /* valid between MUIM_Show/Hide */
3152 #define _maxheight(obj) (muiAreaData(obj)->mad_MinMax.MaxHeight) /* valid between MUIM_Show/Hide */
3153 #define _defwidth(obj) (muiAreaData(obj)->mad_MinMax.DefWidth) /* valid between MUIM_Show/Hide */
3154 #define _defheight(obj) (muiAreaData(obj)->mad_MinMax.DefHeight) /* valid between MUIM_Show/Hide */
3155 #define _flags(obj) (muiAreaData(obj)->mad_Flags)
3157 #endif
3161 /* MUI_CustomClass returned by MUI_CreateCustomClass() */
3163 struct MUI_CustomClass
3165 APTR mcc_UserData; /* use for whatever you want */
3167 struct Library *mcc_UtilityBase; /* MUI has opened these libraries */
3168 struct Library *mcc_DOSBase; /* for you automatically. You can */
3169 struct Library *mcc_GfxBase; /* use them or decide to open */
3170 struct Library *mcc_IntuitionBase; /* your libraries yourself. */
3172 struct IClass *mcc_Super; /* pointer to super class */
3173 struct IClass *mcc_Class; /* pointer to the new class */
3175 /* ... private data follows ... */
3179 #include "default-align.h"
3181 #endif /* MUI_H */