Added missing properties.
[tangerine.git] / arch / all-x11 / hidd / bitmap.h
blob98614bfe0eecd0bdf0d785c257974e54b247f131
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef _BITMAP_H
7 #define _BITMAP_H
9 /* This attribute interface is common for both x11 onscreen and offscreen bitmap
10 classes, although they don't have a common superclass
14 #define IID_Hidd_X11BitMap "hidd.bitmap.x11bitmap"
16 #define HiddX11BitMapAB __abHidd_X11BitMap
18 /* extern OOP_AttrBase HiddX11BitMapAB; */
20 enum
22 aoHidd_X11BitMap_Drawable,
23 aoHidd_X11BitMap_MasterWindow,
24 num_Hidd_X11BitMap_Attrs
27 #define aHidd_X11BitMap_Drawable (HiddX11BitMapAB + aoHidd_X11BitMap_Drawable)
28 #define aHidd_X11BitMap_MasterWindow (HiddX11BitMapAB + aoHidd_X11BitMap_MasterWindow)
31 /* This structure is used for both onscreen and offscreen X11 bitmaps !! */
33 #define GetSysDisplay() (data->display)
34 #define GetSysScreen() (data->screen)
35 #define GetSysCursor() (data->cursor)
37 #define IS_BM_ATTR(attr, idx) ( ( (idx) = (attr) - HiddBitMapAttrBase) < num_Hidd_BitMap_Attrs)
38 #define IS_X11BM_ATTR(attr, idx) ( ( (idx) = (attr) - HiddX11BitMapAB) < num_Hidd_X11BitMap_Attrs)
41 /* This structure is used as instance data for both the
42 onbitmap and offbitmap classes.
45 struct bitmap_data
47 union
49 Window xwindow;
50 Pixmap pixmap;
51 } drawable;
52 Window masterxwindow;
53 Cursor cursor;
54 unsigned long sysplanemask;
55 Colormap colmap;
56 GC gc; /* !!! This is an X11 GC, NOT a HIDD gc */
57 Display *display;
58 int screen;
59 int flags;
62 #define BMDF_COLORMAP_ALLOCED 1
64 #endif /* _BITMAP_H */