X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fscene.cpp;h=ac3f289e8c16676c98139d71191e8cfb5630a240;hb=d353bae63798f48237dc24c078c2e8cb2aa0bc62;hp=869bbf0a09613fc731a5173a9c47f26b97d09d7c;hpb=c163578c36b4a1674b06ab7f1f3cd446b7f840f6;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/integration-api/scene.cpp b/dali/integration-api/scene.cpp index 869bbf0..ac3f289 100644 --- a/dali/integration-api/scene.cpp +++ b/dali/integration-api/scene.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. @@ -29,7 +29,7 @@ namespace Dali namespace Integration { -Scene Scene::New( const Size& size ) +Scene Scene::New( Size size ) { Internal::ScenePtr internal = Internal::Scene::New( size ); return Scene( internal.Get() ); @@ -119,14 +119,19 @@ Layer Scene::GetLayer( uint32_t depth ) const return GetImplementation(*this).GetLayer( depth ); } -void Scene::SetSurface( Integration::RenderSurface& surface ) +void Scene::SurfaceResized( float width, float height, int orientation, bool forceUpdate ) { - GetImplementation(*this).SetSurface( surface ); + GetImplementation( *this ).SurfaceResized( width, height, orientation, forceUpdate ); } -Integration::RenderSurface* Scene::GetSurface() const +void Scene::SurfaceReplaced() { - return GetImplementation(*this).GetSurface(); + GetImplementation( *this ).SurfaceReplaced(); +} + +void Scene::Discard() +{ + GetImplementation(*this).Discard(); } Integration::Scene Scene::Get( Actor actor ) @@ -154,6 +159,11 @@ Scene::KeyEventSignalType& Scene::KeyEventSignal() return GetImplementation(*this).KeyEventSignal(); } +Scene::KeyEventGeneratedSignalType& Scene::KeyEventGeneratedSignal() +{ + return GetImplementation(*this).KeyEventGeneratedSignal(); +} + Scene::TouchSignalType& Scene::TouchSignal() { return GetImplementation(*this).TouchSignal();