X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fscene.cpp;h=1f61607d878e42dc6383ca133ae9fbb72e42f143;hb=refs%2Ftags%2Fsubmit%2Ftizen_6.5%2F20220831.054421;hp=192ad2e3474bd1e2936c228d3ead297c7b6fa3d1;hpb=3e6302f19066584da65035c81f8bcb6a3da941fc;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/integration-api/scene.cpp b/dali/integration-api/scene.cpp index 192ad2e..1f61607 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) 2022 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) +Scene Scene::New(Size size, int32_t orientation) { - Internal::ScenePtr internal = Internal::Scene::New(size); + Internal::ScenePtr internal = Internal::Scene::New(size, orientation); return Scene(internal.Get()); } @@ -38,29 +41,18 @@ Scene Scene::DownCast(BaseHandle handle) return Scene(dynamic_cast(handle.GetObjectPtr())); } -Scene::Scene() -{ -} +Scene::Scene() = default; -Scene::~Scene() -{ -} +Scene::~Scene() = default; -Scene::Scene(const Scene& handle) -: BaseHandle(handle) -{ -} +Scene::Scene(const Scene& handle) = default; Scene::Scene(Internal::Scene* internal) : BaseHandle(internal) { } -Scene& Scene::operator=(const Scene& rhs) -{ - BaseHandle::operator=(rhs); - return *this; -} +Scene& Scene::operator=(const Scene& rhs) = default; void Scene::Add(Actor actor) { @@ -117,9 +109,9 @@ Layer Scene::GetLayer(uint32_t depth) const return GetImplementation(*this).GetLayer(depth); } -void Scene::SurfaceResized(float width, float height, int orientation, bool forceUpdate) +void Scene::SurfaceResized(float width, float height) { - GetImplementation(*this).SurfaceResized(width, height, orientation, forceUpdate); + GetImplementation(*this).SurfaceResized(width, height); } void Scene::SurfaceReplaced() @@ -132,6 +124,11 @@ void Scene::Discard() GetImplementation(*this).Discard(); } +void Scene::SetSurfaceRenderTarget(Graphics::RenderTarget* renderTarget) +{ + GetImplementation(*this).SetSurfaceRenderTarget(renderTarget); +} + Integration::Scene Scene::Get(Actor actor) { return Dali::Integration::Scene(&GetImplementation(actor).GetScene()); @@ -167,6 +164,36 @@ void Scene::GetFramePresentedCallback(FrameCallbackContainer& callbacks) GetImplementation(*this).GetFramePresentedCallback(callbacks); } +void Scene::SurfaceRotated(float width, float height, int32_t orientation) +{ + GetImplementation(*this).SurfaceRotated(width, height, orientation); +} + +int32_t Scene::GetCurrentSurfaceOrientation() const +{ + return GetImplementation(*this).GetCurrentSurfaceOrientation(); +} + +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 +{ + return GetImplementation(*this).IsRotationCompletedAcknowledgementSet(); +} + Scene::EventProcessingFinishedSignalType& Scene::EventProcessingFinishedSignal() { return GetImplementation(*this).EventProcessingFinishedSignal(); @@ -182,6 +209,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(); @@ -192,6 +224,11 @@ Scene::WheelEventSignalType& Scene::WheelEventSignal() return GetImplementation(*this).WheelEventSignal(); } +Scene::WheelEventGeneratedSignalType& Scene::WheelEventGeneratedSignal() +{ + return GetImplementation(*this).WheelEventGeneratedSignal(); +} + } // namespace Integration } // namespace Dali