X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fvisual-base-impl.h;h=f496467c4e82bfccec62f6f4f5de493de3920982;hb=refs%2Fchanges%2F42%2F104842%2F3;hp=432a3f224dce9429e76beae11f3f5311ca3dca2f;hpb=97d688bcdfb692dd2ff535c1965077dd747cfcf6;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 432a3f2..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: /** @@ -186,6 +192,12 @@ protected: */ virtual void DoSetProperties( const Property::Map& propertyMap ) = 0; + /** + * @brief Called when transform or control size changes + * ( Of use to SVG and Text visuals ) + */ + virtual void OnSetTransform() = 0; + protected: /** @@ -220,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