⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 label_zz.h

📁 这是一款2d游戏引擎
💻 H
字号:

#ifndef header_label_style_zz
#define header_label_style_zz

#if _MSC_VER > 1000
#pragma once
#endif

#include <ClanLib/gui.h>

class CL_StyleManager_ZZ;
class CL_DomElement;

class CL_Label_ZZ : public CL_ComponentStyle
{
public:
    enum LabelType {
        type1,
        type2
    };
public:
	CL_Label_ZZ(
		CL_Label *label,
		CL_StyleManager_ZZ *style,
        LabelType label_type = type1);

	virtual ~CL_Label_ZZ();

private:
	void on_paint();
	void on_get_preferred_size(CL_Size &size);
	void on_set_options(const CL_DomElement &options);

	CL_Label *label_;
    LabelType label_type_;
	
	CL_ResourceManager *resources_;
	CL_Font *font_;
    CL_SlotContainer slots_;
};

#endif // header_label_style_zz

⌨️ 快捷键说明

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