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

📄 animationappview.cpp

📁 Animation Client/Server Symbian 程序.
💻 CPP
字号:
/*
* ==============================================================================
*  Name        : animationappview.cpp
*  Part of     : Animation example
*  Interface   :
*  Description :
*  Version     :
*
*  Copyright (c) 2004 - 2006 Nokia Corporation.
*  This material, including documentation and any related
*  computer programs, is protected by copyright controlled by
*  Nokia Corporation.
* ==============================================================================
*/

// INCLUDE FILES
#include <coemain.h>
#include <eikenv.h>

#include "AnimationAppView.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CAnimationAppView::CAnimationAppView()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CAnimationAppView::CAnimationAppView()
    {
    // No implementation required
    }

// -----------------------------------------------------------------------------
// CAnimationAppView::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CAnimationAppView* CAnimationAppView::NewL( const TRect& aRect )
    {
    CAnimationAppView* self = CAnimationAppView::NewLC( aRect );
    CleanupStack::Pop();
    return self;
    }

// -----------------------------------------------------------------------------
// CAnimationAppView::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CAnimationAppView* CAnimationAppView::NewLC( const TRect& aRect )
    {
    CAnimationAppView* self = new ( ELeave ) CAnimationAppView();
    CleanupStack::PushL( self );
    self->ConstructL( aRect );
    return self;
    }

// -----------------------------------------------------------------------------
// CAnimationAppView::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CAnimationAppView::ConstructL( const TRect& aRect )
    {
    // Create a window for this application view
    CreateWindowL();

    // Set the windows size
    SetRect( aRect );

    // Activate the window, which makes it ready to be drawn
    ActivateL();
    }

void CAnimationAppView::HandleResolutionChange(TRect aRect)
    {
    SetRect( aRect );
    }

// -----------------------------------------------------------------------------
// CAnimationAppView::~CAnimationAppView()
// Destructor.
// -----------------------------------------------------------------------------
//
CAnimationAppView::~CAnimationAppView()
    {
    // No implementation required
    }

// -----------------------------------------------------------------------------
// CAnimationAppView::Draw()
// Draws the display.
// -----------------------------------------------------------------------------
//
void CAnimationAppView::Draw( const TRect& /*aRect*/ ) const
    {
    // Clear the screen
    CWindowGc& gc = SystemGc();
    TRect drawRect( Rect() );
    gc.Clear( drawRect );
    }

// End of File

⌨️ 快捷键说明

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