rename the directory
[AROS.git] / arch / all-hosted / hidd / x11 / bitmap.h
blob40c24f7d7f37078e5e8844e05bccf4156ec868f6
1 /*
2 Copyright © 1995-2015, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: X11 bitmap class, internal definitions
6 Lang: english
7 */
9 #include "bitmap_class.h"
11 #define GetSysDisplay() (data->display)
12 #define GetSysScreen() (data->screen)
13 #define GetSysCursor() (data->cursor)
15 #define DRAWABLE(data) (data->drawable)
16 #define WINDRAWABLE(data) (data->windowdrawable)
18 /* This structure is used as instance data for the bitmap class. */
19 struct bitmap_data
21 Drawable drawable; /* The X11 object behind us */
22 Window masterxwindow;
23 Cursor cursor;
24 unsigned long sysplanemask;
25 Colormap colmap;
26 GC gc; /* !!! This is an X11 GC, NOT a HIDD gc */
27 Display *display; /* Our X11 display */
28 int screen; /* Our X11 screen */
29 int flags; /* See below */
30 IPTR width; /* Cached size, used by Clear method */
31 IPTR height;
32 OOP_Object *gfxhidd; /* Cached owner, for ModeID switch */
33 Drawable windowdrawable; /* Explicit pointer to window drawable for BMDF_FRAMEBUFFER */
36 #define BMDF_COLORMAP_ALLOCED 1
37 #define BMDF_FRAMEBUFFER 2
38 #define BMDF_BACKINGSTORE 4
40 BOOL X11BM_InitFB(OOP_Class *cl, OOP_Object *o, struct TagItem *attrList);
41 VOID X11BM_InitEmptyCursor(struct bitmap_data *data);
42 VOID X11BM_DisposeFB(struct bitmap_data *data, struct x11_staticdata *xsd);
43 BOOL X11BM_SetMode(struct bitmap_data *data, HIDDT_ModeID modeid, struct x11_staticdata *xsd);
44 VOID X11BM_ClearFB(struct bitmap_data *data, HIDDT_Pixel bg);
45 VOID X11BM_ExposeFB(struct bitmap_data *data, WORD x, WORD y, WORD width, WORD height);
47 BOOL X11BM_InitPM(OOP_Class *cl, OOP_Object *o, struct TagItem *attrList);
48 VOID X11BM_DisposePM(struct bitmap_data *data);
49 VOID X11BM_ClearPM(struct bitmap_data *data, HIDDT_Pixel bg);