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

📄 cbabutton.h

📁 一个symbian上成熟的小游戏源码
💻 H
字号:
#ifndef _H_CBABUTTON_
#define _H_CBABUTTON_

#include "TiledLayer.h"
using namespace gamespace;
#include "BaseControl.h"
#include "CommandDef.h"

class CCbaButton : public CBaseControl
{
private:
	CCbaButton(const TRect& aRect );
	void ConstructL();
	
public:
	virtual ~CCbaButton();
	static CCbaButton* NewL(const TRect& aRect);
	static CCbaButton* NewLC(const TRect& aRect);
	
public://from base
	void Draw(CBitmapContext & aGc) const;//(CFbsBitGc,CBitmapContext)
	
private://new function
	void DrawText(CBitmapContext& gc) const;
	
public:
	void SetLeftCmd(TInt aResourceId,TFunction aFun);
	void SetRightCmd(TInt aResourceId,TFunction aFun);
	TFunction LeftCmdFunction();
	TFunction RightCmdFunction();

private:
	CmdNode* iLCmd;
	CmdNode* iRCmd;
};

#endif

⌨️ 快捷键说明

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