X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Fsimple-text-renderer%2Fsimple-text-renderer-example.cpp;h=8135fd3252839a3b50ef033c913016b159352b3c;hb=708a5e016f973900a20a885914d3b70741fa80d9;hp=4180c2bc5aa4747b55025cb8382eb8b581821010;hpb=2cfc5c6f17060aacaeab73146c9218ea7f00765a;p=platform%2Fcore%2Fuifw%2Fdali-demo.git
diff --git a/examples/simple-text-renderer/simple-text-renderer-example.cpp b/examples/simple-text-renderer/simple-text-renderer-example.cpp
index 4180c2b..8135fd3 100644
--- a/examples/simple-text-renderer/simple-text-renderer-example.cpp
+++ b/examples/simple-text-renderer/simple-text-renderer-example.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -274,11 +274,11 @@ public:
*/
void Create( Application& application )
{
- Stage stage = Stage::GetCurrent();
- stage.SetBackgroundColor( Color::WHITE );
- stage.SetBackgroundColor( Vector4( 0.04f, 0.345f, 0.392f, 1.0f ) );
+ Window window = application.GetWindow();
+ window.SetBackgroundColor( Color::WHITE );
+ window.SetBackgroundColor( Vector4( 0.04f, 0.345f, 0.392f, 1.0f ) );
- stage.KeyEventSignal().Connect(this, &SimpleTextRendererExample::OnKeyEvent);
+ window.KeyEventSignal().Connect(this, &SimpleTextRendererExample::OnKeyEvent);
const std::string image1 = " ";
const std::string image2 = " ";
@@ -311,15 +311,15 @@ public:
renderer.SetTextures( textureSet );
Actor actor = Actor::New();
- actor.SetAnchorPoint( AnchorPoint::CENTER );
- actor.SetParentOrigin( ParentOrigin::CENTER );
- actor.SetPosition( 0.f, 0.f);
- actor.SetSize( 360.f, 360.f );
- actor.SetColor( Color::WHITE );
+ actor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
+ actor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
+ actor.SetProperty( Actor::Property::POSITION, Vector2( 0.f, 0.f));
+ actor.SetProperty( Actor::Property::SIZE, Vector2( 360.f, 360.f ) );
+ actor.SetProperty( Actor::Property::COLOR, Color::WHITE );
actor.AddRenderer( renderer );
- stage.Add( actor );
+ window.Add( actor );
}
/**