X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali-toolkit%2Finternal%2Fvisuals%2Fvisual-base-impl.h;h=f496467c4e82bfccec62f6f4f5de493de3920982;hb=80ab4492a0df45c146d9ad97daef3c522bb02e2c;hp=306f2d9e9e73213e6bc634e146932510a7ccf657;hpb=243e57768d13ec8152fb2b2f6c3b1eae1b91b338;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/visual-base-impl.h b/dali-toolkit/internal/visuals/visual-base-impl.h index 306f2d9..f496467 100644 --- a/dali-toolkit/internal/visuals/visual-base-impl.h +++ b/dali-toolkit/internal/visuals/visual-base-impl.h @@ -22,6 +22,7 @@ #include #include #include +#include #include // INTERNAL INCLUDES @@ -84,22 +85,22 @@ public: /** * @copydoc Toolkit::Visual::Base::SetSize */ - virtual void SetSize( const Vector2& size ); + void SetTransformAndSize( const Property::Map& transform, Size controlSize ); /** - * @copydoc Toolkit::Visual::Base::GetSize + * @copydoc Toolkit::Visual::Base::GetHeightForWidth */ - const Vector2& GetSize() const; + virtual float GetHeightForWidth( float width ); /** - * @copydoc Toolkit::Visual::Base::GetHeightForWidth + * @copydoc Toolkit::Visual::Base::GetWidthForHeight */ - virtual float GetHeightForWidth( float width ) const; + virtual float GetWidthForHeight( float height ); /** * @copydoc Toolkit::Visual::Base::GetNaturalSize */ - virtual void GetNaturalSize( Vector2& naturalSize ) const; + virtual void GetNaturalSize( Vector2& naturalSize ); /** * @copydoc Toolkit::Visual::Base::SetDepthIndex @@ -157,6 +158,11 @@ public: */ Dali::Property::Value GetProperty( Dali::Property::Index index ); + /** + * Gets currently staged renderer, or an empty handle if not staged + */ + Renderer GetRenderer(); + protected: /** @@ -187,9 +193,10 @@ protected: virtual void DoSetProperties( const Property::Map& propertyMap ) = 0; /** - * @brief Called when transform property changes + * @brief Called when transform or control size changes + * ( Of use to SVG and Text visuals ) */ - virtual void OnSetTransform(){} + virtual void OnSetTransform() = 0; protected: @@ -225,24 +232,6 @@ protected: */ bool IsFromCache() const; -protected: - /** - * @brief Called by SetProperty(). To be overriden by derived clases in order to set properties. - * - * @param [in] index The index of the property. - * @param [in] propertyValue The new value of the property. - */ - virtual void DoSetProperty( Dali::Property::Index index, const Dali::Property::Value& propertyValue ) = 0; - - /** - * @brief Called by GetProperty(). To be overriden by derived classes in order to retrieve properties. - * - * @param [in] index The index of the property. - * - * @return The property value. - */ - virtual Dali::Property::Value DoGetProperty( Dali::Property::Index index ) = 0; - private: // Undefined