/*
- * 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.
Control control = Control::New();
control.SetProperty( Actor::Property::SIZE, Vector2(100.0f, 100.0f) );
control.SetProperty( Actor::Property::ANCHOR_POINT,AnchorPoint::TOP_LEFT);
- Stage::GetCurrent().Add(control);
+ application.GetScene().Add(control);
detector.Attach(control);
application.SendNotification();
control1.SetProperty( Actor::Property::POSITION, Vector2(0.0f, 0.0f));
control2.SetProperty( Actor::Property::POSITION, Vector2(0.0f, 100.0f));
- Stage::GetCurrent().Add(control1);
- Stage::GetCurrent().Add(control2);
+ application.GetScene().Add(control1);
+ application.GetScene().Add(control2);
detector.Attach(control1);
detector.Attach(control2);
control1.SetProperty( Actor::Property::POSITION, Vector2(0.0f, 0.0f));
control2.SetProperty( Actor::Property::POSITION, Vector2(0.0f, 100.0f));
- Stage::GetCurrent().Add(control1);
- Stage::GetCurrent().Add(control2);
+ application.GetScene().Add(control1);
+ application.GetScene().Add(control2);
detector.Attach(control1);
detector.Attach(control2);
control1.SetProperty( Actor::Property::LEAVE_REQUIRED,true);
control2.SetProperty( Actor::Property::LEAVE_REQUIRED,true);
- Stage::GetCurrent().Add(control1);
- Stage::GetCurrent().Add(control2);
+ application.GetScene().Add(control1);
+ application.GetScene().Add(control2);
detector.Attach(control1);
detector.Attach(control2);
control1.SetProperty( Actor::Property::POSITION, Vector2(0.0f, 0.0f));
control2.SetProperty( Actor::Property::POSITION, Vector2(0.0f, 100.0f));
- Stage::GetCurrent().Add(control1);
- Stage::GetCurrent().Add(control2);
+ application.GetScene().Add(control1);
+ application.GetScene().Add(control2);
detector.Attach(control1);
detector.Attach(control2);
control1.SetProperty( Actor::Property::POSITION, Vector2(0.0f, 0.0f));
control2.SetProperty( Actor::Property::POSITION, Vector2(0.0f, 100.0f));
- Stage::GetCurrent().Add(control1);
- Stage::GetCurrent().Add(control2);
+ application.GetScene().Add(control1);
+ application.GetScene().Add(control2);
application.SendNotification();
application.Render(RENDER_FRAME_INTERVAL);
control1.SetProperty( Actor::Property::POSITION, Vector2(0.0f, 0.0f));
control2.SetProperty( Actor::Property::POSITION, Vector2(0.0f, 100.0f));
- Stage::GetCurrent().Add(control1);
- Stage::GetCurrent().Add(control2);
+ application.GetScene().Add(control1);
+ application.GetScene().Add(control2);
detector.Attach(control1);
detector.Attach(control2);