treeitem_boring.h

来自「这是一款2d游戏引擎」· C头文件 代码 · 共 54 行

H
54
字号
/*  $Id: treeitem_boring.h,v 1.6 2004/01/03 23:03:22 sphair 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_treeitem_boring
#define header_treeitem_boring

#if _MSC_VER > 1000
#pragma once
#endif

#include "../GUI/treeitem.h"
#include "../GUI/component_style.h"

class CL_Font;
class CL_StyleManager_Boring;

//: Theme class for CL_TreeItem for Boring theme.
//- !group=GUI/Style: Boring!
//- !header=guistyleboring.h!
class CL_TreeItem_Boring : public CL_ComponentStyle
{
public:
	CL_TreeItem_Boring(
		CL_TreeItem *item,
		CL_StyleManager_Boring *style);

	virtual ~CL_TreeItem_Boring();

	void on_paint();
	void on_get_preferred_size(CL_Size &size);

private:
	CL_Slot slot_paint;
	CL_Slot slot_get_preferred_size;

	CL_TreeItem *item;

	CL_Font *font;

	CL_StyleManager_Boring *style;
	CL_ResourceManager *resources;
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?