uiaccelerator_plat/alf_core_toolkit_api/inc/uiacceltk/HuiCanvasVisual.h
branchRCL_3
changeset 8 10534483575f
parent 7 433cbbb6a04b
child 10 88b23e2e82e1
equal deleted inserted replaced
7:433cbbb6a04b 8:10534483575f
   102     /** External fade effect (if enabled) is set to a parent (or grandparent) */
   102     /** External fade effect (if enabled) is set to a parent (or grandparent) */
   103     EHuiCanvasFlagExternalFadeByParent = 0x40,    
   103     EHuiCanvasFlagExternalFadeByParent = 0x40,    
   104     /** Effect is excluded from parent (or grandparent) effect (if it has effect which is applied to children) */
   104     /** Effect is excluded from parent (or grandparent) effect (if it has effect which is applied to children) */
   105     EHuiCanvasFlagExcludeFromParentEffect = 0x80,
   105     EHuiCanvasFlagExcludeFromParentEffect = 0x80,
   106     /** Hint flag which is used for optimizations. Tells if fade effect(s) exist in visual tree */
   106     /** Hint flag which is used for optimizations. Tells if fade effect(s) exist in visual tree */
   107     EHuiCanvasFlagExternalFadeExistsInsideVisualTree = 0x100 
   107     EHuiCanvasFlagExternalFadeExistsInsideVisualTree = 0x100,
       
   108     /** Flag to indicate whether to include this visual to visibility calculation */
       
   109     EHuiCanvasFlagIncludeToVisibilityCalculation = 0x200,
       
   110     /** Flag to indicate whether surface is invisible (based on visibility calculation) */
       
   111     EHuiCanvasFlagSurfaceInvisible = 0x400,
       
   112     /** Flag to indicate whether surface is visible (based on visibility calculation) */
       
   113     EHuiCanvasFlagSurfaceVisible = 0x800
   108     };
   114     };
   109 
   115 
   110 /**
   116 /**
   111  * This class is used internally by the toolkit and thus should
   117  * This class is used internally by the toolkit and thus should
   112  * not be used by the applications directly.
   118  * not be used by the applications directly.
   350     IMPORT_C TBool LayerUsesAlphaFlag();
   356     IMPORT_C TBool LayerUsesAlphaFlag();
   351     IMPORT_C void SetLayerUsesAlphaFlag(TBool aEnabled);
   357     IMPORT_C void SetLayerUsesAlphaFlag(TBool aEnabled);
   352     IMPORT_C TRect& LayerExtent(); 
   358     IMPORT_C TRect& LayerExtent(); 
   353     IMPORT_C void SetLayerExtent(TRect& aExtent); 
   359     IMPORT_C void SetLayerExtent(TRect& aExtent); 
   354 
   360 
       
   361     // window area
       
   362 public:
       
   363     
       
   364     /**
       
   365      * Sets shape. This affects only visible area calculation.
       
   366      */
       
   367     IMPORT_C void SetShape(const TPoint& aOrigin, const TRegion& aRegion);
       
   368     /**
       
   369      * Returns true if shape is different than display rect.
       
   370      */
       
   371     IMPORT_C TBool HasCustomShape() const;
       
   372     /**
       
   373      * Returns origin of window shape.
       
   374      */
       
   375     IMPORT_C TPoint ShapeOrigin() const;
       
   376     /**
       
   377      * Returns shape as region.
       
   378      */
       
   379     IMPORT_C const TRegion& ShapeRegion() const;
       
   380 
   355 public:
   381 public:
   356     
   382     
   357     void SetSize(const THuiRealSize& aSize, TInt aTransitionTime=0);    
   383     void SetSize(const THuiRealSize& aSize, TInt aTransitionTime=0);    
   358     TBool ChildSize(TInt aOrdinal, TSize& aSize);    
   384     TBool ChildSize(TInt aOrdinal, TSize& aSize);    
   359     TBool ChildPos(TInt aOrdinal, TPoint& aPos);
   385     TBool ChildPos(TInt aOrdinal, TPoint& aPos);
   400 public:    
   426 public:    
   401     IMPORT_C void StoreRenderBufferL();
   427     IMPORT_C void StoreRenderBufferL();
   402     void DrawStoredVisualRenderBuffer(TInt aCanvasDrawMode) const;
   428     void DrawStoredVisualRenderBuffer(TInt aCanvasDrawMode) const;
   403     void DrawStoredFullScreenRenderBuffer(TInt aCanvasDrawMode, CHuiGc& aGc) const;
   429     void DrawStoredFullScreenRenderBuffer(TInt aCanvasDrawMode, CHuiGc& aGc) const;
   404     IMPORT_C void FreeRenderBuffer();
   430     IMPORT_C void FreeRenderBuffer();
       
   431     IMPORT_C TRect CommandBufferCoverage(TInt aOrientation);
   405 
   432 
   406 protected:
   433 protected:
   407     virtual void VisualExtension(const TUid& aExtensionUid, TAny** aExtensionParams);
   434     virtual void VisualExtension(const TUid& aExtensionUid, TAny** aExtensionParams);
   408 
   435 
   409 private:
   436 private: