From e89072b3d025f3920a00ac25c6bbe29d749a0afb Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 25 Jan 2015 00:27:53 +0000 Subject: Open BOOPSI/ReAction classes using the new-style methods. Create some alternative NewObject macros and make some code use them. --- amiga/libs.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'amiga/libs.h') diff --git a/amiga/libs.h b/amiga/libs.h index 55e4799a4..1eb31f7db 100644 --- a/amiga/libs.h +++ b/amiga/libs.h @@ -18,7 +18,21 @@ #ifndef AMIGA_LIBS_H #include +#include +/* BOOPSI classes */ +extern Class *BitMapClass; +extern Class *LayoutClass; +extern Class *ListBrowserClass; +extern Class *WindowClass; + +/* New improved ReAction macros! */ +#define BitMapObj NewObject(BitMapClass, NULL +#define LayoutHObj NewObject(LayoutClass, NULL, LAYOUT_Orientation, LAYOUT_ORIENT_HORIZ +#define LayoutVObj NewObject(LayoutClass, NULL, LAYOUT_Orientation, LAYOUT_ORIENT_VERT +#define WindowObj NewObject(WindowClass, NULL + +/* Functions */ bool ami_libs_open(void); void ami_libs_close(void); #endif -- cgit v1.2.3