📄 cbabutton.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 + -