📄 listbox_boring.h
字号:
/* $Id: listbox_boring.h,v 1.6 2004/01/02 15:42:44 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.
*/
//! clanGUI="Style: Boring"
//! header=guistyleboring.h
#ifndef header_listbox_boring
#define header_listbox_boring
#if _MSC_VER > 1000
#pragma once
#endif
#include "../GUI/listbox.h"
#include "../GUI/component_style.h"
class CL_StyleManager_Boring;
class CL_Font;
class CL_ScrollBar;
//: ListBox default style.
//- !group=GUI/Style: Boring!
//- !header=guistyleboring.h!
class CL_ListBox_Boring : public CL_ComponentStyle
{
//! Construction:
public:
//: Constructor
CL_ListBox_Boring(
CL_ListBox *listbox,
CL_StyleManager_Boring *style);
//: Destructor
virtual ~CL_ListBox_Boring();
//! Implementation:
private:
CL_SlotContainer slots;
void on_mouse_down(const CL_InputEvent &key);
void on_set_options(const CL_DomElement &options);
void on_scroll_change(int new_offset);
void on_resize(int old_width, int old_height);
void on_paint_background();
void on_paint_listbox();
void on_item_added(int index);
void on_item_removed(int index);
void on_clear();
void update_scrollbar(bool resize);
CL_ListBox *listbox;
CL_ScrollBar *scrollbar;
bool visible_scrollbar;
CL_StyleManager_Boring *style;
CL_ResourceManager *resources;
CL_Font *font;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -