Fix to use SpringData::Getduration as method 60/323860/1
authorSeungho Baek <sbsh.baek@samsung.com>
Thu, 8 May 2025 07:03:29 +0000 (16:03 +0900)
committerSeungho Baek <sbsh.baek@samsung.com>
Thu, 8 May 2025 07:03:29 +0000 (16:03 +0900)
Change-Id: I73e1b1c1cfb4a9e441ed429df947f5f032185049
Signed-off-by: Seungho Baek <sbsh.baek@samsung.com>
examples/spring-alphafunction/spring-alphafunction-example.cpp

index d79fcc6ebdef1eeb1ecbe58eb10234624a2b7683..05aadf7922b4c7f1684de1db240aab196affdd62 100644 (file)
@@ -110,17 +110,17 @@ public:
     animation.SetLooping(true);
     animation.Play();
 
-    animation = Animation::New(SpringData::GetDuration({100.0f, 10.0f, 1.0f}));  // Set the longest duration.
+    animation = Animation::New(SpringData{100.0f, 10.0f, 1.0f}.GetDuration());  // Set the longest duration.
     animation.AnimateTo(Dali::Property(mS100D10M1, Dali::Actor::Property::POSITION_X), 500.0f, Dali::AlphaFunction({100.0f, 10.0f, 1.0f}));
     animation.SetLooping(true);
     animation.Play();
 
-    animation = Animation::New(SpringData::GetDuration({4420.0f, 20.8f, 1.0f}));  // Set the longest duration.
+    animation = Animation::New(SpringData({4420.0f, 20.8f, 1.0f}).GetDuration());  // Set the longest duration.
     animation.AnimateTo(Dali::Property(mS4420D20_8M1, Dali::Actor::Property::POSITION_X), 500.0f, Dali::AlphaFunction({4420.0f, 20.8f, 1.0f}));
     animation.SetLooping(true);
     animation.Play();
 
-    animation = Animation::New(SpringData::GetDuration({1000.0f, 10.0f, 10.0f}));  // Set the longest duration.
+    animation = Animation::New(SpringData({1000.0f, 10.0f, 10.0f}).GetDuration());  // Set the longest duration.
     animation.AnimateTo(Dali::Property(mS1000D10M10, Dali::Actor::Property::POSITION_X), 500.0f, Dali::AlphaFunction({1000.0f, 10.0f, 10.0f}));
     animation.SetLooping(true);
     animation.Play();