summaryrefslogtreecommitdiff
path: root/widgetcheckbox.h
diff options
context:
space:
mode:
Diffstat (limited to 'widgetcheckbox.h')
-rw-r--r--widgetcheckbox.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/widgetcheckbox.h b/widgetcheckbox.h
new file mode 100644
index 0000000..fa06e30
--- /dev/null
+++ b/widgetcheckbox.h
@@ -0,0 +1,57 @@
+#ifndef WIDGETCHECKBOX_H
+#define WIDGETCHECKBOX_H
+
+#include <skygi/skygi.h>
+
+#include "widget.h"
+
+//! A Checkbox class
+
+class CCheckbox: public CWidget {
+ public:
+ /*! Constructor */
+ CCheckbox();
+
+ /*!
+ Create Checkbox
+
+ \param parent HANDLE of the parent window on which to draw
+ \param name Name of the Checkbox
+ \param x Top left x coordinate
+ \param y Top left y coordinate
+ \param w Checkbox width
+ \param h Checkbox height
+ \param style Style flags
+ \param ID ID sent to parent when Checkbox is (un)checked (MSG_COMMAND)
+
+ \return Success: S_OK\n
+ Failure: E_HANDLE
+ */
+ HRESULT Create(HANDLE parent, char * name, int x, int y, int w, int h, int style, unsigned int ID) ;
+
+ /*!
+ Enable Checkbox
+ */
+ HRESULT Enable();
+
+ /*!
+ Disable Checkbox
+ */
+ HRESULT Disable();
+
+ /*!
+ Set State
+
+ \param state Checked: nonzero\n Unchecked: 0
+ */
+ HRESULT SetState(int state);
+
+ /*!
+ Get State
+
+ \return Nonzero if Checked\n 0 if Unchecked
+ */
+ int GetState();
+};
+
+#endif