2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
9 /****************************************************************************************/
11 #ifndef GRAPHICS_RASTPORT_H
12 #include <graphics/rastport.h>
15 #ifndef INTUITION_INTUITION_H
16 #include <intuition/intuition.h>
19 #ifndef INTUITION_SCREENS_H
20 #include <intuition/screens.h>
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
41 WORD x1
, y1
, x2
, y2
, w
, h
;
47 struct RegisterTabItem
*items
;
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 /****************************************************************************************/