Renamed TextVisual::DoSetProperty to SetProperty
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / visuals / text / text-visual.h
index c609990..f3d9516 100644 (file)
  *
  */
 
-// EXTERNAL INCLUDES
-#include <dali/public-api/common/intrusive-ptr.h>
-
 // INTERNAL INCLUDES
 #include <dali-toolkit/internal/visuals/visual-base-impl.h>
-#include <dali-toolkit/internal/text/rendering/text-renderer.h>
+#include <dali-toolkit/internal/text/rendering/text-typesetter.h>
 #include <dali-toolkit/internal/text/text-controller.h>
-#include <dali-toolkit/internal/text/text-scroller.h>
 
 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<Actor>   mControl;    ///< The control where the renderer is added.
 };
 
 } // namespace Internal