revert between 56095 -> 55830 in arch
[AROS.git] / workbench / prefs / PSI / psi.h
blob8a6d778de78284d96dabb4f5abf9abdad8cdcf46
1 #ifndef PSI_H
2 #define PSI_H
4 /*
5 Copyright © 1995-1997 Stefan Stuntz.
6 Copyright © 2009-2011, The AROS Development Team.
7 All rights reserved.
9 $Id$
12 #include <libraries/gadtools.h>
13 #include <libraries/mui.h>
15 #include <proto/alib.h>
17 #define CATCOMP_NUMBERS
18 #define CATCOMP_ARRAY
19 #include "strings.h"
21 /****************************************************************************/
22 /* Some Definitions */
23 /****************************************************************************/
25 #define MUISERIALNR_STUNTZI 1
26 #define TAGBASE_STUNTZI (TAG_USER | ( MUISERIALNR_STUNTZI << 16))
28 #define RectangleWidth(r) ((r).MaxX-(r).MinX+1)
29 #define RectangleHeight(r) ((r).MaxY-(r).MinY+1)
31 #define SYSPEN_OFFSET 1
32 #define MUIPEN_OFFSET 1
34 #define ForEntries(list,entry,succ) for (entry=(APTR)((struct Node *)(((struct List *)list)->lh_Head));(succ=(APTR)((struct Node *)entry)->ln_Succ);entry=(APTR)succ)
36 #define BETWEEN(a,x,b) ((x)>=(a) && (x)<=(b))
38 CONST_STRPTR GetStr(int num);
39 char *getstr(Object *obj);
40 VOID setstr(APTR str,LONG num);
41 BOOL getbool(Object *obj);
42 VOID settxt(APTR str,LONG num);
43 IPTR xget(Object *obj,IPTR attribute);
44 Object *MakeLabel (int num);
45 Object *MakeCLabel(int num);
46 Object *MakeLabel1 (int num);
47 Object *MakeLabel2 (int num);
48 Object *MakeLLabel (int num);
49 Object *MakeLLabel1 (int num);
50 Object *MakeFreeLabel(int num);
51 Object *MakeFreeLLabel(int num);
52 Object *MakeButton(int num);
53 Object *MakeString(int maxlen,int num);
54 Object *MakeCheck(int num);
55 Object *MakeCycle(CONST_STRPTR *array,int num);
56 Object *MakeSlider(int min,int max,int num);
57 Object *MakePalette(void);
58 BOOL TestPubScreen(char *name);
60 #endif