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 59 60 61 62 63 64
|
/*
$Id: scrollbar_default.h,v 1.22 2001/12/28 00:17:00 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_scrollbar_default
#define header_scrollbar_default
#include "API/Core/System/timer.h"
#include "API/GUI/scrollbar.h"
#include "API/GUI/stylemanager_default.h"
#include "API/GUI/component_style.h"
#include "API/GUI/layout_manager.h"
class CL_ResourceManager;
class CL_Surface;
class CL_ScrollBar_Default : public CL_ComponentStyle
{
public:
CL_ScrollBar_Default(
CL_ScrollBar *scrollbar,
CL_StyleManager_Default *style);
virtual ~CL_ScrollBar_Default();
private:
void start_scroll(int delta);
void stop_scroll();
void on_paint();
void on_timer_scroll();
CL_Slot slot_paint;
CL_Slot slot_increase_pressed;
CL_Slot slot_decrease_pressed;
CL_Slot slot_increase_released;
CL_Slot slot_decrease_released;
CL_Slot slot_timer;
CL_Timer timer_scroll;
int scroll_delta;
CL_ScrollBar *scrollbar;
CL_LayoutManager layout;
CL_Button *button_increase;
CL_Button *button_decrease;
CL_StyleManager_Default *style;
CL_ResourceManager *resources;
CL_Surface *sur_increase_normal;
CL_Surface *sur_increase_toggled;
CL_Surface *sur_decrease_normal;
CL_Surface *sur_decrease_toggled;
};
#endif
|