1 #ifndef X11GFX_INTERN_H
2 #define X11GFX_INTERN_H
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 Desc: X11 gfx HIDD for AROS.
13 # include <exec/types.h>
15 #ifndef EXEC_LIBRARIES_H
16 # include <exec/libraries.h>
19 # include <dos/bptr.h>
27 /****************************************************************************************/
29 ULONG
map_x11_to_hidd(long *penarray
, ULONG x11pixel
);
30 XImage
*alloc_ximage(Display
*display
, int screen
, ULONG width
, UBYTE depth
, UBYTE height
);
31 VOID
free_ximage(XImage
*image
);
33 /****************************************************************************************/
35 #define USE_X11_DRAWFUNCS 1
36 #define X11SOFTMOUSE 0
37 #define ADJUST_XWIN_SIZE 1 /* Resize the xwindow to the size of the actual visible screen */
38 #define DELAY_XWIN_MAPPING 1 /* Do not map (show) X window as long as there's no screen */
40 /****************************************************************************************/
42 /* Private Attrs and methods for the X11Gfx Hidd */
44 #define CLID_Hidd_X11Gfx "hidd.gfx.x11"
46 #define IID_Hidd_X11Gfx "hidd.gfx.x11gfx"
49 #define HiddX11GfxAB __abHidd_X11Gfx
51 /* extern OOP_AttrBase HiddX11GfxAB; */
55 aoHidd_X11Gfx_SysDisplay
,
56 aoHidd_X11Gfx_SysScreen
,
57 aoHidd_X11Gfx_Hidd2X11CMap
,
58 aoHidd_X11Gfx_SysCursor
,
59 aoHidd_X11Gfx_ColorMap
,
60 aoHidd_X11Gfx_VisualClass
, /* stegerg */
66 #define aHidd_X11Gfx_SysDisplay (HiddX11GfxAB + aoHidd_X11Gfx_SysDisplay)
67 #define aHidd_X11Gfx_SysScreen (HiddX11GfxAB + aoHidd_X11Gfx_SysScreen)
68 #define aHidd_X11Gfx_Hidd2X11CMap (HiddX11GfxAB + aoHidd_X11Gfx_Hidd2X11CMap)
69 #define aHidd_X11Gfx_SysCursor (HiddX11GfxAB + aoHidd_X11Gfx_SysCursor)
70 #define aHidd_X11Gfx_ColorMap (HiddX11GfxAB + aoHidd_X11Gfx_ColorMap)
71 #define aHidd_X11Gfx_VisualClass (HiddX11GfxAB + aoHidd_X11Gfx_VisualClass) /* stegerg */
75 #define NUM_COLORS (1L << PEN_BITS)
76 #define PEN_MASK (NUM_COLORS - 1)
80 AROS_LC0(BPTR, expunge, struct x11gfxbase *, LIBBASE, 3, X11Gfx)
82 #endif /* X11GFX_INTERN_H */