Further Setter/Getter public API removal from Dali::Actor
[platform/core/uifw/dali-demo.git] / examples / image-policies / image-policies-example.cpp
index f213236..8860ef0 100644 (file)
@@ -398,7 +398,7 @@ class ImagePolicies: public ConnectionTracker
     mTable.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
     mTable.SetResizePolicy( ResizePolicy::SIZE_RELATIVE_TO_PARENT, Dimension::ALL_DIMENSIONS );
     Vector3 offset( 0.9f, 0.90f, 0.0f );
-    mTable.SetSizeModeFactor( offset );
+    mTable.SetProperty( Actor::Property::SIZE_MODE_FACTOR, offset );
     mTable.SetFitHeight( TableRowPlacement::NEXT_BUTTON );
     mTable.SetFitHeight( TableRowPlacement::LOADING_STATUS );
     view.Add( mTable );
@@ -416,8 +416,8 @@ class ImagePolicies: public ConnectionTracker
     mNextButton.SetProperty( Button::Property::DISABLED_UNSELECTED_BACKGROUND_VISUAL, LOADING_IMAGE );
     mNextButton.SetProperty( Button::Property::DISABLED_SELECTED_BACKGROUND_VISUAL, NEXT_BUTTON_DISABLED_IMAGE );
     mNextButton.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::BOTTOM_CENTER );
-    mNextButton.SetY( -50.0f );
-    mNextButton.SetSize( 100.0f, 100.0f );
+    mNextButton.SetProperty( Actor::Property::POSITION_Y,  -50.0f );
+    mNextButton.SetProperty( Actor::Property::SIZE, Vector2( 100.0f, 100.0f ) );
     mNextButton.ClickedSignal().Connect( this, &ImagePolicies::ChangeImageClicked );
     mTable.AddChild( mNextButton, TableView::CellPosition( TableRowPlacement::NEXT_BUTTON, 0 ) );
     mTable.SetCellPadding( Vector2( 2.0f, 2.0f ) );