wvuing/wvuiave/AppSrc/CCACustomDraw.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Custom drawer class for invite viewer
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CCACUSTOMDRAW_H
       
    21 #define CCACUSTOMDRAW_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <frmtlay.h>
       
    25 
       
    26 // CLASS DECLARATION
       
    27 class CAknsBasicBackgroundControlContext;
       
    28 class CCoeControl;
       
    29 
       
    30 /**
       
    31 *  Draws skins for invite viewer
       
    32 *
       
    33 *  @lib chat.app
       
    34 *  @since 2.1
       
    35 */
       
    36 class CCACustomDraw : public CBase, public MFormCustomDraw
       
    37     {
       
    38     public:  // Constructors and destructor
       
    39 
       
    40         /**
       
    41          * Destructor.
       
    42          */
       
    43         virtual ~CCACustomDraw();
       
    44 
       
    45     public: // New functions
       
    46 
       
    47         /**
       
    48          * Set new viewing rectangle
       
    49          * @param aRect New viewing rectangle
       
    50          * @since 3.0
       
    51          */
       
    52         void SetRect( const TRect& aRect );
       
    53 
       
    54         /**
       
    55         * Sets the background graphic of text.
       
    56         *
       
    57         * @param aBgContext  Background context which is used for drawing
       
    58         * @param aParent  Parent from which to get context position
       
    59         * @since 3.0
       
    60         */
       
    61         void SetBackgroundContext( CAknsBasicBackgroundControlContext* aBgContext, CCoeControl* aParent );
       
    62 
       
    63     public: // Functions from base classes
       
    64 
       
    65         /**
       
    66          * @see MFormCustomDraw
       
    67          */
       
    68         void DrawBackground( const TParam& aParam, const TRgb& aBackground, TRect& aDrawn ) const;
       
    69 
       
    70 
       
    71     public:
       
    72 
       
    73         /**
       
    74          * C++ default constructor.
       
    75          */
       
    76         CCACustomDraw( TRect aViewRect );
       
    77 
       
    78     private: //Data
       
    79 
       
    80         TRect iViewRect;
       
    81 
       
    82         // Not owned. pointer to skinned background context
       
    83         CAknsBasicBackgroundControlContext* iBgContext;
       
    84 
       
    85         // Not owned. parent control for drawing the skin in correct place
       
    86         CCoeControl* iParent;
       
    87     };
       
    88 
       
    89 #endif      // CCACUSTOMDRAW_H
       
    90 
       
    91 // End of File