class MHuiShadowedTexture |
MHuiShadowedTexture is an interface for textures that support dropshadows that are generated out of the texture's content.
Public Member Functions | |
---|---|
~MHuiShadowedTexture () | |
void | EnableShadow ( TBool ) |
TBool | GetShadowTexture ( THuiTextureHandle &) |
TBool | IsShadowEnabled () |
void | EnableShadow | ( | TBool | aEnable = ETrue | ) | [pure virtual] |
Enables or disables the generation of a shadow when a new image is uploaded. Note that when the shadow is enabled, a new texture image needs to be uploaded before the shadow is actually generated.
TBool aEnable = ETrue | Enables or disables shadow generation and usage. |
TBool | GetShadowTexture | ( | THuiTextureHandle & | aHandle | ) | const [pure virtual] |
Gets a handle to the shadow texture. The handle can be a null handle if the shadow is disabled or has not been generated yet.
Does not return the handle as a return value because that would make it too easy to construct a THuiImage directly out of the handle, and cause a crash since the THuiImage would then reference a temporary object.
THuiTextureHandle & aHandle | Handle to the shadow texture is returned here. |
TBool | IsShadowEnabled | ( | ) | const [pure virtual] |
Determines if shadow generation has been enabled.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.