]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/label.h
Initial revision
[libs/gltk.git] / source / label.h
diff --git a/source/label.h b/source/label.h
new file mode 100644 (file)
index 0000000..0ab2029
--- /dev/null
@@ -0,0 +1,24 @@
+#ifndef LABEL_H_
+#define LABEL_H_
+
+#include "widget.h"
+
+namespace Msp {
+namespace GLtk {
+
+class Label: public Widget
+{
+public:
+       Label(const Resources &, const std::string & =std::string());
+       void set_text(const std::string &);
+private:
+       std::string text;
+
+       const char *get_class() const { return "label"; }
+       void render_part(const Part &) const;
+};
+
+} // namespace GLtk
+} // namespace Msp
+
+#endif