X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fscene.cpp;h=d84c4222709f926403e4b920d2707d1279b64a38;hb=c4750afbf79f15bf71e2aa8ef54f84750463aae2;hp=8650feac430e837c85a1e59088ab91c06719a78a;hpb=b192f4f14bad2da813b76387b6abc35411246be4;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/integration-api/scene.cpp b/dali/integration-api/scene.cpp index 8650fea..d84c422 100644 --- a/dali/integration-api/scene.cpp +++ b/dali/integration-api/scene.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Samsung Electronics Co., Ltd. + * Copyright (c) 2023 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. @@ -18,18 +18,21 @@ // CLASS HEADER #include -// INTERNAL INCLUDES -#include +// EXTERNAL INCLUDES +#include #include #include +// INTERNAL INCLUDES +#include + namespace Dali { namespace Integration { -Scene Scene::New(Size size, int orientation) +Scene Scene::New(Size size, int32_t windowOrientation, int32_t screenOrientation) { - Internal::ScenePtr internal = Internal::Scene::New(size, orientation); + Internal::ScenePtr internal = Internal::Scene::New(size, windowOrientation, screenOrientation); return Scene(internal.Get()); } @@ -44,13 +47,17 @@ Scene::~Scene() = default; Scene::Scene(const Scene& handle) = default; +Scene& Scene::operator=(const Scene& rhs) = default; + +Scene::Scene(Scene&& handle) noexcept = default; + +Scene& Scene::operator=(Scene&& rhs) noexcept = default; + Scene::Scene(Internal::Scene* internal) : BaseHandle(internal) { } -Scene& Scene::operator=(const Scene& rhs) = default; - void Scene::Add(Actor actor) { GetImplementation(*this).Add(GetImplementation(actor)); @@ -96,6 +103,11 @@ Layer Scene::GetRootLayer() const return GetImplementation(*this).GetRootLayer(); } +Layer Scene::GetOverlayLayer() +{ + return GetImplementation(*this).GetOverlayLayer(); +} + uint32_t Scene::GetLayerCount() const { return GetImplementation(*this).GetLayerCount(); @@ -116,11 +128,21 @@ void Scene::SurfaceReplaced() GetImplementation(*this).SurfaceReplaced(); } +void Scene::RemoveSceneObject() +{ + GetImplementation(*this).RemoveSceneObject(); +} + void Scene::Discard() { GetImplementation(*this).Discard(); } +void Scene::SetSurfaceRenderTarget(const Graphics::RenderTargetCreateInfo& renderTargetCreateInfo) +{ + GetImplementation(*this).SetSurfaceRenderTarget(renderTargetCreateInfo); +} + Integration::Scene Scene::Get(Actor actor) { return Dali::Integration::Scene(&GetImplementation(actor).GetScene()); @@ -156,9 +178,39 @@ void Scene::GetFramePresentedCallback(FrameCallbackContainer& callbacks) GetImplementation(*this).GetFramePresentedCallback(callbacks); } -void Scene::SurfaceRotated(float width, float height, int orientation) +void Scene::SurfaceRotated(float width, float height, int32_t windowOrientation, int32_t screenOrientation) +{ + GetImplementation(*this).SurfaceRotated(width, height, windowOrientation, screenOrientation); +} + +int32_t Scene::GetCurrentSurfaceOrientation() const +{ + return GetImplementation(*this).GetCurrentSurfaceOrientation(); +} + +int32_t Scene::GetCurrentScreenOrientation() const +{ + return GetImplementation(*this).GetCurrentScreenOrientation(); +} + +const Rect& Scene::GetCurrentSurfaceRect() const +{ + return GetImplementation(*this).GetCurrentSurfaceRect(); +} + +bool Scene::IsSurfaceRectChanged() const +{ + return GetImplementation(*this).IsSurfaceRectChanged(); +} + +void Scene::SetRotationCompletedAcknowledgement() +{ + GetImplementation(*this).SetRotationCompletedAcknowledgement(); +} + +bool Scene::IsRotationCompletedAcknowledgementSet() const { - GetImplementation(*this).SurfaceRotated(width, height, orientation); + return GetImplementation(*this).IsRotationCompletedAcknowledgementSet(); } Scene::EventProcessingFinishedSignalType& Scene::EventProcessingFinishedSignal() @@ -176,6 +228,11 @@ Scene::KeyEventGeneratedSignalType& Scene::KeyEventGeneratedSignal() return GetImplementation(*this).KeyEventGeneratedSignal(); } +Scene::KeyEventGeneratedSignalType& Scene::InterceptKeyEventSignal() +{ + return GetImplementation(*this).InterceptKeyEventSignal(); +} + Scene::TouchEventSignalType& Scene::TouchedSignal() { return GetImplementation(*this).TouchedSignal(); @@ -186,6 +243,11 @@ Scene::WheelEventSignalType& Scene::WheelEventSignal() return GetImplementation(*this).WheelEventSignal(); } +Scene::WheelEventGeneratedSignalType& Scene::WheelEventGeneratedSignal() +{ + return GetImplementation(*this).WheelEventGeneratedSignal(); +} + } // namespace Integration } // namespace Dali