Further Setter/Getter public API removal from Dali::Actor 47/235447/1
authorRichard Huang <r.huang@samsung.com>
Tue, 2 Jun 2020 16:29:15 +0000 (17:29 +0100)
committerRichard Huang <r.huang@samsung.com>
Tue, 2 Jun 2020 16:29:33 +0000 (17:29 +0100)
Change-Id: Ie9c1c5e92be1ee000d88879147aefd6699366df6

automated-tests/src/dali-adaptor/dali-test-suite-utils/test-actor-utils.cpp
automated-tests/src/dali-adaptor/utc-Dali-PixelBuffer.cpp

index 38eb0b2..4387ba7 100644 (file)
@@ -88,7 +88,7 @@ Actor CreateRenderableActor( Image texture, const std::string& vertexShader, con
     renderer.SetTextures( textureSet );
 
     // Set actor to the size of the texture if set
-    actor.SetSize( texture.GetWidth(), texture.GetHeight() );
+    actor.SetProperty( Actor::Property::SIZE, Vector2( texture.GetWidth(), texture.GetHeight() ) );
   }
 
   return actor;
index 055d4be..9123b19 100644 (file)
@@ -242,7 +242,7 @@ int UtcDaliPixelBufferConvert(void)
     r.SetTextures(ts);
     Actor a = Actor::New();
     a.AddRenderer(r);
-    a.SetSize(10, 10);
+    a.SetProperty( Actor::Property::SIZE, Vector2(10, 10) );
     a.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
     Stage::GetCurrent().Add(a);