scrollbar_zz.h

来自「需要clanlib 库 这个改进版的 在linux 很好玩 但是一定要有cl」· C头文件 代码 · 共 66 行

H
66
字号
#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 + =
减小字号Ctrl + -
显示快捷键?