00001 #if !defined( __ARSVIEW_H_ ) 00002 #define __ARSVIEW_H__ 00003 00004 namespace Ars 00005 { 00007 00011 class View : public Window { 00012 private: 00014 static View *m_pInstance; 00015 void operator=(View) { } 00016 00017 public: 00021 View( const XRect Rect , std::string sTitle , const bool bResizable = true ); 00022 00024 virtual ~View(void); 00025 00026 virtual const bool SetupWindow( const Message &msg ); 00027 00029 static View *GetMainFrame( void ) { return m_pInstance; } 00030 00032 bool IsResizable(void) { return m_bResizable; } 00033 00034 // Window Overrides 00037 virtual void SetWndText(const std::string& sText); 00038 00040 virtual const bool wmResize( const ResizeMessage &Message ); 00041 00042 virtual void IdleProcess( void ) {}; 00043 00044 protected: 00045 00046 friend class ArsApplication; 00047 00048 virtual const bool MainLoop( void ); 00049 00050 bool m_bResizable; 00051 }; 00052 } 00053 00054 #endif
1.3.3