]> git.tdb.fi Git - libs/gltk.git/blob - source/label.h
Add key events
[libs/gltk.git] / source / label.h
1 #ifndef MSP_GLTK_LABEL_H_
2 #define MSP_GLTK_LABEL_H_
3
4 #include "widget.h"
5
6 namespace Msp {
7 namespace GLtk {
8
9 class Label: public Widget
10 {
11 public:
12         Label(const Resources &, const std::string & =std::string());
13         void set_text(const std::string &);
14 private:
15         std::string text;
16
17         const char *get_class() const { return "label"; }
18         void render_part(const Part &) const;
19 };
20
21 } // namespace GLtk
22 } // namespace Msp
23
24 #endif