1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #ifndef BDE_LABEL_H
- #define BDE_LABEL_H
- #include "types.h"
- #include "widget.h"
- class Label : public Widget {
- u8string text;
- bool dirty;
- bool is_highlighted;
- public:
- Label();
- Label(const char *aText);
- void set_text(const char *aText);
- void highlight(bool value = true);
- bool empty() const { return (text.size() == 0); }
- virtual void update();
- virtual void invalidate_view() { dirty = true; }
- virtual bool is_dirty() const { return dirty; }
- virtual void resize(int lines, int columns, int y, int x);
- };
- #endif
|