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=c609990304512108b57b8f4cefd47adb5d618789;hb=d69dd91661d605db8390a53b0c6365eeb282b71d;hpb=f4c1e7f52d49c3ce033b9ee4c3c7414b06a22d45 diff --git a/dali-toolkit/internal/visuals/text/text-visual.h b/dali-toolkit/internal/visuals/text/text-visual.h index c609990..f3d9516 100644 --- a/dali-toolkit/internal/visuals/text/text-visual.h +++ b/dali-toolkit/internal/visuals/text/text-visual.h @@ -18,14 +18,10 @@ * */ -// EXTERNAL INCLUDES -#include - // INTERNAL INCLUDES #include -#include +#include #include -#include namespace Dali { @@ -79,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; + virtual float GetHeightForWidth( float width ) const; /** * @copydoc Visual::Base::GetNaturalSize() */ - virtual void SetSize( const Vector2& size ); - - /** - * @copydoc Visual::Base::GetNaturalSize() - */ - virtual void GetNaturalSize( Vector2& naturalSize ) const; + virtual void GetNaturalSize( Vector2& naturalSize ); /** * @copydoc Visual::Base::CreatePropertyMap() @@ -124,9 +109,9 @@ protected: // from Visual::Base /** - * @copydoc Visual::Base::DoInitialize() + * @copydoc Visual::Base::DoSetProperties() */ - virtual void DoInitialize( Actor& actor, const Property::Map& propertyMap ); + virtual void DoSetProperties( const Property::Map& propertyMap ); /** * @copydoc Visual::Base::DoSetOnStage() @@ -139,43 +124,34 @@ protected: virtual void DoSetOffStage( Actor& actor ); /** - *@copydoc Visual::Base::DoSetProperty - */ - virtual void DoSetProperty( Dali::Property::Index index, const Dali::Property::Value& propertyValue ); - - /** - * @copydoc Visual::Base::DoGetProperty + * @copydoc Visual::Base::OnSetTransform */ - virtual Dali::Property::Value DoGetProperty( Dali::Property::Index index ); + virtual void OnSetTransform(); 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. + * 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 */ - void RenderText(); + void SetProperty( Dali::Property::Index index, const Dali::Property::Value& propertyValue ); /** - * @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. - Actor 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