diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-01-25 00:27:53 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-01-25 00:27:53 +0000 |
commit | e89072b3d025f3920a00ac25c6bbe29d749a0afb (patch) | |
tree | 6a095f85213cd47ac7fcf73c343e62a7e93abe3a /amiga/libs.h | |
parent | f63742d7c2c550857697ee102222112af86e1f9f (diff) | |
download | netsurf-e89072b3d025f3920a00ac25c6bbe29d749a0afb.tar.gz netsurf-e89072b3d025f3920a00ac25c6bbe29d749a0afb.tar.bz2 |
Open BOOPSI/ReAction classes using the new-style methods.
Create some alternative NewObject macros and make some code use them.
Diffstat (limited to 'amiga/libs.h')
-rw-r--r-- | amiga/libs.h | 14 |
1 files changed, 14 insertions, 0 deletions
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 <stdbool.h> +#include <intuition/classes.h> +/* 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 |