/*
- * 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.
view = EffectsView::New( EffectsView::DROP_SHADOW );
DALI_TEST_CHECK( view );
- Stage::GetCurrent().Add( view );
+ application.GetScene().Add( view );
view.Reset();
view = EffectsView::New( EffectsView::EMBOSS );
view.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::CENTER);
- view.SetProperty( Actor::Property::SIZE, Stage::GetCurrent().GetSize());
+ view.SetProperty( Actor::Property::SIZE, application.GetScene().GetSize());
view.Add(actor);
- Stage::GetCurrent().Add(view);
+ application.GetScene().Add(view);
DALI_TEST_CHECK( actor.GetProperty< bool >( Actor::Property::CONNECTED_TO_SCENE ) );
DALI_TEST_CHECK( actor.GetParent() );
tet_infoline("Checking number of render tasks = 1");
application.SendNotification();
application.Render();
- Stage stage = Stage::GetCurrent();
+ Integration::Scene stage = application.GetScene();
DALI_TEST_EQUALS( stage.GetRenderTaskList().GetTaskCount(), 1, TEST_LOCATION );
tet_infoline("Create effects view");
EffectsView view = EffectsView::New(EffectsView::EMBOSS);
view.SetProperty( Actor::Property::SIZE, Vector2(100.f, 100.f) );
- Stage stage = Stage::GetCurrent();
+ Integration::Scene stage = application.GetScene();
DALI_TEST_CHECK( stage.GetRenderTaskList().GetTaskCount() == 1 );
stage.Add( view );
EffectsView view = EffectsView::New(EffectsView::DROP_SHADOW);
view.SetProperty( Actor::Property::SIZE, Vector2(100.f, 100.f) );
- Stage stage = Stage::GetCurrent();
+ Integration::Scene stage = application.GetScene();
DALI_TEST_CHECK( stage.GetRenderTaskList().GetTaskCount() == 1 );
stage.Add( view );
ToolkitTestApplication application;
EffectsView view = EffectsView::New( EffectsView::EMBOSS );
- Stage::GetCurrent().Add( view );
+ application.GetScene().Add( view );
Property::Value value = view.GetProperty( EffectsView::Property::EFFECT_OFFSET );
Vector3 offsetValue;
ToolkitTestApplication application;
EffectsView view = EffectsView::New( EffectsView::DROP_SHADOW );
- Stage::GetCurrent().Add( view );
+ application.GetScene().Add( view );
Property::Value value = view.GetProperty( EffectsView::Property::EFFECT_COLOR );
Vector4 colorValue;
EffectsView view = EffectsView::New(EffectsView::DROP_SHADOW);
view.SetProperty( Actor::Property::SIZE, Vector2(100.f, 100.f) );
- Stage stage = Stage::GetCurrent();
+ Integration::Scene stage = application.GetScene();
stage.Add( view );
application.SendNotification();
application.Render();
int UtcDaliEffectsViewSizeSet(void)
{
ToolkitTestApplication application;
- Stage stage = Stage::GetCurrent();
+ Integration::Scene stage = application.GetScene();
{
EffectsView view = EffectsView::New(EffectsView::DROP_SHADOW);