1 #define MUIMASTER_YES_INLINE_STDARG
4 #include <aros/debug.h>
6 #include <exec/types.h>
7 #include <intuition/classes.h>
8 #include <intuition/classusr.h>
9 #include <libraries/mui.h>
13 #include "desktop_intern.h"
15 #include <proto/dos.h>
16 #include <proto/intuition.h>
17 #include <proto/utility.h>
19 #include "presentation.h"
20 #include "tooliconobserver.h"
22 #include "desktop_intern_protos.h"
24 IPTR
toolIconObserverNew(Class
* cl
, Object
* obj
, struct opSet
* msg
)
27 struct ToolIconObserverClassData
*data
;
28 // struct TagItem *tag;
30 retval
= DoSuperMethodA(cl
, obj
, (Msg
) msg
);
33 obj
= (Object
*) retval
;
34 data
= INST_DATA(cl
, obj
);
40 IPTR
toolIconObserverSet(Class
* cl
, Object
* obj
, struct opSet
* msg
)
42 struct ToolIconObserverClassData
*data
;
45 *tstate
= msg
->ops_AttrList
;
47 data
= (struct ToolIconObserverClassData
*) INST_DATA(cl
, obj
);
49 while ((tag
= NextTagItem(&tstate
)))
58 retval
= DoSuperMethodA(cl
, obj
, (Msg
) msg
);
63 IPTR
toolIconObserverGet(Class
* cl
, Object
* obj
, struct opGet
* msg
)
66 struct ToolIconObserverClassData
*data
;
68 data
= (struct ToolIconObserverClassData
*) INST_DATA(cl
, obj
);
70 switch (msg
->opg_AttrID
)
73 retval
= DoSuperMethodA(cl
, obj
, (Msg
) msg
);
80 IPTR
toolIconObserverDispose(Class
* cl
, Object
* obj
, Msg msg
)
84 retval
= DoSuperMethodA(cl
, obj
, msg
);
89 BOOPSI_DISPATCHER(IPTR
, toolIconObserverDispatcher
, cl
, obj
, msg
)
93 switch (msg
->MethodID
)
96 retval
= toolIconObserverNew(cl
, obj
, (struct opSet
*) msg
);
99 retval
= toolIconObserverSet(cl
, obj
, (struct opSet
*) msg
);
102 retval
= toolIconObserverGet(cl
, obj
, (struct opGet
*) msg
);
105 retval
= toolIconObserverDispose(cl
, obj
, msg
);
108 retval
= DoSuperMethodA(cl
, obj
, msg
);
114 BOOPSI_DISPATCHER_END