00001 #ifndef _DECORATOR_H_INCLUDED_ 00002 #define _DECORATOR_H_INCLUDED_ 00003 00004 #include <iostream> 00005 00006 class Decorator : public VisualComponent 00007 { 00008 public: 00009 Decorator( VisualComponent* pvc ) 00010 : 00011 m_component( pvc ) 00012 { 00013 } 00014 00015 virtual void Draw() 00016 { 00017 m_component->Draw(); 00018 } 00019 00020 virtual void Resize() 00021 { 00022 m_component->Resize(); 00023 } 00024 00025 private: 00026 VisualComponent* m_component; 00027 }; 00028 00029 #endif //_DECORATOR_H_INCLUDED_