1 #ifndef HIDD_COMPOSITOR_H
2 #define HIDD_COMPOSITOR_H
4 Copyright © 2010-2015, The AROS Development Team. All rights reserved.
9 # include <exec/types.h>
13 # include <hidd/hidd.h>
21 # include <hidd/graphics.h>
25 * Things described here are actually system-internal.
26 * This class has no other use except inside graphics.library.
27 * This include file is even not a part of AROS SDK.
31 * Compositor interface.
32 * Changing this breaks binary compatibility. graphics.library recognizes
33 * this class by its name.
35 #define CLID_Hidd_Compositor "hidd.graphics.compositor"
36 #define IID_Hidd_Compositor "hidd.graphics.compositor"
38 /* Compositor class methods */
42 moHidd_Compositor_BitMapStackChanged
= 0,
43 moHidd_Compositor_BitMapRectChanged
,
44 moHidd_Compositor_BitMapPositionChange
,
45 moHidd_Compositor_DisplayRectChanged
,
46 moHidd_Compositor_BitMapValidate
,
47 moHidd_Compositor_BitMapEnable
,
48 NUM_COMPOSITOR_METHODS
53 aoHidd_Compositor_GfxHidd
= 0, /* [I..] Gfx driver object connected with this compositor object */
54 aoHidd_Compositor_DisplayID
, /* [I.G] Card ID part of Display mode ID */
55 aoHidd_Compositor_Capabilities
, /* [..G] Composition capabilities of this implementation */
56 aoHidd_Compositor_State
, /* [ISG] Currently used capabilities */
57 aoHidd_Compositor_BackFillHook
, /* [ISG] Rendering hook for void space */
58 aoHidd_Compositor_FrameBuffer
, /* [I..] Driver's framebuffer bitmap */
60 num_Hidd_Compositor_Attrs
63 #define aHidd_Compositor_GfxHidd (HiddCompositorAttrBase + aoHidd_Compositor_GfxHidd)
64 #define aHidd_Compositor_DisplayID (HiddCompositorAttrBase + aoHidd_Compositor_DisplayID)
65 #define aHidd_Compositor_Capabilities (HiddCompositorAttrBase + aoHidd_Compositor_Capabilities)
66 #define aHidd_Compositor_State (HiddCompositorAttrBase + aoHidd_Compositor_State)
67 #define aHidd_Compositor_BackFillHook (HiddCompositorAttrBase + aoHidd_Compositor_BackFillHook)
68 #define aHidd_Compositor_FrameBuffer (HiddCompositorAttrBase + aoHidd_Compositor_FrameBuffer)
70 #define IS_COMPOSITOR_ATTR(attr, idx) \
71 (((idx) = (attr) - HiddCompositorAttrBase) < num_Hidd_Compositor_Attrs)
73 struct pHidd_Compositor_BitMapStackChanged
76 struct HIDD_ViewPortData
*data
;
80 struct pHidd_Compositor_BitMapRectChanged
90 struct pHidd_Compositor_BitMapPositionChange
98 struct pHidd_Compositor_BitMapValidate
104 struct pHidd_Compositor_BitMapEnable
110 struct HIDD_BackFillHookMsg
113 struct Rectangle
*bounds
;
118 #endif /* HIDD_COMPOSITOR_H */