/*
- * Copyright (c) 2017 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.
// Create the ToggleButton actor
ToggleButton toggleButton = ToggleButton::New();
- Stage::GetCurrent().Add( toggleButton );
+ application.GetScene().Add( toggleButton );
toggleButton.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::TOP_LEFT);
toggleButton.SetProperty( Actor::Property::ANCHOR_POINT,ParentOrigin::TOP_LEFT);
toggleButton.SetProperty( Actor::Property::POSITION, Vector2( 0.0f, 0.0f ));
// Create the ToggleButton actor
ToggleButton toggleButton = ToggleButton::New();
- Stage::GetCurrent().Add( toggleButton );
+ application.GetScene().Add( toggleButton );
toggleButton.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::TOP_LEFT);
toggleButton.SetProperty( Actor::Property::ANCHOR_POINT,ParentOrigin::TOP_LEFT);
toggleButton.SetProperty( Actor::Property::POSITION, Vector2( 0.0f, 0.0f ));
// Create the ToggleButton actor
ToggleButton toggleButton = ToggleButton::New();
- Stage::GetCurrent().Add( toggleButton );
+ application.GetScene().Add( toggleButton );
toggleButton.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::TOP_LEFT);
toggleButton.SetProperty( Actor::Property::ANCHOR_POINT,ParentOrigin::TOP_LEFT);
toggleButton.SetProperty( Actor::Property::POSITION, BUTTON_POSITON_TO_GET_INSIDE_TOUCH_EVENTS );