#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
{
/**
* @brief A control which renders a short text string.
*/
-class TextLabel : public Control
+class TextLabel : public Control, public Text::ControlInterface
{
public:
*/
static Toolkit::TextLabel New();
- /**
- * @copydoc Dali::Toollkit::TextLabel::SetRenderer()
- */
- void SetRenderer( Text::RendererPtr renderer );
-
// Properties
/**
*/
virtual float GetHeightForWidth( float width );
-private: // Implementation
-
/**
- * Helper for SetProperty.
- * @param[in] text The new "text" property value.
+ * @copydoc Text::ControlInterface::RequestTextRelayout()
*/
- void SetText( const std::string& text );
+ virtual void RequestTextRelayout();
- /**
- * Helper for SetProperty.
- * @param[in] multiLine The new "multi-line" property value.
- */
- void SetMultiLine( bool multiLine );
+private: // Implementation
/**
* Construct a new TextLabel.
Text::ControllerPtr mController;
Text::RendererPtr mRenderer;
+
+ unsigned int mRenderingBackend;
};
} // namespace Internal