00001 #ifndef _TEXTVIEW_H_INCLUDED_ 00002 #define _TEXTVIEW_H_INCLUDED_ 00003 00004 #include <iostream> 00005 #include <string> 00006 00007 class TextView : public VisualComponent 00008 { 00009 public: 00010 TextView( std::string text_ ) 00011 : 00012 m_text( text_ ) 00013 { 00014 } 00015 00016 virtual void Draw() 00017 { 00018 std::cout << " text:" << m_text; 00019 } 00020 00021 virtual void Resize() 00022 { 00023 } 00024 00025 virtual ~TextView() 00026 { 00027 } 00028 00029 private: 00030 std::string m_text; 00031 }; 00032 00033 #endif //_TEXTVIEW_H_INCLUDED_