X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fscene.cpp;h=1f61607d878e42dc6383ca133ae9fbb72e42f143;hb=refs%2Ftags%2Faccepted%2Ftizen%2F6.5%2Funified%2F20220831.133912;hp=6d69db89ac4a9091de4be422bdb703dc4bae2a13;hpb=ae7ceaf4e73d50c85d9364d6f5fb8fbd4d9e25a7;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/integration-api/scene.cpp b/dali/integration-api/scene.cpp index 6d69db8..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,22 +18,19 @@ // CLASS HEADER #include -// INTERNAL INCLUDES -#include +// EXTERNAL INCLUDES +#include #include #include +// INTERNAL INCLUDES +#include + namespace Dali { namespace Integration { -Scene Scene::New(Size size) -{ - Internal::ScenePtr internal = Internal::Scene::New(size); - return Scene(internal.Get()); -} - -Scene Scene::New(Size size, int orientation) +Scene Scene::New(Size size, int32_t orientation) { Internal::ScenePtr internal = Internal::Scene::New(size, orientation); return Scene(internal.Get()); @@ -127,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()); @@ -162,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(); @@ -177,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(); @@ -187,6 +224,11 @@ Scene::WheelEventSignalType& Scene::WheelEventSignal() return GetImplementation(*this).WheelEventSignal(); } +Scene::WheelEventGeneratedSignalType& Scene::WheelEventGeneratedSignal() +{ + return GetImplementation(*this).WheelEventGeneratedSignal(); +} + } // namespace Integration } // namespace Dali