blob: 3e3c8b2bb7601dcb2b0ddf9dca249519a8ed921c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
/*------------ by Tom Murphy 7 ][ October 2001 ------------*/
#ifndef __MultiKick
#define __MultiKick
#ifndef __vstgui__
#include "vstgui.h"
#endif
/* idea for multikick */
class MultiKick : public CControl {
public:
MultiKick (const CRect &size,
CControlListener *listener,
long tag,
int numstates_,
long heightOfOneImage, // pixel
CBitmap *background,
CPoint &offset);
virtual ~MultiKick ();
virtual void draw (CDrawContext*);
virtual void mouse (CDrawContext *pContext, CPoint &where);
virtual void setValue(float);
virtual float getValue();
virtual bool isDirty();
virtual void setDirty(const bool val = true);
protected:
int numstates;
CPoint offset;
long heightOfOneImage;
int buttondown; /* is a button down? */
int obdown;
int actualstate;
int oactualstate;
};
#endif
|