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