uiacceltk/hitchcock/coretoolkit/inc/huicanvaspainter.h
changeset 14 83d2d132aa58
parent 0 15bf7259bb7c
equal deleted inserted replaced
13:8f67d927ea57 14:83d2d132aa58
    47     /** Buffer has been drawn */
    47     /** Buffer has been drawn */
    48     EHuiCanvasBufferStatusDrawn = 0x4,    
    48     EHuiCanvasBufferStatusDrawn = 0x4,    
    49     
    49     
    50     /** Flag to say wheter buffer really contains somethign that really draws something */
    50     /** Flag to say wheter buffer really contains somethign that really draws something */
    51     EHuiCanvasBufferContainsDrawing = 0x8000,
    51     EHuiCanvasBufferContainsDrawing = 0x8000,
       
    52     EHuiCanvasBufferContainsTransparentClear = 0x10000,
    52     /** All flags, can be used for clearing all flags */
    53     /** All flags, can be used for clearing all flags */
    53     EHuiCanvasBufferStatusAll = 0xFFFFFFFF
    54     EHuiCanvasBufferStatusAll = 0xFFFFFFFF
    54     };
    55     };
    55 
    56 
    56 
    57 
   292      * Returns reference to used canvas gc
   293      * Returns reference to used canvas gc
   293      */
   294      */
   294     virtual CHuiCanvasGc& CanvasGc() const = 0;
   295     virtual CHuiCanvasGc& CanvasGc() const = 0;
   295     
   296     
   296     /**
   297     /**
       
   298      * Clears capturing buffer area with completely transparent.
       
   299      * @param aRect rect to clear.
       
   300      */ 
       
   301     virtual void ClearCapturingBufferArea(const TRect& aRect);
       
   302     
       
   303     /**
   297      * Sets canvas visual that this painter draws into
   304      * Sets canvas visual that this painter draws into
   298      */
   305      */
   299     void SetVisual(CHuiCanvasVisual* aVisual);
   306     void SetVisual(CHuiCanvasVisual* aVisual);
   300 
   307 
   301     /**
   308     /**
   351 
   358 
   352     /**
   359     /**
   353      * Does this painter have command buffers older than given time.
   360      * Does this painter have command buffers older than given time.
   354      */
   361      */
   355     TBool HasOldCommandBuffers(TInt aLifeTimeInMs);
   362     TBool HasOldCommandBuffers(TInt aLifeTimeInMs);
       
   363     
       
   364     /**
       
   365      * Returns the area covered by buffers in the given orientation
       
   366      */
       
   367     TRect CommandBufferCoverage(TInt aOrientation);
   356 
   368 
   357     TInt NumBuffers() const { return iCommandBuffers.Count(); }
   369     TInt NumBuffers() const { return iCommandBuffers.Count(); }
   358     CHuiCanvasCommandBuffer *At(TInt aIndex) const { return iCommandBuffers[aIndex]; }
   370     CHuiCanvasCommandBuffer *At(TInt aIndex) const { return iCommandBuffers[aIndex]; }
   359 protected:
   371 protected:
   360 	
   372