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 "trashcaniconclass.h"
22 #include "desktop_intern_protos.h"
24 IPTR
trashcanIconNew(Class
* cl
, Object
* obj
, struct opSet
* msg
)
27 struct TrashcanIconClassData
*data
;
28 //struct TagItem *tag;
30 retval
= DoSuperMethodA(cl
, obj
, (Msg
) msg
);
33 obj
= (Object
*) retval
;
34 data
= INST_DATA(cl
, obj
);
40 IPTR
trashcanIconSet(Class
* cl
, Object
* obj
, struct opSet
* msg
)
42 struct TrashcanIconClassData
*data
;
45 *tstate
= msg
->ops_AttrList
;
47 data
= (struct TrashcanIconClassData
*) INST_DATA(cl
, obj
);
49 while ((tag
= NextTagItem(&tstate
)))
58 retval
= DoSuperMethodA(cl
, obj
, (Msg
) msg
);
63 IPTR
trashcanIconGet(Class
* cl
, Object
* obj
, struct opGet
* msg
)
66 struct TrashcanIconClassData
*data
;
68 data
= (struct TrashcanIconClassData
*) INST_DATA(cl
, obj
);
70 switch (msg
->opg_AttrID
)
73 retval
= DoSuperMethodA(cl
, obj
, (Msg
) msg
);
80 IPTR
trashcanIconDispose(Class
* cl
, Object
* obj
, Msg msg
)
84 retval
= DoSuperMethodA(cl
, obj
, msg
);
89 BOOPSI_DISPATCHER(IPTR
, trashcanIconDispatcher
, cl
, obj
, msg
)
93 switch (msg
->MethodID
)
96 retval
= trashcanIconNew(cl
, obj
, (struct opSet
*) msg
);
99 retval
= trashcanIconSet(cl
, obj
, (struct opSet
*) msg
);
102 retval
= trashcanIconGet(cl
, obj
, (struct opGet
*) msg
);
105 retval
= trashcanIconDispose(cl
, obj
, msg
);
108 retval
= DoSuperMethodA(cl
, obj
, msg
);
114 BOOPSI_DISPATCHER_END