X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Ftext%2Ftext-visual.h;h=777729b0caccfb2781b39449a377b198ece7ac81;hb=ee431c9e2b342243f9e0e2b6bafca7505d321457;hp=47289d1462899888c8337b098a97f5a7e6b00db5;hpb=5b71e5d95f63c4aad74ffefe112fd13813cd90dc;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 47289d1..777729b 100644 --- a/dali-toolkit/internal/visuals/text/text-visual.h +++ b/dali-toolkit/internal/visuals/text/text-visual.h @@ -18,15 +18,10 @@ * */ -// EXTERNAL INCLUDES -#include -#include - // INTERNAL INCLUDES #include -#include +#include #include -#include namespace Dali { @@ -80,28 +75,17 @@ public: */ static TextVisualPtr New( VisualFactoryCache& factoryCache ); - /** - * @brief Sets the text control interface which is needed to communicate with a control. - * @param[in] controlInterface Pointer to the control-interface. - */ - void SetTextControlInterface( Text::ControlInterface* controlInterface ); - 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() @@ -149,34 +133,27 @@ protected: */ virtual Dali::Property::Value DoGetProperty( Dali::Property::Index index ); -private: - /** - * @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. + * @copydoc Visual::Base::OnSetTransform */ - void RenderText(); + virtual void OnSetTransform(); + +private: /** - * @brief Stops the text auto scroll. + * @brief Creates the text's renderer. */ - void StopTextAutoScrolling(); + void CreateRenderer(); /** - * @brief Set up Autoscrolling. + * @brief Destroys the text's renderer. */ - void SetUpAutoScrolling(); + void DestroyRenderer(); private: - Text::ControllerPtr mController; ///< The text's controller. - WeakHandle mSelf; - - Text::RendererPtr mRenderer; - Text::TextScrollerPtr mTextScroller; - 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