2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
6 #define MUIMASTER_YES_INLINE_STDARG
9 #include <aros/debug.h>
11 #include <exec/types.h>
12 #include <exec/memory.h>
13 #include <intuition/classes.h>
14 #include <intuition/classusr.h>
15 #include <libraries/gadtools.h>
16 #include <libraries/mui.h>
17 #include <libraries/desktop.h>
21 #include "desktop_intern.h"
23 #include <proto/desktop.h>
24 #include <proto/dos.h>
25 #include <proto/intuition.h>
26 #include <proto/utility.h>
28 #include "presentation.h"
30 #include "iconobserver.h"
31 #include "drawericonobserver.h"
33 #include "desktop_intern_protos.h"
37 IPTR
drawerIconObserverNew(Class
* cl
, Object
* obj
, struct opSet
* msg
)
40 struct DrawerIconObserverClassData
*data
;
41 //struct TagItem *tag;
43 retval
= DoSuperMethodA(cl
, obj
, (Msg
) msg
);
46 obj
= (Object
*) retval
;
47 data
= INST_DATA(cl
, obj
);
53 IPTR
drawerIconObserverSet(Class
* cl
, Object
* obj
, struct opSet
* msg
)
55 struct DrawerIconObserverClassData
*data
;
58 *tstate
= msg
->ops_AttrList
;
60 data
= (struct DrawerIconObserverClassData
*) INST_DATA(cl
, obj
);
62 while ((tag
= NextTagItem(&tstate
)))
71 retval
= DoSuperMethodA(cl
, obj
, (Msg
) msg
);
76 IPTR
drawerIconObserverGet(Class
* cl
, Object
* obj
, struct opGet
* msg
)
79 struct DrawerIconObserverClassData
*data
;
81 data
= (struct DrawerIconObserverClassData
*) INST_DATA(cl
, obj
);
83 switch (msg
->opg_AttrID
)
86 retval
= DoSuperMethodA(cl
, obj
, (Msg
) msg
);
93 IPTR
drawerIconObserverDispose(Class
* cl
, Object
* obj
, Msg msg
)
97 retval
= DoSuperMethodA(cl
, obj
, msg
);
102 BOOPSI_DISPATCHER(IPTR
, drawerIconObserverDispatcher
, cl
, obj
, msg
)
106 switch (msg
->MethodID
)
109 retval
= drawerIconObserverNew(cl
, obj
, (struct opSet
*) msg
);
112 retval
= drawerIconObserverSet(cl
, obj
, (struct opSet
*) msg
);
115 retval
= drawerIconObserverGet(cl
, obj
, (struct opGet
*) msg
);
118 retval
= drawerIconObserverDispose(cl
, obj
, msg
);
121 retval
= DoSuperMethodA(cl
, obj
, msg
);
127 BOOPSI_DISPATCHER_END