X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Ftext%2Ftext-visual.h;h=f3d9516c05f0f2be3a008e830ccfc87fe9bd5824;hp=dd1abf6641f6e9928466b43e843449964e520c78;hb=d69dd91661d605db8390a53b0c6365eeb282b71d;hpb=4be17ce4114c629f694703381a0d09cca895850d diff --git a/dali-toolkit/internal/visuals/text/text-visual.h b/dali-toolkit/internal/visuals/text/text-visual.h index dd1abf6..f3d9516 100644 --- a/dali-toolkit/internal/visuals/text/text-visual.h +++ b/dali-toolkit/internal/visuals/text/text-visual.h @@ -18,13 +18,9 @@ * */ -// EXTERNAL INCLUDES -#include -#include - // INTERNAL INCLUDES #include -#include +#include #include namespace Dali @@ -84,12 +80,7 @@ public: // from Visual::Base /** * @copydoc Visual::Base::GetHeightForWidth() */ - float GetHeightForWidth( float width ) const; - - /** - * @copydoc Visual::Base::GetNaturalSize() - */ - virtual void SetSize( const Vector2& size ); + virtual float GetHeightForWidth( float width ) const; /** * @copydoc Visual::Base::GetNaturalSize() @@ -133,32 +124,34 @@ protected: virtual void DoSetOffStage( Actor& actor ); /** - *@copydoc Visual::Base::DoSetProperty + * @copydoc Visual::Base::OnSetTransform */ - virtual void DoSetProperty( Dali::Property::Index index, const Dali::Property::Value& propertyValue ); + virtual void OnSetTransform(); + +private: /** - * @copydoc Visual::Base::DoGetProperty + * Set the individual property to the given value + * @param[in] index The index key used to reference this value within the initial + * property map. + * @param[in] propertyValue The value to set */ - virtual Dali::Property::Value DoGetProperty( Dali::Property::Index index ); + void SetProperty( Dali::Property::Index index, const Dali::Property::Value& propertyValue ); -private: + /** + * @brief Creates the text's renderer. + */ + void CreateRenderer(); /** - * @brief Render view, create and attach actor(s) to this TextView. - * @todo In a next patch a new text render back-end won't add extra actors. + * @brief Destroys the text's renderer. */ - void RenderText(); + void DestroyRenderer(); private: - Text::ControllerPtr mController; ///< The text's controller. - WeakHandle mSelf; - - Text::RendererPtr mRenderer; - Actor mRenderableActor; - - int mRenderingBackend; - bool mHasBeenStaged : 1; + Text::ControllerPtr mController; ///< The text's controller. + Text::TypesetterPtr mTypesetter; ///< The text's typesetter. + WeakHandle mControl; ///< The control where the renderer is added. }; } // namespace Internal