/*
- * Copyright (c) 2016 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.
DALI_TEST_CHECK( flexContainer );
// Add flex container to the stage
- Stage::GetCurrent().Add( flexContainer );
+ application.GetScene().Add( flexContainer );
// Create two actors and add them to the container
Actor actor1 = Actor::New();
DALI_TEST_CHECK( flexContainer );
// Add flex container to the stage
- Stage::GetCurrent().Add( flexContainer );
+ application.GetScene().Add( flexContainer );
// Create two actors and add them to the container
Actor actor1 = Actor::New();
DALI_TEST_CHECK( flexContainer );
// Add flex container to the stage
- Stage::GetCurrent().Add( flexContainer );
+ application.GetScene().Add( flexContainer );
// Create an actor and add it to the container
Actor actor = Actor::New();
DALI_TEST_CHECK( flexContainer );
// Add flex container to the stage
- Stage::GetCurrent().Add( flexContainer );
+ application.GetScene().Add( flexContainer );
RelayoutSignalHandler relayoutSignal(flexContainer);
flexContainer.OnRelayoutSignal().Connect(&relayoutSignal, &RelayoutSignalHandler::RelayoutCallback );
flexContainer.SetProperty( FlexContainer::Property::FLEX_DIRECTION, FlexContainer::ROW );
// Add flex container to the stage
- Stage::GetCurrent().Add( flexContainer );
- Size stageSize = Stage::GetCurrent().GetSize();
+ application.GetScene().Add( flexContainer );
+ Size stageSize = application.GetScene().GetSize();
RelayoutSignalHandler relayoutSignal(flexContainer);
flexContainer.OnRelayoutSignal().Connect(&relayoutSignal, &RelayoutSignalHandler::RelayoutCallback );
Actor actor0 = Actor::New();
- Stage::GetCurrent().Add( actor0 );
+ application.GetScene().Add( actor0 );
actor0.Add( flexContainer );
// Create two actors and add them to the container