uiaccelerator_plat/alf_core_toolkit_api/inc/uiacceltk/HuiCanvasVisual.h
changeset 14 83d2d132aa58
parent 13 8f67d927ea57
child 19 f5bac0badc7e
--- a/uiaccelerator_plat/alf_core_toolkit_api/inc/uiacceltk/HuiCanvasVisual.h	Fri Mar 19 09:43:21 2010 +0200
+++ b/uiaccelerator_plat/alf_core_toolkit_api/inc/uiacceltk/HuiCanvasVisual.h	Fri Apr 16 15:56:24 2010 +0300
@@ -104,7 +104,13 @@
     /** Effect is excluded from parent (or grandparent) effect (if it has effect which is applied to children) */
     EHuiCanvasFlagExcludeFromParentEffect = 0x80,
     /** Hint flag which is used for optimizations. Tells if fade effect(s) exist in visual tree */
-    EHuiCanvasFlagExternalFadeExistsInsideVisualTree = 0x100 
+    EHuiCanvasFlagExternalFadeExistsInsideVisualTree = 0x100,
+    /** Flag to indicate whether to include this visual to visibility calculation */
+    EHuiCanvasFlagIncludeToVisibilityCalculation = 0x200,
+    /** Flag to indicate whether surface is invisible (based on visibility calculation) */
+    EHuiCanvasFlagSurfaceInvisible = 0x400,
+    /** Flag to indicate whether surface is visible (based on visibility calculation) */
+    EHuiCanvasFlagSurfaceVisible = 0x800
     };
 
 /**
@@ -344,6 +350,8 @@
         
     IMPORT_C TBool HasCommandBuffers(TBool aAskFromChildren = ETrue) const;
     
+    IMPORT_C TBool HasTransParentClear() const;
+    
     // to handle background surface that may be set to the Window
 public:    
     
@@ -352,6 +360,26 @@
     IMPORT_C TRect& LayerExtent(); 
     IMPORT_C void SetLayerExtent(TRect& aExtent); 
 
+    // window area
+public:
+    
+    /**
+     * Sets shape. This affects only visible area calculation.
+     */
+    IMPORT_C void SetShape(const TPoint& aOrigin, const TRegion& aRegion);
+    /**
+     * Returns true if shape is different than display rect.
+     */
+    IMPORT_C TBool HasCustomShape() const;
+    /**
+     * Returns origin of window shape.
+     */
+    IMPORT_C TPoint ShapeOrigin() const;
+    /**
+     * Returns shape as region.
+     */
+    IMPORT_C const TRegion& ShapeRegion() const;
+
 public:
     
     void SetSize(const THuiRealSize& aSize, TInt aTransitionTime=0);    
@@ -402,6 +430,7 @@
     void DrawStoredVisualRenderBuffer(TInt aCanvasDrawMode) const;
     void DrawStoredFullScreenRenderBuffer(TInt aCanvasDrawMode, CHuiGc& aGc) const;
     IMPORT_C void FreeRenderBuffer();
+    IMPORT_C TRect CommandBufferCoverage(TInt aOrientation);
 
 protected:
     virtual void VisualExtension(const TUid& aExtensionUid, TAny** aExtensionParams);