1 #ifndef YLABEL_H
2 #define YLABEL_H
3 
4 #include "ywindow.h"
5 
6 class YLabel: public YWindow {
7 public:
8     YLabel(const mstring& label, YWindow* parent);
9     virtual ~YLabel();
10 
11     virtual void paint(Graphics &g, const YRect &r);
12     virtual void handleExpose(const XExposeEvent& expose);
13     virtual void configure(const YRect2& r);
14     virtual void repaint();
15 
16     void setText(const char* label);
17 
18 private:
19     mstring fLabel;
20     bool fPainted;
21 
22     void autoSize();
23 
24     static YColorName labelFg;
25     static YColorName labelBg;
26     static YFont labelFont;
27     static int labelObjectCount;
28 };
29 
30 #endif
31 
32 // vim: set sw=4 ts=4 et:
33