uiacceltk/hitchcock/coretoolkit/inc/huicanvaswsbitgc.h
changeset 0 15bf7259bb7c
child 8 10534483575f
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 2008-2009 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:   Definition of CHuiCanvasWsBitGc.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __HUICANVASWSBITGC_H__
       
    21 #define __HUICANVASWSBITGC_H__
       
    22 
       
    23 #include <uiacceltk/HuiVisual.h>
       
    24 #include "huicanvaswsgc.h"
       
    25 #include "huicanvaswsswgc.h"
       
    26 #include "huicanvaspainter.h"
       
    27 #include <bitstd.h>
       
    28 
       
    29 const TInt KHuiCanvasWsBitGcRegionGranularity = 10;
       
    30 
       
    31 /**
       
    32  * This class is used internally by the toolkit and thus should
       
    33  * not be used by the applications directly.
       
    34  */
       
    35 NONSHARABLE_CLASS(CHuiCanvasWsBitGc) : public CHuiCanvasWsSwGc
       
    36 {
       
    37 private:
       
    38     /**
       
    39      * Constructor.
       
    40      */
       
    41     CHuiCanvasWsBitGc();
       
    42 
       
    43     /**
       
    44      * Second-phase constructor.
       
    45      */
       
    46     void ConstructL();
       
    47 
       
    48 public:
       
    49     /**
       
    50      * Constructor.
       
    51      */
       
    52     static CHuiCanvasWsBitGc* NewL();
       
    53     
       
    54     /**
       
    55      * Destructor.
       
    56      */
       
    57     ~CHuiCanvasWsBitGc();
       
    58 
       
    59 public:
       
    60 
       
    61     // Canvas functionality
       
    62 	virtual void BeginActionL(TInt aAction, TRect aDisplayRect,const CHuiCanvasVisual& aUser, TBool aIsCachePrepared, const TRegion& aUpdateRegion);
       
    63 	virtual void EndActionL(const TRegion& aUpdateRegion, TBool aUpdateDisplay);
       
    64     virtual THuiCanvasWsGcType Type() const;
       
    65     virtual void ClearCache();
       
    66     
       
    67     virtual TBool IsRenderBufferEnabled() const;
       
    68 	
       
    69 };    
       
    70 #endif  // __HUICANVASWSBITGC_H__