Added Property for the rendering back-end
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / controls / text-controls / text-label-impl.h
index 3ea01f2..073d1ac 100644 (file)
@@ -22,6 +22,7 @@
 #include <dali-toolkit/public-api/controls/control-impl.h>
 #include <dali-toolkit/public-api/controls/text-controls/text-label.h>
 #include <dali-toolkit/public-api/text/text-controller.h>
+#include <dali-toolkit/public-api/text/rendering/text-renderer.h>
 
 namespace Dali
 {
@@ -35,7 +36,7 @@ namespace Internal
 /**
  * @brief A control which renders a short text string.
  */
-class TextLabel : public Control
+class TextLabel : public Control, public Text::ControlInterface
 {
 public:
 
@@ -51,11 +52,6 @@ public:
    */
   static Toolkit::TextLabel New();
 
-  /**
-   * @copydoc Dali::Toollkit::TextLabel::SetRenderer()
-   */
-  void SetRenderer( Text::RendererPtr renderer );
-
   // Properties
 
   /**
@@ -86,19 +82,22 @@ private: // From Control
    */
   virtual void OnRelayout( const Vector2& size, ActorSizeContainer& container );
 
-private: // Implementation
+  /**
+   * @copydoc Control::GetNaturalSize()
+   */
+  virtual Vector3 GetNaturalSize();
 
   /**
-   * Helper for SetProperty.
-   * @param[in] text The new "text" property value.
+   * @copydoc Control::GetHeightForWidth()
    */
-  void SetText( const std::string& text );
+  virtual float GetHeightForWidth( float width );
 
   /**
-   * Helper for SetProperty.
-   * @param[in] multiLine The new "multi-line" property value.
+   * @copydoc Text::ControlInterface::RequestTextRelayout()
    */
-  void SetMultiLine( bool multiLine );
+  virtual void RequestTextRelayout();
+
+private: // Implementation
 
   /**
    * Construct a new TextLabel.
@@ -120,6 +119,8 @@ private: // Data
 
   Text::ControllerPtr mController;
   Text::RendererPtr mRenderer;
+
+  unsigned int mRenderingBackend;
 };
 
 } // namespace Internal