|
1 /* |
|
2 * Copyright (c) 2008 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef HUIFXGROUPLAYER_H_ |
|
21 #define HUIFXGROUPLAYER_H_ |
|
22 |
|
23 #include "HuiFxLayer.h" |
|
24 |
|
25 class CHuiFxGroupLayer: public CHuiFxLayer |
|
26 { |
|
27 public: |
|
28 IMPORT_C ~CHuiFxGroupLayer(); |
|
29 IMPORT_C static CHuiFxGroupLayer* NewL(TBool aIsRoot = EFalse); |
|
30 IMPORT_C TBool PrepareDrawL(CHuiFxEngine& aEngine); |
|
31 IMPORT_C void Draw(CHuiFxEngine& aEngine, CHuiGc& aGc, CHuiFxRenderbuffer& aTarget, CHuiFxRenderbuffer& aSource); |
|
32 IMPORT_C void AddLayerL(const CHuiFxLayer* aLayer); // takes ownership |
|
33 IMPORT_C void AdvanceTime(TReal32 aElapsedTime); |
|
34 IMPORT_C TBool Changed() const; |
|
35 |
|
36 IMPORT_C TBool VisualArea( TRect& aRect ); |
|
37 IMPORT_C TBool Margin( TMargins &aMargin ); |
|
38 IMPORT_C void ApplyMargin( TRect &aRect ); |
|
39 |
|
40 // effect cache methods |
|
41 IMPORT_C CHuiFxGroupLayer *CloneL() const; |
|
42 IMPORT_C void SetExtRect( TRect *aExtRect ); |
|
43 IMPORT_C void SetVisual( CHuiVisual *aVisual ); |
|
44 IMPORT_C void SetVisual( MHuiEffectable *aVisual ); |
|
45 |
|
46 TBool IsAnimated() const; |
|
47 TBool IsTransformed() const; |
|
48 TBool IsFiltered() const; |
|
49 TBool IsSemitransparent() const; |
|
50 |
|
51 TInt LayerCount() const; |
|
52 CHuiFxLayer& Layer(TInt aIndex) const; |
|
53 void FxmlVisualInputs(RArray<THuiFxVisualSrcType> &aArray); |
|
54 virtual void EnableMarginApplyChildren(TBool aEnable); |
|
55 protected: |
|
56 IMPORT_C CHuiFxGroupLayer(); |
|
57 IMPORT_C void ConstructL(TBool aIsRoot); |
|
58 private: |
|
59 RPointerArray<CHuiFxLayer> iLayers; |
|
60 TBool iIsRoot; |
|
61 TRect iBackbufferRect; |
|
62 }; |
|
63 |
|
64 #endif /*HUIFXGROUPLAYER_H_*/ |