ultimatepp/uppdev/Display/Display.h
cxl 351994a6cc Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-08-15 08:36:24 +00:00

28 lines
647 B
C++

#ifndef _T_Display_Display_h_
#define _T_Display_Display_h_
#include <CtrlLib/CtrlLib.h>
class DisplayCtrl : public Ctrl {
public:
virtual Value GetData() const;
virtual void SetData(const Value& v);
virtual void Paint(Draw& w);
virtual void operator = (const Value& v) { SetData(v); }
private:
Value val;
Font font;
Color ink, paper;
public:
DisplayCtrl& SetFont(Font f) { font = f; Refresh(); return *this; }
DisplayCtrl& Ink(Color c) { ink = c; Refresh(); return *this; }
DisplayCtrl& Paper(Color c) { paper = c; Refresh(); return *this; }
DisplayCtrl();
~DisplayCtrl();
};
#endif