aboutsummaryrefslogtreecommitdiff
path: root/dfx-library/MultiKick.hpp
diff options
context:
space:
mode:
authorN.N. <martin_pi@users.sourceforge.net>2003-02-17 14:12:16 +0000
committerN.N. <martin_pi@users.sourceforge.net>2003-02-17 14:12:16 +0000
commite7b24dd7da9de84e218f7d7be623f0cf8b9d1b9c (patch)
treed6f37e159464589e9c5c3dea8b38e4d03631794c /dfx-library/MultiKick.hpp
This commit was generated by cvs2svn to compensate for changes in r415,svn2git-root
which included commits to RCS files with non-trunk default branches. svn path=/trunk/externals/dfx/; revision=416
Diffstat (limited to 'dfx-library/MultiKick.hpp')
-rw-r--r--dfx-library/MultiKick.hpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/dfx-library/MultiKick.hpp b/dfx-library/MultiKick.hpp
new file mode 100644
index 0000000..3e3c8b2
--- /dev/null
+++ b/dfx-library/MultiKick.hpp
@@ -0,0 +1,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 \ No newline at end of file