Add descriptions and example codes
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / public-api / controls / text-controls / text-label.cpp
index e647d8a..7a61615 100644 (file)
@@ -27,15 +27,19 @@ namespace Dali
 namespace Toolkit
 {
 
-const std::string TextLabel::RENDERING_BACKEND_PROPERTY_NAME("rendering-backend");
-const std::string TextLabel::TEXT_PROPERTY_NAME("text");
-const std::string TextLabel::MULTI_LINE_PROPERTY_NAME("multi-line");
-
 TextLabel TextLabel::New()
 {
   return Internal::TextLabel::New();
 }
 
+TextLabel TextLabel::New( const std::string& text )
+{
+  TextLabel label = Internal::TextLabel::New();
+  label.SetProperty( TextLabel::Property::TEXT, text );
+
+  return label;
+}
+
 TextLabel::TextLabel()
 {
 }