summaryrefslogtreecommitdiff
path: root/widgettitle.h
diff options
context:
space:
mode:
Diffstat (limited to 'widgettitle.h')
-rw-r--r--widgettitle.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/widgettitle.h b/widgettitle.h
new file mode 100644
index 0000000..a2596db
--- /dev/null
+++ b/widgettitle.h
@@ -0,0 +1,53 @@
+#ifndef WIDGETTITLE_H
+#define WIDGETTITLE_H
+
+#include <skygi/skygi.h>
+
+#include "widget.h"
+
+//! A Title class
+
+class CTitle: public CWidget {
+ public:
+ /*! Constructor */
+ CTitle();
+
+ /*!
+ Create Title
+
+ \param parent HANDLE of the parent window on which to draw
+ \param name Name of the Form
+ \param x Top left x coordinate
+ \param y Top left y coordinate
+ \param w Form width
+ \param h Form height
+ \param ullcon
+ \param style Style flags\n
+ WGF_NO_BORDER: Button has no border\n
+ WGF_BORDER_ON_MOUSE_OVER: Buttons has border on mouseover
+
+ \return Success: S_OK\n
+ Failure: E_HANDLE
+
+ \see GetParent()
+ */
+ HRESULT Create(HANDLE parent, char * name, int x, int y, int w, int h, unsigned int ullcon, unsigned int style);
+
+ /*!
+ Set Title
+
+ \param text New title
+ */
+ int SetText(char * text);
+
+ /*!
+ Get Title
+
+ \return Title
+ */
+ char * GetText();
+ protected:
+ char Text[64];
+};
+
+#endif