X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Factors%2Fimage-actor-impl.h;h=a9e2f6fac67dcde1f9808bafdf42e4beba7d5168;hb=8b0b50bb14b39e34a119c573cad63fd03c96b09a;hp=654e7fe09b253cec17d6b1b347ca0e173490b17c;hpb=69c3adda75c264d2b0aa452d30fdccaa47bd3034;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/actors/image-actor-impl.h b/dali/internal/event/actors/image-actor-impl.h index 654e7fe..a9e2f6f 100644 --- a/dali/internal/event/actors/image-actor-impl.h +++ b/dali/internal/event/actors/image-actor-impl.h @@ -21,6 +21,7 @@ // INTERNAL INCLUDES #include #include +#include #include #include #include @@ -99,6 +100,26 @@ public: void ClearPixelArea(); /** + * @copydoc Dali::ImageActor::SetStyle() + */ + void SetStyle( Dali::ImageActor::Style style ); + + /** + * @copydoc Dali::ImageActor::GetStyle() + */ + Dali::ImageActor::Style GetStyle() const; + + /** + * @copydoc Dali::ImageActor::SetNinePatchBorder() + */ + void SetNinePatchBorder( const Vector4& border ); + + /** + * @copydoc Dali::ImageActor::GetNinePatchBorder() + */ + Vector4 GetNinePatchBorder() const; + + /** * @copydoc Dali::RenderableActor::SetSortModifier() */ void SetSortModifier(float modifier); @@ -181,13 +202,6 @@ public: void GetFilterMode( FilterMode::Type& minFilter, FilterMode::Type& magFilter ) const; /** - * @brief Allows this ImageActor to respond to the event that the a shader effect's uniform has updated - * - * @param[in] uniform The shader effect uniform that has been updated - */ - void EffectUniformUpdated( const ShaderEffect::Uniform& uniform ); - - /** * @brief Allows this ImageActor to respond to the eventa that the shader effect's effect texture has been changed */ void EffectImageUpdated(); @@ -289,22 +303,30 @@ private: Vector2 CalculateNaturalSize() const; /** - * @copydoc Dali::Actor::OnRelayout() + * Update the grid geometry. + */ + void UpdateGeometry(); + + /** + * Update the texture rect uniform */ - virtual void OnRelayout( const Vector2& size, RelayoutContainer& container ); + void UpdateTexureRect(); private: - ShaderEffectPtr mShaderEffect; ///< Optional referenced shader effect - RendererPtr mRenderer; ///< The renderer used to render the image - PixelArea mPixelArea; ///< The pixel area of the image to render - Vector4 mBlendColor; ///< The blend color for this ImageActor - int mRendererIndex; ///< The index location of mRenderer - size_t mTextureIndex; ///< The texture index for this ImageActor's texture - size_t mEffectTextureIndex; ///< The texture index for this ImageActor's effect texture - FilterMode::Type mMinFilter; ///< The minification filter currently set - FilterMode::Type mMagFilter; ///< The magnification filter currently set - bool mIsPixelAreaSet; ///< Flag indicating if the pixel area has been set + ShaderEffectPtr mShaderEffect; ///< Optional referenced shader effect + RendererPtr mRenderer; ///< The renderer used to render the image + PixelArea mPixelArea; ///< The pixel area of the image to render + Vector4 mBlendColor; ///< The blend color for this ImageActor + Vector4 mNinePatchBorder; ///< Nine-patch not supported, but this is used to store what is set so it can be returned for backwards compatibility. + Uint16Pair mGridSize; ///< The geometry grid size + int mRendererIndex; ///< The index location of mRenderer + size_t mTextureIndex; ///< The texture index for this ImageActor's texture + size_t mEffectTextureIndex; ///< The texture index for this ImageActor's effect texture + FilterMode::Type mMinFilter; ///< The minification filter currently set + FilterMode::Type mMagFilter; ///< The magnification filter currently set + Dali::ImageActor::Style mStyle; ///< The style set by SetStyle. Not used internally, only used to store what is set so it can be returned for backwards compatibility. + bool mIsPixelAreaSet; ///< Flag indicating if the pixel area has been set }; } // namespace Internal