2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
9 #include <proto/alib.h>
10 #include <proto/exec.h>
11 #include <proto/dos.h>
12 #include <proto/utility.h>
13 #include <proto/intuition.h>
14 #include <proto/graphics.h>
15 #include <proto/cybergraphics.h>
17 #include <exec/memory.h>
18 #include <intuition/screens.h>
19 #include <intuition/icclass.h>
20 #include <intuition/cghooks.h>
21 #include <intuition/imageclass.h>
22 #include <intuition/gadgetclass.h>
23 #include <graphics/gfx.h>
24 #include <cybergraphx/cybergraphics.h>
28 #include "asl_intern.h"
34 #include <aros/debug.h>
36 #define CLASS_ASLBASE ((struct AslBase_intern *)cl->cl_UserData)
37 #define HOOK_ASLBASE ((struct AslBase_intern *)hook->h_Data)
39 #define AslBase CLASS_ASLBASE
41 /********************** ASL ARROW CLASS **************************************************/
43 IPTR
AslArrow__OM_NOTIFY(Class
* cl
, Object
* o
, struct opUpdate
*msg
)
45 struct AslArrowData
*data
;
48 data
= INST_DATA(cl
, o
);
50 if (!data
->scrollticker
|| (data
->scrollticker
== SCROLLTICKER
))
52 retval
= DoSuperMethodA(cl
, o
, (Msg
)msg
);
55 if (data
->scrollticker
) data
->scrollticker
--;
60 /***********************************************************************************/
62 IPTR
AslArrow__GM_GOACTIVE(Class
* cl
, Object
* o
, struct gpInput
*msg
)
64 struct AslArrowData
*data
;
67 data
= INST_DATA(cl
, o
);
68 data
->scrollticker
= SCROLLTICKER
;
70 retval
= DoSuperMethodA(cl
, o
, (Msg
)msg
);
75 /***********************************************************************************/