X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Ftext%2Ftext-visual.h;h=f3d9516c05f0f2be3a008e830ccfc87fe9bd5824;hb=f8b44eeacea1fc7c96d84eb3754d7b4a4884b49f;hp=c2a61940427cadd02677010a76e2587145431a58;hpb=406208364fe0ee31f31f475ba7ee7709e56d3e27;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/text/text-visual.h b/dali-toolkit/internal/visuals/text/text-visual.h index c2a6194..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,17 +80,12 @@ 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() */ - virtual void GetNaturalSize( Vector2& naturalSize ) const; + virtual void GetNaturalSize( Vector2& naturalSize ); /** * @copydoc Visual::Base::CreatePropertyMap() @@ -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