Further Setter/Getter public API removal from Dali::Actor
[platform/core/uifw/dali-demo.git] / examples / simple-text-label / simple-text-label-example.cpp
index 78e7db7..e3078e6 100644 (file)
@@ -55,10 +55,10 @@ public:
     stage.KeyEventSignal().Connect(this, &SimpleTextLabelExample::OnKeyEvent);
 
     mLabel = TextLabel::New( "A Quick Brown Fox Jumps Over The Lazy Dog" );
-    mLabel.SetName( "SimpleTextLabel" );
-    mLabel.SetAnchorPoint( AnchorPoint::CENTER );
-    mLabel.SetParentOrigin( ParentOrigin::CENTER );
-    mLabel.SetSize( 400.f, 400.f );
+    mLabel.SetProperty( Dali::Actor::Property::NAME, "SimpleTextLabel" );
+    mLabel.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
+    mLabel.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
+    mLabel.SetProperty( Actor::Property::SIZE, Vector2( 400.f, 400.f ) );
     mLabel.SetProperty( TextLabel::Property::MULTI_LINE, true );
     mLabel.SetProperty( TextLabel::Property::TEXT_COLOR, Color::BLACK );
     mLabel.SetBackgroundColor( Color::WHITE );
@@ -95,7 +95,7 @@ void RunTest( Application& application )
 }
 
 /** Entry point for Linux & Tizen applications */
-int main( int argc, char **argv )
+int DALI_EXPORT_API main( int argc, char **argv )
 {
   Application application = Application::New( &argc, &argv );