📄 scrollbar_zz.h
字号:
#ifndef header_scrollbar_style_zz
#define header_scrollbar_style_zz
#if _MSC_VER > 1000
#pragma once
#endif
#include <ClanLib/gui.h>
#include <ClanLib/core.h>
#include <ClanLib/signals.h>
class CL_ScrollBar;
class CL_ComponentOptions;
class CL_StyleManager_ZZ;
class CL_ResourceManager;
class CL_ScrollBar_ZZ : public CL_ComponentStyle
{
public:
enum ScrollBarType {
type_normal,
type_listbox
};
public:
CL_ScrollBar_ZZ(
CL_ScrollBar *scrollbar,
CL_StyleManager_ZZ *style,
ScrollBarType scrollbar_type = type_normal);
virtual ~CL_ScrollBar_ZZ();
public:
void set_type(ScrollBarType scrollbar_type);
private:
void start_scroll(int delta);
void stop_scroll();
void on_paint();
void on_timer_scroll();
void on_get_preferred_size(CL_Size &size);
CL_Timer timer_scroll_;
int scroll_delta_;
CL_ScrollBar *scrollbar_;
CL_Button *button_increase_;
CL_Button *button_decrease_;
CL_StyleManager_ZZ *style_;
CL_ResourceManager *resources_;
CL_Surface *sur_increase_normal_;
CL_Surface *sur_increase_toggled_;
CL_Surface *sur_decrease_normal_;
CL_Surface *sur_decrease_toggled_;
CL_SlotContainer slots_;
ScrollBarType scrollbar_type_;
bool initialized_;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -