revert between 56095 -> 55830 in arch
[AROS.git] / arch / all-hosted / hidd / x11 / x11gfx_bitmap.h
blobd415fdfb2ee060032f77a5c8737d1ba25093701c
1 /*
2 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: X11 bitmap class, internal definitions
6 Lang: english
7 */
9 #include "x11gfx_bitmapclass.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 BOOL X11BM_NotifyFB(OOP_Class *cl, OOP_Object *o);
42 VOID X11BM_InitEmptyCursor(struct bitmap_data *data);
43 VOID X11BM_DisposeFB(struct bitmap_data *data, struct x11_staticdata *xsd);
44 BOOL X11BM_SetMode(struct bitmap_data *data, HIDDT_ModeID modeid, struct x11_staticdata *xsd);
45 VOID X11BM_ClearFB(struct bitmap_data *data, HIDDT_Pixel bg);
46 VOID X11BM_ExposeFB(struct bitmap_data *data, WORD x, WORD y, WORD width, WORD height);
48 BOOL X11BM_InitPM(OOP_Class *cl, OOP_Object *o, struct TagItem *attrList);
49 VOID X11BM_DisposePM(struct bitmap_data *data);
50 VOID X11BM_ClearPM(struct bitmap_data *data, HIDDT_Pixel bg);