grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / system / Workbook / workbook_intern.h
bloba187ff1894ebe38c7b3d79b15c83316fbcbf9c12
1 /*
2 Copyright © 2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Workbook headers
6 Lang: english
7 */
9 #ifndef WORKBOOK_H
10 #define WORKBOOK_H
12 #define WB_VERSION 1
13 #define WB_REVISION 0
15 #include <dos/bptr.h>
16 #include <intuition/classes.h>
17 #include <intuition/intuition.h>
19 struct WorkbookBase {
20 APTR wb_IntuitionBase;
21 APTR wb_DOSBase;
22 APTR wb_UtilityBase;
23 APTR wb_GadToolsBase;
24 APTR wb_IconBase;
25 APTR wb_WorkbenchBase;
26 APTR wb_GfxBase;
27 APTR wb_LayersBase;
29 Class *wb_WBApp;
30 Class *wb_WBWindow;
31 Class *wb_WBVirtual;
32 Class *wb_WBIcon;
33 Class *wb_WBSet;
35 Object *wb_App;
37 /* Create a new task that simply OpenWorkbenchObject()'s
38 * it's argment.
40 BPTR wb_OpenerSegList;
43 /* FIXME: Remove these #define xxxBase hacks
44 Do not use this in new code !
46 #define IntuitionBase wb->wb_IntuitionBase
47 #define DOSBase wb->wb_DOSBase
48 #define UtilityBase wb->wb_UtilityBase
49 #define GadToolsBase wb->wb_GadToolsBase
50 #define IconBase wb->wb_IconBase
51 #define WorkbenchBase wb->wb_WorkbenchBase
52 #define GfxBase wb->wb_GfxBase
53 #define LayersBase wb->wb_LayersBase
55 extern struct ExecBase *SysBase;
57 #include <string.h>
58 #include <proto/exec.h>
60 struct Region *wbClipWindow(struct WorkbookBase *wb, struct Window *win);
61 void wbUnclipWindow(struct WorkbookBase *wb, struct Window *win, struct Region *clip);
63 #endif /* WORKBOOK_H */