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

📄 listboxitem_zz.h

📁 需要clanlib 库 这个改进版的 在linux 很好玩 但是一定要有clanlib
💻 H
字号:
#ifndef HEADER_LIST_BOX_ITEM_ZZ_H#define HEADER_LIST_BOX_ITEM_ZZ_H#pragma once#include <ClanLib/gui.h>#include <string>class CL_ListBoxItem_ZZ : public CL_ListItem{public:	CL_ListBoxItem_ZZ(std::string const & levelname, bool solved)		: solved(solved)	{		str = levelname;	}	virtual ~CL_ListBoxItem_ZZ(){};public:	bool get_solved() const	{		return solved;	}	std::string const & get_levelname() const	{		return str;	}protected:	virtual bool less_than(const CL_ListItem & item) const	{		// Assume that listbox contain items only this type		CL_ListBoxItem_ZZ const * other = (CL_ListBoxItem_ZZ const *)&item;		if (get_solved() == other->get_solved())			return get_levelname() < other->get_levelname();				return get_solved() == true;	}	virtual bool equal(const CL_ListItem & item) const	{		// Assume that listbox contain items only this type		CL_ListBoxItem_ZZ const * other = (CL_ListBoxItem_ZZ const *)&item;		return get_solved() == other->get_solved()			&& get_levelname() == other->get_levelname();	}private:	bool solved;};#endif // HEADER_LIST_BOX_ITEM_ZZ_H

⌨️ 快捷键说明

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