revert between 56095 -> 55830 in arch
[AROS.git] / arch / all-mingw32 / hidd / wingdi / wingdi_bitmap.h
blob369a25d76f7af374b7517f554ccab68f3ed65414
1 /*
2 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef _BITMAP_H
7 #define _BITMAP_H
9 #define IID_Hidd_BitMap_WinGDI "hidd.bitmap.wingdi"
11 #define HiddGDIBitMapAB __abHidd_GDIBitMap
13 enum
15 aoHidd_GDIBitMap_DeviceContext, /* ..G - bitmap's device context */
16 aoHidd_GDIBitMap_SysDisplay, /* I.. - a display to be compatible with */
18 num_Hidd_GDIBitMap_Attrs
21 #define aHidd_GDIBitMap_DeviceContext (HiddGDIBitMapAB + aoHidd_GDIBitMap_DeviceContext)
22 #define aHidd_GDIBitMap_Window (HiddGDIBitMapAB + aoHidd_GDIBitMap_Window)
23 #define aHidd_GDIBitMap_SysDisplay (HiddGDIBitMapAB + aoHidd_GDIBitMap_SysDisplay)
25 #define IS_BM_ATTR(attr, idx) ( ( (idx) = (attr) - HiddBitMapAttrBase) < num_Hidd_BitMap_Attrs)
26 #define IS_GDIBM_ATTR(attr, idx) ( ( (idx) = (attr) - HiddGDIBitMapAB) < num_Hidd_GDIBitMap_Attrs)
28 /* This structure is used as instance data for the bitmap class.
31 struct bitmap_data
33 struct MinNode node;
34 APTR dc; /* Device context */
35 APTR bitmap; /* Actual Windows bitmap object */
36 APTR dc_bitmap; /* Original DC's bitmap object, needs to be put back before freeing the DC */
37 APTR display; /* System display - to what DC should be compatible */
38 void *window; /* Window in which the bitmap is displayed */
39 LONG win_width; /* Window size (cached from ModeID) */
40 LONG win_height;
41 LONG bm_width; /* Requested bitmap size. (not rounded up) */
42 LONG bm_height;
43 LONG bm_left; /* Bitmap edge coordinates */
44 LONG bm_top;
47 #endif /* _BITMAP_H */