openbox/otk/focuslabel.hh

35 lines
640 B
C++
Raw Normal View History

// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2002-11-16 13:02:29 +00:00
#ifndef __label_hh
#define __label_hh
#include "focuswidget.hh"
2002-12-03 08:54:51 +00:00
#include "font.hh"
#include "userstring.hh"
2002-11-16 13:02:29 +00:00
namespace otk {
class FocusLabel : public FocusWidget {
2002-11-16 13:02:29 +00:00
public:
FocusLabel(Widget *parent);
~FocusLabel();
2002-11-16 13:02:29 +00:00
inline const userstring &getText(void) const { return _text; }
void setText(const userstring &text) { _text = text; _dirty = true; }
2002-11-16 13:02:29 +00:00
void update(void);
virtual void setStyle(Style *style);
2002-11-16 13:02:29 +00:00
private:
2002-12-03 08:54:51 +00:00
//! Object used by Xft to render to the drawable
XftDraw *_xftdraw;
//! Text displayed in the label
userstring _text;
2002-11-16 13:02:29 +00:00
};
}
#endif