Further Setter/Getter public API removal from Dali::Actor
[platform/core/uifw/dali-demo.git] / examples / super-blur-view / super-blur-view-example.cpp
index d90b248..a659a2e 100644 (file)
@@ -56,9 +56,9 @@ private:
     stage.KeyEventSignal().Connect( this, &SuperBlurViewExample::OnKeyEvent );
 
     mSuperBlurView = SuperBlurView::New( DEFAULT_BLUR_LEVEL );
-    mSuperBlurView.SetParentOrigin( ParentOrigin::CENTER );
-    mSuperBlurView.SetAnchorPoint( AnchorPoint::CENTER );
-    mSuperBlurView.SetSize( 800, 1280 );
+    mSuperBlurView.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
+    mSuperBlurView.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
+    mSuperBlurView.SetProperty( Actor::Property::SIZE, Vector2( 800, 1280 ) );
     mSuperBlurView.SetProperty( SuperBlurView::Property::IMAGE_URL, BACKGROUND_IMAGE );
     stage.Add( mSuperBlurView );
 
@@ -69,9 +69,9 @@ private:
     mClearAnimation.AnimateTo( Property(mSuperBlurView, mSuperBlurView.GetBlurStrengthPropertyIndex()), 0.0f );
 
     mPushButton = PushButton::New();
-    mPushButton.SetParentOrigin( ParentOrigin::BOTTOM_CENTER );
-    mPushButton.SetAnchorPoint( AnchorPoint::BOTTOM_CENTER );
-    mPushButton.SetProperty( Button::Property::LABEL_TEXT, "Blur" );
+    mPushButton.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::BOTTOM_CENTER );
+    mPushButton.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::BOTTOM_CENTER );
+    mPushButton.SetProperty( Button::Property::LABEL, "Blur" );
     mPushButton.PressedSignal().Connect( this, &SuperBlurViewExample::OnButtonPressed );
     mPushButton.ReleasedSignal().Connect( this, &SuperBlurViewExample::OnButtonReleased );
     stage.Add( mPushButton );