X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-core.git;a=blobdiff_plain;f=dali%2Fintegration-api%2Fscene.cpp;h=ac3f289e8c16676c98139d71191e8cfb5630a240;hp=38e2477eba520edf2d45672b10bb214589710605;hb=b067b6f30c7b8cfdaea9c39f7d2375ccb4e7fa81;hpb=461cd959f5dd3fbee9d7a9dcf51534be4dfc24bc diff --git a/dali/integration-api/scene.cpp b/dali/integration-api/scene.cpp index 38e2477..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,9 +29,9 @@ namespace Dali namespace Integration { -Scene Scene::New( Integration::RenderSurface& surface ) +Scene Scene::New( Size size ) { - Internal::ScenePtr internal = Internal::Scene::New( surface ); + Internal::ScenePtr internal = Internal::Scene::New( size ); return Scene( internal.Get() ); } @@ -119,19 +119,14 @@ 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 ); } -void Scene::SurfaceResized() +void Scene::SurfaceReplaced() { - GetImplementation( *this ).SurfaceResized(); -} - -Integration::RenderSurface* Scene::GetSurface() const -{ - return GetImplementation(*this).GetSurface(); + GetImplementation( *this ).SurfaceReplaced(); } void Scene::Discard() @@ -164,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();