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. |
342 |
348 |
343 void RemoveChildCanvas(CHuiCanvasVisual* aChild); |
349 void RemoveChildCanvas(CHuiCanvasVisual* aChild); |
344 |
350 |
345 IMPORT_C TBool HasCommandBuffers(TBool aAskFromChildren = ETrue) const; |
351 IMPORT_C TBool HasCommandBuffers(TBool aAskFromChildren = ETrue) const; |
346 |
352 |
|
353 IMPORT_C TBool HasTransParentClear() const; |
|
354 |
347 // to handle background surface that may be set to the Window |
355 // to handle background surface that may be set to the Window |
348 public: |
356 public: |
349 |
357 |
350 IMPORT_C TBool LayerUsesAlphaFlag(); |
358 IMPORT_C TBool LayerUsesAlphaFlag(); |
351 IMPORT_C void SetLayerUsesAlphaFlag(TBool aEnabled); |
359 IMPORT_C void SetLayerUsesAlphaFlag(TBool aEnabled); |
352 IMPORT_C TRect& LayerExtent(); |
360 IMPORT_C TRect& LayerExtent(); |
353 IMPORT_C void SetLayerExtent(TRect& aExtent); |
361 IMPORT_C void SetLayerExtent(TRect& aExtent); |
|
362 |
|
363 // window area |
|
364 public: |
|
365 |
|
366 /** |
|
367 * Sets shape. This affects only visible area calculation. |
|
368 */ |
|
369 IMPORT_C void SetShape(const TPoint& aOrigin, const TRegion& aRegion); |
|
370 /** |
|
371 * Returns true if shape is different than display rect. |
|
372 */ |
|
373 IMPORT_C TBool HasCustomShape() const; |
|
374 /** |
|
375 * Returns origin of window shape. |
|
376 */ |
|
377 IMPORT_C TPoint ShapeOrigin() const; |
|
378 /** |
|
379 * Returns shape as region. |
|
380 */ |
|
381 IMPORT_C const TRegion& ShapeRegion() const; |
354 |
382 |
355 public: |
383 public: |
356 |
384 |
357 void SetSize(const THuiRealSize& aSize, TInt aTransitionTime=0); |
385 void SetSize(const THuiRealSize& aSize, TInt aTransitionTime=0); |
358 TBool ChildSize(TInt aOrdinal, TSize& aSize); |
386 TBool ChildSize(TInt aOrdinal, TSize& aSize); |
400 public: |
428 public: |
401 IMPORT_C void StoreRenderBufferL(); |
429 IMPORT_C void StoreRenderBufferL(); |
402 void DrawStoredVisualRenderBuffer(TInt aCanvasDrawMode) const; |
430 void DrawStoredVisualRenderBuffer(TInt aCanvasDrawMode) const; |
403 void DrawStoredFullScreenRenderBuffer(TInt aCanvasDrawMode, CHuiGc& aGc) const; |
431 void DrawStoredFullScreenRenderBuffer(TInt aCanvasDrawMode, CHuiGc& aGc) const; |
404 IMPORT_C void FreeRenderBuffer(); |
432 IMPORT_C void FreeRenderBuffer(); |
|
433 IMPORT_C TRect CommandBufferCoverage(TInt aOrientation); |
405 |
434 |
406 protected: |
435 protected: |
407 virtual void VisualExtension(const TUid& aExtensionUid, TAny** aExtensionParams); |
436 virtual void VisualExtension(const TUid& aExtensionUid, TAny** aExtensionParams); |
408 |
437 |
409 private: |
438 private: |