Further Setter/Getter public API removal from Dali::Actor
[platform/core/uifw/dali-demo.git] / examples / rendering-line / rendering-line.cpp
index 1bbaf84..4006ac3 100644 (file)
@@ -168,11 +168,11 @@ public:
     Stage stage = Stage::GetCurrent();
     Size size = stage.GetSize() * 0.25f;
     mActor = Actor::New();
-    mActor.SetAnchorPoint( AnchorPoint::CENTER );
-    mActor.SetParentOrigin( ParentOrigin::CENTER );
-    mActor.SetPosition( Vector3( 0.0f, 0.0f, 0.0f ) );
-    mActor.SetColor( Color::BLACK );
-    mActor.SetSize( Vector3( size.x, size.x, size.x ) );
+    mActor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
+    mActor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
+    mActor.SetProperty( Actor::Property::POSITION, Vector3( 0.0f, 0.0f, 0.0f ) );
+    mActor.SetProperty( Actor::Property::COLOR, Color::BLACK );
+    mActor.SetProperty( Actor::Property::SIZE, Vector3( size.x, size.x, size.x ) );
     mActor.AddRenderer( mRenderer );
     stage.Add( mActor );
   }