summaryrefslogtreecommitdiff
path: root/frontends/amiga/libs.h
blob: aa3622af270868457dc39de8e1950d6d3d519c61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*
 * Copyright 2014 Chris Young <chris@unsatisfactorysoftware.co.uk>
 *
 * This file is part of NetSurf, http://www.netsurf-browser.org/
 *
 * NetSurf is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 2 of the License.
 *
 * NetSurf is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef AMIGA_LIBS_H
#include <stdbool.h>
#include <intuition/classes.h>

/* BOOPSI classes */
extern Class *ARexxClass;
extern Class *BevelClass;
extern Class *BitMapClass;
extern Class *ButtonClass;
extern Class *CheckBoxClass;
extern Class *ChooserClass;
extern Class *ClickTabClass;
extern Class *FuelGaugeClass;
extern Class *GetFileClass;
extern Class *GetFontClass;
extern Class *GetScreenModeClass;
extern Class *IntegerClass;
extern Class *LabelClass;
extern Class *LayoutClass;
extern Class *ListBrowserClass;
#ifndef __amigaos4__
/* OS4 uses a public class name instead */
extern Class *PageClass;
#endif
extern Class *RadioButtonClass;
extern Class *ScrollerClass;
extern Class *SpaceClass;
extern Class *SpeedBarClass;
extern Class *StringClass;
extern Class *WindowClass;

/* New improved ReAction macros! */
#define ARexxObj			NewObject(ARexxClass, NULL
#define BevelObj			NewObject(BevelClass, NULL
#define BitMapObj			NewObject(BitMapClass, NULL
#define ButtonObj			NewObject(ButtonClass, NULL
#define CheckBoxObj			NewObject(CheckBoxClass, NULL
#define ChooserObj			NewObject(ChooserClass, NULL
#define ClickTabObj			NewObject(ClickTabClass, NULL
#define FuelGaugeObj		NewObject(FuelGaugeClass, NULL
#define GetFileObj			NewObject(GetFileClass, NULL
#define GetFontObj			NewObject(GetFontClass, NULL
#define GetScreenModeObj	NewObject(GetScreenModeClass, NULL
#define IntegerObj			NewObject(IntegerClass, NULL
#define LabelObj			NewObject(LabelClass, NULL
#define LayoutHObj			NewObject(LayoutClass, NULL, LAYOUT_Orientation, LAYOUT_ORIENT_HORIZ
#define LayoutVObj			NewObject(LayoutClass, NULL, LAYOUT_Orientation, LAYOUT_ORIENT_VERT
#ifdef __amigaos4__
#define PageObj				NewObject(NULL, "page.gadget"
#else
#define PageObj				NewObject(PageClass, NULL
#endif
#define RadioButtonObj		NewObject(RadioButtonClass, NULL
#define ScrollerObj			NewObject(ScrollerClass, NULL
#define SpaceObj			NewObject(SpaceClass, NULL
#define SpeedBarObj			NewObject(SpeedBarClass, NULL
#define StringObj			NewObject(StringClass, NULL
#define WindowObj			NewObject(WindowClass, NULL

/* Functions */
bool ami_libs_open(void);
void ami_libs_close(void);
#endif