add casts to zune macros to silence some warnings
[tangerine.git] / workbench / prefs / locale / registertab.h
blobb16da477ad9e6b77a9fb54e88c3d6275fb115339
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef REGISTERTAB_H
7 #define REGISTERTAB_H
9 /****************************************************************************************/
11 #ifndef GRAPHICS_RASTPORT_H
12 #include <graphics/rastport.h>
13 #endif
15 #ifndef INTUITION_INTUITION_H
16 #include <intuition/intuition.h>
17 #endif
19 #ifndef INTUITION_SCREENS_H
20 #include <intuition/screens.h>
21 #endif
23 /****************************************************************************************/
25 #define REGISTERTAB_IDCMP IDCMP_MOUSEBUTTONS
27 #define REGISTERTAB_EXTRA_HEIGHT 4
28 #define REGISTERTAB_IMEXTRA_HEIGHT 2
29 #define REGISTERTABITEM_EXTRA_WIDTH 8
30 #define REGISTERTAB_SPACE_LEFT 8
31 #define REGISTERTAB_SPACE_RIGHT 8
32 #define REGISTERTAB_IMAGE_TEXT_SPACE 4
34 /****************************************************************************************/
36 struct RegisterTabItem
38 CONST_STRPTR text;
39 Object *image;
40 WORD textlen;
41 WORD x1, y1, x2, y2, w, h;
42 WORD tx, ty, ix, iy;
45 struct RegisterTab
47 struct RegisterTabItem *items;
48 struct DrawInfo *dri;
49 WORD numitems;
50 WORD active;
51 WORD left;
52 WORD top;
53 WORD width;
54 WORD height;
55 WORD framewidth;
56 WORD frameheight;
57 WORD fontw;
58 WORD fonth;
59 WORD fontb;
60 WORD slopew;
63 /****************************************************************************************/
65 void InitRegisterTab(struct RegisterTab *reg, struct RegisterTabItem *items);
66 void LayoutRegisterTab(struct RegisterTab *reg, struct Screen *scr, struct DrawInfo *dri, BOOL samewidth);
67 void SetRegisterTabPos(struct RegisterTab *reg, WORD left, WORD top);
68 void SetRegisterTabFrameSize(struct RegisterTab *reg, WORD width, WORD height);
69 void RenderRegisterTabItem(struct RastPort *rp, struct RegisterTab *reg, WORD item);
70 void RenderRegisterTab(struct RastPort *rp, struct RegisterTab *reg, BOOL alsoframe);
71 BOOL HandleRegisterTabInput(struct RegisterTab *reg, struct IntuiMessage *msg);
73 /****************************************************************************************/
75 #endif /* REGISTERTAB_H */
77 /****************************************************************************************/