00001 /* 00002 ClanGUI, copyrights by various people. Have a look in the CREDITS file. 00003 00004 This sourcecode is distributed using the Library GNU Public Licence, 00005 version 2 or (at your option) any later version. Please read LICENSE 00006 for details. 00007 */ 00008 00010 00011 #ifndef header_window 00012 #define header_window 00013 00014 #include "component.h" 00015 00016 class CL_Window : public CL_Component 00017 //: Window component 00018 { 00020 public: 00021 CL_Window( 00022 const CL_ComponentOptions &options, 00023 CL_Component *parent, 00024 CL_StyleManager *style = NULL); 00025 // Creates a window using the parameters passed in the 'options' structure. 00026 00027 CL_Window( 00028 const CL_Rect &pos, 00029 const std::string &title, 00030 CL_Component *parent, 00031 CL_StyleManager *style = NULL); 00032 // Creates a window located at the given position. 00033 00034 CL_Window( 00035 const CL_Rect &pos, 00036 CL_Component *parent, 00037 CL_StyleManager *style = NULL); 00038 // Creates a window located at the given position. 00039 00040 virtual ~CL_Window(); 00041 00043 public: 00044 CL_Component *get_client_area() const; 00045 // Returns the client area of the component. 00046 00047 const std::string &get_title() const; 00048 //: Returns the window title. 00049 00051 public: 00052 void set_title(const std::string &text); 00053 //: Sets the window title. 00054 00056 public: 00057 00059 private: 00060 CL_Window(const CL_Window ©) : CL_Component(NULL, NULL) { return; } // disallow copy construction. 00061 class CL_Window_Generic *impl; 00062 }; 00063 00064 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001