summaryrefslogtreecommitdiff
path: root/widgetprogressbar.h
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2006-08-04 01:04:15 +0000
committerMatt Turner <mattst88@gmail.com>2006-08-04 01:04:15 +0000
commitdfa4a46bb0e6c6df9d07039fda5ef7f4309915b2 (patch)
treeac8b4cc67ff64703b4298f077e87bb4eb4334410 /widgetprogressbar.h
parent3582a80243bdd92619e737111ada5b5bf2667cd7 (diff)
git-svn-id: svn://mattst88.com/svn/skygipp/trunk@2 a71248a0-261a-0410-b604-901f7c0bd773
Diffstat (limited to 'widgetprogressbar.h')
-rw-r--r--widgetprogressbar.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/widgetprogressbar.h b/widgetprogressbar.h
new file mode 100644
index 0000000..b40d4a7
--- /dev/null
+++ b/widgetprogressbar.h
@@ -0,0 +1,83 @@
+#ifndef WIDGETPROGRESSBAR_H
+#define WIDGETPROGRESSBAR_H
+
+#include <skygi/skygi.h>
+
+#include "widget.h"
+
+//! A Progressbar class
+
+class CProgressbar: public CWidget {
+ public:
+ /*! Constructor */
+ CProgressbar();
+
+ /*!
+ Create Progressbar
+
+ \param parent HANDLE of the parent window on which to draw
+ \param name Name of the Progressbar
+ \param x Top left x coordinate
+ \param y Top left y coordinate
+ \param w Form width
+ \param h Form height
+ \param style Style flags
+
+ \return Success: S_OK\n
+ Failure: E_HANDLE
+ */
+ HRESULT Create(HANDLE parent, char * name, int x, int y, int w, int h, int style);
+
+ /*!
+ Redraw Progressbar
+ */
+ int Redraw();
+
+ /*!
+ Set value of Progressbar
+
+ \param val Value to set
+ */
+ int SetValue(int val);
+
+ /*!
+ Get value of Progressbar
+
+ \return value
+ */
+ int GetValue();
+
+ /*!
+ Set color of Progressbar
+
+ \param Color Color to set
+ */
+ int SetColor(COLOR Color);
+
+ /*!
+ Get color of Progressbar
+
+ \return COLOR of Progressbar
+ */
+ COLOR GetColor();
+
+ /*!
+ Set maximum value of Progressbar
+
+ \param max Maximum value
+ */
+ int SetMax(int max);
+
+ /*!
+ Get maximum value of Progressbar
+
+ \return Maximum value
+ */
+ int GetMax();
+ protected:
+ int value;
+ int maximum;
+ COLOR color;
+};
+
+#endif