skins/AknSkins/rlinc/AknsRlDefaultRenderer.h
changeset 0 05e9090e2422
equal deleted inserted replaced
-1:000000000000 0:05e9090e2422
       
     1 /*
       
     2 * Copyright (c) 2004-2008 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:  Default renderer.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef AKNSRLDEFAULTRENDERER_H
       
    20 #define AKNSRLDEFAULTRENDERER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include "AknsRlRenderer.h"
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CAknsRlInternalEffectPool;
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31 * Concrete default renderer implementation.
       
    32 *
       
    33 * Provides a concrete implementation of MAknsRlRenderer interface
       
    34 * using the internal efffect pool of the plugins built into the library only.
       
    35 *
       
    36 * @since 2.8
       
    37 */
       
    38 NONSHARABLE_CLASS(CAknsRlDefaultRenderer) : public CBase, public MAknsRlRenderer
       
    39     {
       
    40     private: // Constructors and destructor
       
    41 
       
    42         /**
       
    43         * Default constructor is private.
       
    44         *
       
    45         * @since 2.8
       
    46         */
       
    47         CAknsRlDefaultRenderer(RAknsSrvSession* aSession);
       
    48 
       
    49     public: // Constructors and destructor
       
    50 
       
    51         /**
       
    52         * Static creator.
       
    53         *
       
    54         * @since 2.8
       
    55         */
       
    56         IMPORT_C static CAknsRlDefaultRenderer* NewL(RAknsSrvSession* aSession);
       
    57 
       
    58         /**
       
    59         * Two-phased constructor.
       
    60         *
       
    61         * @since 2.8
       
    62         */
       
    63         void ConstructL();
       
    64 
       
    65         /**
       
    66         * Destructor.
       
    67         *
       
    68         * @since 2.8
       
    69         */
       
    70         virtual ~CAknsRlDefaultRenderer();
       
    71 
       
    72     public: // From MAknsRlRenderer
       
    73 
       
    74         /**
       
    75         * @copydoc MAknsRlRenderer::RenderItem
       
    76         */
       
    77         TInt RenderItem( CFbsBitmap*& aOutRGB, CFbsBitmap*& aOutAlpha,
       
    78             const TInt aOutLayerIndex,
       
    79             MAknsRlCommandIterator* aCommands,
       
    80             const TSize& aSize );
       
    81 
       
    82         /**
       
    83         * @copydoc MAknsRlRenderer::RenderItemWithBackground
       
    84         */
       
    85         TInt RenderItemWithBackground(
       
    86             CFbsBitmap*& aOutRGB, CFbsBitmap*& aOutAlpha,
       
    87             const TInt aOutLayerIndex,
       
    88             MAknsRlCommandIterator* aCommands, const TSize& aSize,
       
    89             const CFbsBitmap* aInRGB, const CFbsBitmap* aInAlpha,
       
    90             const TRect& aInRect, const TInt aInLayerIndex );
       
    91 
       
    92         /**
       
    93         * @copydoc MAknsRlRenderer::DisplayMode
       
    94         */
       
    95         TDisplayMode DisplayMode();
       
    96 
       
    97     private: // New methods
       
    98 
       
    99         void DoRenderItemL( CFbsBitmap*& aOutRGB, CFbsBitmap*& aOutAlpha,
       
   100             const TInt aOutputLayerIndex,
       
   101             MAknsRlCommandIterator* aCommands,
       
   102             const TSize& aSize,
       
   103             const CFbsBitmap* aInRGB, const CFbsBitmap* aInAlpha,
       
   104             const TRect& aInRect, const TInt aInputLayerIndex );
       
   105 
       
   106         void ExecuteCommandsL( MAknsRlCommandIterator* aCommands,
       
   107             MAknsRlEffectContext* aContext );
       
   108 
       
   109     private: // Data
       
   110 
       
   111         CAknsRlInternalEffectPool* iPool;
       
   112         RAknsSrvSession* iSkinSrvSession; // not owned
       
   113 
       
   114     };
       
   115 
       
   116 #endif // AKNSRLDEFAULTRENDERER_H
       
   117 
       
   118 // End of File