1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
/*
$Id: window_default.h,v 1.14 2001/12/28 22:41:50 mbn Exp $
ClanGUI, copyrights by various people. Have a look in the CREDITS file.
This sourcecode is distributed using the Library GNU Public Licence,
version 2 or (at your option) any later version. Please read LICENSE
for details.
*/
#ifndef header_window_default
#define header_window_default
#include "API/GUI/window.h"
#include "API/GUI/button.h"
#include "API/GUI/stylemanager_default.h"
#include "API/GUI/layout_manager.h"
#include "API/GUI/component_style.h"
#include "API/GUI/component_move_handler.h"
#include "API/GUI/component_resize_handler.h"
class CL_Font;
class CL_Window_Default : public CL_ComponentStyle
{
public:
CL_Window_Default(
CL_Window *window,
CL_StyleManager_Default *style);
virtual ~CL_Window_Default();
private:
CL_Slot slot_paint;
CL_Slot slot_close;
CL_Slot slot_resize;
void on_paint();
void on_close();
void on_resize(int old_width, int old_height);
CL_Window *window;
CL_Button *button_close;
CL_ComponentMoveHandler *move_handler;
CL_ComponentResizeHandler *resize_handler;
CL_StyleManager_Default *style;
CL_ResourceManager *resources;
CL_Font *font;
CL_Font *font_disabled;
CL_LayoutManager layout;
int titlebar_height;
};
#endif
|