csnowjggcontrol.h
来自「Symbian工程 九宫格界面」· C头文件 代码 · 共 60 行
H
60 行
#ifndef __CSNOWJGGCONTROL_H__
#define __CSNOWJGGCONTROL_H__
// INCLUDES
#include <aknview.h>
class CHsgGriddingView;
class CSnowJGGControl : public CCoeControl
{
public:
TInt GetCurrentIndex() {return iSnowChoice;}
void SetCurrentIndex(TInt& aIndex);
void SnowSetGridPicture(CFbsBitmap* aSrc,CFbsBitmap* aMask,CFbsBitmap* aSrcL,CFbsBitmap* aMaskL);
void SnowSetGridText(TInt aMapNum, const TDesC& aSrc);
public: // Constructors and destructor
CSnowJGGControl();
virtual ~CSnowJGGControl();
void ConstructL(const TRect& aRect);
TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
private: // Functions from base classes
void Draw( const TRect& aRect ) const;
private:
//&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
// CFbsBitmap* iLargeImage;
// CFbsBitmap* iLargeImageMask;
// CFbsBitmap* iSmallImage;
// CFbsBitmap* iSmallImageMask;
//小图标和遮罩
RPointerArray<CFbsBitmap> iSnowImageArr;
RPointerArray<CFbsBitmap> iSnowImageMaskArr;
//大图标和遮罩
RPointerArray<CFbsBitmap> iSnowLargeImageArr;
RPointerArray<CFbsBitmap> iSnowLargeImageMaskArr;
//相应图标的
RPointerArray<HBufC> iSnowTextArr;
//选中ID
TInt iSnowChoice;
//CHsgGriddingView* iSnowGriddingView;
};
/*
class CItem : public CBase
{
TInt iImageIndex;
HBufC* iText;
};
*/
#endif // __FIRSTGRID_H__
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?