📄 ballappview.h
字号:
/* Copyright (c) 2008, Nokia. All rights reserved */
#ifndef __BALL_APPVIEW_H__
#define __BALL_APPVIEW_H__
#include <coecntrl.h>
#include "ActiveBall.h"
#include "GULICON.H"
/*!
@class CBallAppView
@discussion An instance of this class is the Application View object
for the Ball example application
*/
class CActiveBall;
class CBallAppView : public CCoeControl
{
public:
/*!
@function NewL
@discussion Create a CBallAppView object, which will draw itself to aRect
@param aRect The rectangle this view will be drawn to
@result A pointer to the created instance of CBallAppView
*/
static CBallAppView* NewL(const TRect& aRect);
/*!
@function NewLC
@discussion Create a CBallAppView object, which will draw itself to aRect
@param aRect The rectangle this view will be drawn to
@result A pointer to the created instance of CBallAppView
*/
static CBallAppView* NewLC(const TRect& aRect);
/*!
@function ~CBallAppView
@discussion Destroy the object
*/
~CBallAppView();
public: // from CCoeControl
/*!
@function Draw
@discussion Draw this CBallAppView to the screen
@param aRect The rectangle of this view that needs updating
*/
void Draw(const TRect& aRect) const;
private:
CActiveBall* iActive;
CGulIcon* iBall;
/*!
@function ConstructL
@discussion Perform the second phase construction of a CBallAppView object
@param aRect The rectangle this view will be drawn to
*/
void ConstructL(const TRect& aRect);
/*!
@function CBallAppView
@discussion Perform the first phase of two phase construction
*/
CBallAppView();
};
#endif // __BALL_APPVIEW_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -