2 Copyright © 2011, The AROS Development Team. All rights reserved.
16 #include <intuition/classes.h>
17 #include <intuition/intuition.h>
20 APTR wb_IntuitionBase
;
25 APTR wb_WorkbenchBase
;
37 /* Create a new task that simply OpenWorkbenchObject()'s
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
;
58 #include <proto/exec.h>
60 static inline STRPTR
StrDup(CONST_STRPTR str
)
68 len
= strlen(str
) + 1;
70 cp
= AllocVec(len
, MEMF_ANY
);
74 CopyMem(str
, cp
, len
);
79 struct Region
*wbClipWindow(struct WorkbookBase
*wb
, struct Window
*win
);
80 void wbUnclipWindow(struct WorkbookBase
*wb
, struct Window
*win
, struct Region
*clip
);
82 #endif /* WORKBOOK_H */