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 00009 #ifndef header_window_default 00010 #define header_window_default 00011 00012 #include "API/GUI/window.h" 00013 #include "API/GUI/button.h" 00014 #include "API/GUI/stylemanager_default.h" 00015 #include "API/GUI/component_style.h" 00016 #include "API/GUI/component_move_handler.h" 00017 00018 class CL_Font; 00019 00020 class CL_Window_Default : public CL_ComponentStyle 00021 { 00022 public: 00023 CL_Window_Default( 00024 CL_Window *window, 00025 const CL_ComponentOptions &options, 00026 CL_StyleManager_Default *style); 00027 00028 virtual ~CL_Window_Default(); 00029 00030 private: 00031 CL_Slot slot_paint; 00032 CL_Slot slot_resized; 00033 CL_Slot slot_close; 00034 00035 void on_paint(); 00036 void on_resized(int w, int h); 00037 void on_close(); 00038 00039 CL_Window *window; 00040 CL_Button *button_close; 00041 00042 CL_ComponentMoveHandler *move_handler; 00043 00044 CL_StyleManager_Default *style; 00045 CL_ResourceManager *resources; 00046 CL_Font *font; 00047 CL_Font *font_disabled; 00048 00049 int titlebar_height; 00050 }; 00051 00052 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001