Spelling corrections.
[cake.git] / arch / all-hosted / hidd / x11 / x11gfx_intern.h
blob46b4f4fccd42bf058460a2db5b3cd033be042af8
1 #ifndef X11GFX_INTERN_H
2 #define X11GFX_INTERN_H
4 /*
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: X11 gfx HIDD for AROS.
9 Lang: English.
12 #ifndef EXEC_TYPES_H
13 # include <exec/types.h>
14 #endif
15 #ifndef EXEC_LIBRARIES_H
16 # include <exec/libraries.h>
17 #endif
18 #ifndef DOS_BPTR_H
19 # include <dos/bptr.h>
20 #endif
21 #ifndef OOP_OOP_H
22 # include <oop/oop.h>
23 #endif
25 #include <X11/Xlib.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; */
53 enum
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 */
62 num_Hidd_X11Gfx_Attrs
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 */
74 #define PEN_BITS 4
75 #define NUM_COLORS (1L << PEN_BITS)
76 #define PEN_MASK (NUM_COLORS - 1)
79 #define expunge() \
80 AROS_LC0(BPTR, expunge, struct x11gfxbase *, LIBBASE, 3, X11Gfx)
82 #endif /* X11GFX_INTERN_H */