equal
deleted
inserted
replaced
18 |
18 |
19 |
19 |
20 #ifndef HUIEFFECTABLE_H_ |
20 #ifndef HUIEFFECTABLE_H_ |
21 #define HUIEFFECTABLE_H_ |
21 #define HUIEFFECTABLE_H_ |
22 |
22 |
23 #include "HuiFxConstants.h" |
|
24 |
|
25 class THuiRealRect; |
23 class THuiRealRect; |
26 class CHuiFxEffect; |
24 class CHuiFxEffect; |
27 class CHuiGc; |
25 class CHuiGc; |
28 class CFbsBitmap; |
|
29 class CHuiTexture; |
|
30 |
26 |
31 class MHuiEffectable |
27 class MHuiEffectable |
32 { |
28 { |
33 public: |
29 public: |
34 virtual ~MHuiEffectable() { } |
30 virtual ~MHuiEffectable() { } |
39 // drawing can determine if effect as a whole will hide the effected visual or not |
35 // drawing can determine if effect as a whole will hide the effected visual or not |
40 virtual void EffectSetOpacityAdditive(TReal32 aOpacity, TBool aReplace)=0; |
36 virtual void EffectSetOpacityAdditive(TReal32 aOpacity, TBool aReplace)=0; |
41 virtual void EffectDrawSelf( CHuiGc &aGc, const TRect & aDisplayRect) const=0; |
37 virtual void EffectDrawSelf( CHuiGc &aGc, const TRect & aDisplayRect) const=0; |
42 virtual THuiRealRect EffectDisplayRect() const __SOFTFP=0; |
38 virtual THuiRealRect EffectDisplayRect() const __SOFTFP=0; |
43 virtual void SetLoadingEffect(TBool aLoading)=0; |
39 virtual void SetLoadingEffect(TBool aLoading)=0; |
44 virtual void EffectSetSource( THuiFxVisualSrcType aSource )=0; |
40 virtual void EffectSetSource( TBool aIsInput1 )=0; |
45 virtual THuiFxVisualSrcType EffectGetSource() const=0; |
41 virtual TBool EffectGetSource() const=0; |
46 virtual void SetExternalTexture(CHuiTexture* aTexture)=0; |
|
47 virtual CHuiTexture* ExternalTexture()=0; |
|
48 virtual TBool EffectReadyToDrawNextFrame() const = 0; |
42 virtual TBool EffectReadyToDrawNextFrame() const = 0; |
49 }; |
43 }; |
50 |
44 |
51 #endif |
45 #endif |