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

📄 hgeguibuttonex.h

📁 我在资源网上发布的一个brickshorterjr的代码
💻 H
字号:
#ifndef	HGE_GUIBUTTON_H
#define	HGE_GUIBUTTON_H

#include	<hgegui.h>
#include	<hgesprite.h>

class	hgeGUIButtonEx : public hgeGUIObject
{
public:
	hgeGUIButtonEx( int id, float x, float y, float w, float h, 
				    hgeSprite *mouseOn, hgeSprite *mouseOff );
	virtual			~hgeGUIButtonEx();
	
	void			SetState(bool _bPressed)	{ m_bPressed=_bPressed; }
	bool			GetState() const			{ return m_bPressed; }
	bool			IsMouseOver() const			{	return	m_bMouseOn;	}

	virtual void	Render();

	virtual bool	MouseLButton(bool bDown);
	virtual	void	MouseOver( bool bOver );

	virtual	void	Enable( bool bEnable, hgeSprite *disableSp = NULL );
private:
	bool			m_bMouseOn;
	bool			m_bPressed;
	hgeSprite		*m_sprMouseOn;
	hgeSprite		*m_sprMouseOff;

	hgeSprite		*m_sprDisable;
};



#endif

⌨️ 快捷键说明

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