graphicstest/uibench/s60/testlauncher/inc/testlauncherappview.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1  // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2  // All rights reserved.
       
     3  // This component and the accompanying materials are made available
       
     4  // under the terms of "Eclipse Public License v1.0"
       
     5  // which accompanies this distribution, and is available
       
     6  // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7  //
       
     8  // Initial Contributors:
       
     9  // Nokia Corporation - initial contribution.
       
    10  //
       
    11  // Contributors:
       
    12  //
       
    13  // Description:
       
    14  //
       
    15 
       
    16 #ifndef __HELLOWORLDBASICAPPVIEW_H__
       
    17 #define __HELLOWORLDBASICAPPVIEW_H__
       
    18 
       
    19 
       
    20 #include <coecntrl.h>
       
    21 
       
    22 
       
    23 class CEikGlobalTextEditor;
       
    24 
       
    25 
       
    26 class CHelloWorldBasicAppView : public CCoeControl
       
    27     {
       
    28     public:
       
    29         /**
       
    30         * Create a CHelloWorldBasicAppView object, which will draw itself to aRect.
       
    31         * @param aRect The rectangle this view will be drawn to.
       
    32         * @return a pointer to the created instance of CHelloWorldBasicAppView.
       
    33         */
       
    34         static CHelloWorldBasicAppView* NewL(const TRect& aRect);
       
    35 
       
    36         /**
       
    37         * Create a CHelloWorldBasicAppView object, which will draw itself
       
    38         * to aRect.
       
    39         * @param aRect Rectangle this view will be drawn to.
       
    40         * @return A pointer to the created instance of CHelloWorldBasicAppView.
       
    41         */
       
    42         static CHelloWorldBasicAppView* NewLC( const TRect& aRect );
       
    43 
       
    44         ~CHelloWorldBasicAppView();
       
    45 
       
    46     public:
       
    47         /**
       
    48         * From CCoeControl
       
    49         * Draw this CHelloWorldBasicAppView to the screen.
       
    50         * If the user has given a text, it is also printed to the center of
       
    51         * the screen.
       
    52         * @param aRect the rectangle of this view that needs updating
       
    53         */
       
    54         void Draw( const TRect& aRect ) const;
       
    55 
       
    56     private:
       
    57         CHelloWorldBasicAppView();
       
    58         void ConstructL(const TRect& aRect);
       
    59         
       
    60     private:
       
    61 		mutable TInt iDir; // mutable because it gets changed in constant draw method
       
    62 		CFont* iFont;
       
    63     };
       
    64 
       
    65 #endif // __HELLOWORLDBASICAPPVIEW_H__