Tabs to spaces, more consistent formatting.
[AROS.git] / workbench / libs / muimaster / muimaster_intern.h
blob7f52c5b455fde19826ad7f0ce1b2b2ee446c34e5
1 /*
2 Copyright © 2002-2012, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef MUIMASTER_INTERN_H
7 #define MUIMASTER_INTERN_H
9 #ifndef EXEC_TYPES_H
10 # include <exec/types.h>
11 #endif
12 #ifndef EXEC_LIBRARIES_H
13 # include <exec/libraries.h>
14 #endif
15 #ifndef EXEC_MEMORY_H
16 # include <exec/memory.h>
17 #endif
18 #ifndef INTUITION_CLASSES_H
19 # include <intuition/classes.h>
20 #endif
21 #ifndef INTUITION_INTUITIONBASE_H
22 # include <intuition/intuitionbase.h>
23 #endif
24 #ifndef GRAPHICS_GFXBASE_H
25 # include <graphics/gfxbase.h>
26 #endif
27 #ifndef DOS_DOS_H
28 # include <dos/dos.h>
29 #endif
30 #ifndef UTILITY_UTILITY_H
31 # include <utility/utility.h>
32 #endif
33 #ifndef EXEC_SEMAPHORES_H
34 # include <exec/semaphores.h>
35 #endif
37 #ifdef __AROS__
38 # ifndef AROS_ASMCALL_H
39 # include <aros/asmcall.h>
40 # endif
41 #else
42 # include "support_amigaos.h"
43 #endif
45 #include "mui.h"
46 #include "textengine.h"
47 #include "prefs.h"
48 #include "penspec.h"
51 struct MUIMasterBase_intern
53 struct Library library;
54 #ifndef __AROS__
55 /* On AROS these fields are handled by the system */
56 struct ExecBase *sysbase;
57 BPTR seglist;
59 /* On AROS autoopened libraries are used */
60 struct DosLibrary *dosbase;
61 struct UtilityBase *utilitybase;
62 struct Library *aslbase;
63 struct GfxBase *gfxbase;
64 struct Library *layersbase;
65 struct IntuitionBase *intuibase;
66 struct Library *cxbase;
67 struct RxsLib *rxsbase;
68 struct Library *keymapbase;
69 struct Library *gadtoolsbase;
70 struct Library *iffparsebase;
71 struct Library *diskfontbase;
72 struct Library *iconbase;
73 struct Library *cybergfxbase;
74 struct Library *workbenchbase;
75 #ifdef HAVE_COOLIMAGES
76 struct Library *coolimagesbase;
77 #endif
79 /* struct Library *datatypesbase; */
80 #endif /* __AROS__ */
82 struct TextFont *topaz8font;
83 struct SignalSemaphore ZuneSemaphore; /* Used when accessing global data */
85 struct MinList BuiltinClasses;
86 struct MinList Applications;
90 #undef MUIMB
91 #define MUIMB(b) ((struct MUIMasterBase_intern *)b)
93 #ifndef __AROS__
95 #undef SysBase
96 #define SysBase (MUIMB(MUIMasterBase)->sysbase)
98 #undef DOSBase
99 #define DOSBase (MUIMB(MUIMasterBase)->dosbase)
101 #undef UtilityBase
102 #define UtilityBase (MUIMB(MUIMasterBase)->utilitybase)
104 #undef AslBase
105 #define AslBase (MUIMB(MUIMasterBase)->aslbase)
107 #undef GfxBase
108 #define GfxBase (MUIMB(MUIMasterBase)->gfxbase)
110 #undef LayersBase
111 #define LayersBase (MUIMB(MUIMasterBase)->layersbase)
113 #undef IntuitionBase
114 #define IntuitionBase (MUIMB(MUIMasterBase)->intuibase)
116 #undef CxBase
117 #define CxBase (MUIMB(MUIMasterBase)->cxbase)
119 #undef RexxSysBase
120 #define RexxSysBase (MUIMB(MUIMasterBase)->rxsbase)
122 #undef KeymapBase
123 #define KeymapBase (MUIMB(MUIMasterBase)->keymapbase)
125 #undef GadToolsBase
126 #define GadToolsBase (MUIMB(MUIMasterBase)->gadtoolsbase)
128 #undef IFFParseBase
129 #define IFFParseBase (MUIMB(MUIMasterBase)->iffparsebase)
131 #undef DiskfontBase
132 #define DiskfontBase (MUIMB(MUIMasterBase)->diskfontbase)
134 #undef IconBase
135 #define IconBase (MUIMB(MUIMasterBase)->iconbase)
137 #undef CyberGfxBase
138 #define CyberGfxBase (MUIMB(MUIMasterBase)->cybergfxbase)
140 #undef CoolImagesBase
141 #define CoolImagesBase (MUIMB(MUIMasterBase)->coolimagesbase)
143 #undef WorkbenchBase
144 #define WorkbenchBase (MUIMB(MUIMasterBase)->workbenchbase)
146 #endif /* __AROS__ */
148 #endif /* MUIMASTER_INTERN_H */