Initial commit
[amiga/BoopsiListView.git] / ScrollButtonClass.h
1 #ifndef SCROLLBUTTONCLASS_H
2 #define SCROLLBUTTONCLASS_H
3 /*
4 **      ScrollButtonClass
5 **
6 **      This code is inspierd from ScrollerWindow 0.3
7 **      Copyright © 1994 Christoph Feck, TowerSystems.
8 **
9 **      Subclass of buttongclass.  The ROM class has two problems, which make
10 **      it not quite usable for scrollarrows.  The first problem is the missing
11 **      delay.  Once the next INTUITICK gets sent by input.device, the ROM
12 **      class already sends a notification.  The other problem is that it also
13 **      notifies us, when the button finally gets released (which is necessary
14 **      for command buttons).
15 **
16 **      We define a new class with the GM_GOACTIVE and GM_HANDLEINPUT method
17 **      overloaded to work around these problems.
18 */
19
20
21 #define SCROLLBUTTONCLASS       "scrollbuttonclass"
22 #define SCROLLBUTTONVERS        1
23
24
25 /* Functions to initialize and destroy the class */
26 Class   *MakeScrollButtonClass  (void);
27 BOOL     FreeScrollButtonClass  (Class *cl);
28
29
30
31 /*****************/
32 /* Class Methods */
33 /*****************/
34
35 /* This class does not define any new methods */
36
37 /********************/
38 /* Class Attributes */
39 /********************/
40
41 /* #define SBA_Dummy (TAG_USER | ('S'<<16) | ('B'<<8)) */
42
43 /* This class does not define any new attributes */
44
45
46
47
48 #endif /* !SCROLLBUTTONCLASS_H */