From e7b24dd7da9de84e218f7d7be623f0cf8b9d1b9c Mon Sep 17 00:00:00 2001 From: "N.N." Date: Mon, 17 Feb 2003 14:12:16 +0000 Subject: This commit was generated by cvs2svn to compensate for changes in r415, which included commits to RCS files with non-trunk default branches. svn path=/trunk/externals/dfx/; revision=416 --- dfx-library/MultiKick.hpp | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 dfx-library/MultiKick.hpp (limited to 'dfx-library/MultiKick.hpp') 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 -- cgit v1.2.1