Further Setter/Getter public API removal from Dali::Actor
[platform/core/uifw/dali-demo.git] / examples / bloom-view / bloom-view-example.cpp
index dd64493..8859b94 100644 (file)
@@ -77,48 +77,48 @@ public:
     Vector2 viewSize( stageSize );
 
     mRootActor = Actor::New();
-    mRootActor.SetParentOrigin( ParentOrigin::CENTER );
-    mRootActor.SetSize( stageSize );
+    mRootActor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
+    mRootActor.SetProperty( Actor::Property::SIZE, stageSize );
     stage.Add( mRootActor );
 
     // Create the object that will perform the blooming work
     mBloomView = Dali::Toolkit::BloomView::New();
-    mBloomView.SetParentOrigin( ParentOrigin::CENTER );
-    mBloomView.SetSize( viewSize );
+    mBloomView.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
+    mBloomView.SetProperty( Actor::Property::SIZE,  viewSize );
     mRootActor.Add( mBloomView );
     mBloomView.Activate();
 
     Layer backgroundLayer = Layer::New();
-    backgroundLayer.SetSize( viewSize );
-    backgroundLayer.SetParentOrigin( ParentOrigin::CENTER );
+    backgroundLayer.SetProperty( Actor::Property::SIZE,  viewSize );
+    backgroundLayer.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
     mBloomView.Add( backgroundLayer );
 
     // Create the background image
     ImageView backgroundImage = ImageView::New( BACKGROUND_IMAGE_PATH );
-    backgroundImage.SetParentOrigin( ParentOrigin::CENTER );
-    backgroundImage.SetSize( viewSize );
+    backgroundImage.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
+    backgroundImage.SetProperty( Actor::Property::SIZE,  viewSize );
     backgroundLayer.Add( backgroundImage );
 
     Layer foregroundLayer = Layer::New();
-    foregroundLayer.SetSize( viewSize );
-    foregroundLayer.SetParentOrigin( ParentOrigin::CENTER );
+    foregroundLayer.SetProperty( Actor::Property::SIZE,  viewSize );
+    foregroundLayer.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
     mBloomView.Add( foregroundLayer );
 
     // Create visible actors
     mObjectRootActor = Actor::New();
-    mObjectRootActor.SetParentOrigin( ParentOrigin::CENTER );
-    mObjectRootActor.SetSize( viewSize );
+    mObjectRootActor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
+    mObjectRootActor.SetProperty( Actor::Property::SIZE,  viewSize );
     foregroundLayer.Add( mObjectRootActor );
 
     ImageView imageView = ImageView::New( UI_DIFFUSE_IMAGE );
-    imageView.SetParentOrigin( ParentOrigin::CENTER );
-    imageView.SetSize( viewSize );
+    imageView.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
+    imageView.SetProperty( Actor::Property::SIZE,  viewSize );
     mObjectRootActor.Add( imageView );
 
     imageView = ImageView::New( UI_DIFFUSE_IMAGE );
-    imageView.SetParentOrigin( ParentOrigin::CENTER );
-    imageView.SetSize( stageSize * 0.5f );
-    imageView.SetPosition( 0.0f, 0.0f, 100.0f );
+    imageView.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
+    imageView.SetProperty( Actor::Property::SIZE, stageSize * 0.5f );
+    imageView.SetProperty( Actor::Property::POSITION, Vector3( 0.0f, 0.0f, 100.0f ) );
     mObjectRootActor.Add( imageView );
 
     AnimateBloomView();
@@ -210,7 +210,7 @@ private:
   BloomView mBloomView;
 };
 
-int main(int argc, char **argv)
+int DALI_EXPORT_API main(int argc, char **argv)
 {
   Application application = Application::New( &argc, &argv );