Further Setter/Getter public API removal from Dali::Actor
[platform/core/uifw/dali-demo.git] / examples / simple-text-label / simple-text-label-example.cpp
index 89c079d..e3078e6 100644 (file)
@@ -55,10 +55,10 @@ public:
     stage.KeyEventSignal().Connect(this, &SimpleTextLabelExample::OnKeyEvent);
 
     mLabel = TextLabel::New( "A Quick Brown Fox Jumps Over The Lazy Dog" );
-    mLabel.SetName( "SimpleTextLabel" );
-    mLabel.SetAnchorPoint( AnchorPoint::CENTER );
-    mLabel.SetParentOrigin( ParentOrigin::CENTER );
-    mLabel.SetSize( 400.f, 400.f );
+    mLabel.SetProperty( Dali::Actor::Property::NAME, "SimpleTextLabel" );
+    mLabel.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
+    mLabel.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
+    mLabel.SetProperty( Actor::Property::SIZE, Vector2( 400.f, 400.f ) );
     mLabel.SetProperty( TextLabel::Property::MULTI_LINE, true );
     mLabel.SetProperty( TextLabel::Property::TEXT_COLOR, Color::BLACK );
     mLabel.SetBackgroundColor( Color::WHITE );