2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
9 #define IID_Hidd_GDIBitMap "hidd.bitmap.gdibitmap"
11 #define HiddGDIBitMapAB __abHidd_GDIBitMap
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.
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) */
41 LONG bm_width
; /* Requested bitmap size. (not rounded up) */
43 LONG bm_left
; /* Bitmap edge coordinates */
47 #endif /* _BITMAP_H */