summaryrefslogtreecommitdiffstats
path: root/src/button.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/button.h')
-rw-r--r--src/button.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/button.h b/src/button.h
new file mode 100644
index 0000000..1e6ef90
--- /dev/null
+++ b/src/button.h
@@ -0,0 +1,42 @@
+// button.h
+
+#ifndef _BUTTON_H_
+#define _BUTTON_H_
+
+
+#include "control.h"
+
+
+class CD3DEngine;
+
+
+
+class CButton : public CControl
+{
+public:
+ CButton(CInstanceManager* iMan);
+ ~CButton();
+
+ BOOL Create(FPOINT pos, FPOINT dim, int icon, EventMsg eventMsg);
+
+ BOOL EventProcess(const Event &event);
+
+ void Draw();
+
+ void SetImmediat(BOOL bRepeat);
+ BOOL RetImmediat();
+
+ void SetRepeat(BOOL bRepeat);
+ BOOL RetRepeat();
+
+protected:
+
+protected:
+ BOOL m_bCapture;
+ BOOL m_bImmediat;
+ BOOL m_bRepeat;
+ float m_repeat;
+};
+
+
+#endif //_BUTTON_H_