2 Copyright 2010-2011, The AROS Development Team. All rights reserved.
6 #include "gallium_intern.h"
8 #include <aros/debug.h>
11 #undef HiddGalliumAttrBase
12 #define HiddGalliumAttrBase (SD(cl)->galliumAttrBase)
15 OOP_Object
*METHOD(Gallium
, Root
, New
)
17 o
= (OOP_Object
*)OOP_DoSuperMethod(cl
, o
, (OOP_Msg
) msg
);
22 VOID
METHOD(Gallium
, Root
, Get
)
26 if (IS_GALLIUM_ATTR(msg
->attrID
, idx
))
30 /* Overload the property */
31 case aoHidd_Gallium_GalliumInterfaceVersion
:
32 *msg
->storage
= GALLIUM_INTERFACE_VERSION
;
37 /* Use parent class for all other properties */
38 OOP_DoSuperMethod(cl
, o
, (OOP_Msg
)msg
);
41 APTR
METHOD(Gallium
, Hidd_Gallium
, CreatePipeScreen
)
43 bug("[gallium.hidd] Abstract CreatePipeScreen called\n");
47 VOID
METHOD(Gallium
, Hidd_Gallium
, DisplaySurface
)
49 struct pHidd_Gallium_DisplayResource drmsg
= {
50 mID
: OOP_GetMethodID(IID_Hidd_Gallium
, moHidd_Gallium_DisplayResource
),
51 resource
: msg
->surface
->texture
,
54 bitmap
: msg
->rastport
->BitMap
,
60 OOP_DoMethod(o
, (OOP_Msg
)&drmsg
);
63 VOID
METHOD(Gallium
, Hidd_Gallium
, DisplayResource
)
65 bug("[gallium.hidd] Abstract DisplaySurface called\n");