rt300@0: rt300@0: #ifndef __tweakathlon__TextPanel__ rt300@0: #define __tweakathlon__TextPanel__ rt300@0: rt300@0: #include rt300@0: #include "ofMain.h" rt300@0: #include "UIElement.h" rt300@0: #include "boost/function.hpp" rt300@0: #include "boost/bind.hpp" rt300@0: rt300@0: class TextPanel : public UIElement{ rt300@0: public: rt300@0: rt300@0: TextPanel(string text, int x, int y,int w,int h, const UIProps& props); rt300@0: void draw(); rt300@0: rt300@0: void setText(string at){ rt300@0: theText = at; rt300@0: }; rt300@0: void setColor(ofColor col){ rt300@0: foregroundHi = col; rt300@0: } rt300@0: void setFontSize(FontSize f){ rt300@0: fontSize = f; rt300@0: } rt300@0: ofColor foregroundHi; rt300@0: ofColor backgroundHi; rt300@0: ofColor foregroundLo; rt300@0: ofColor backgroundLo; rt300@0: rt300@22: void setBackground(ofColor c){ rt300@22: backgroundHi = c; rt300@22: backgroundLo = c; rt300@22: rt300@22: } rt300@0: bool handleMyTouch(int x, int y, touchType ttype, int touchID){ rt300@0: return false; rt300@0: } rt300@0: rt300@0: private: rt300@0: string theText; rt300@0: bool transparent; rt300@0: FontSize fontSize; rt300@0: }; rt300@0: rt300@0: #endif /* defined(__tweakathlon__TextPanel__) */