X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fwindow-system%2Fcommon%2Fwindow-impl.cpp;h=a309df3155ddf81eae21d23704f16b4d3e60546b;hb=f79805402bf8bd9b7ceb4561d4c089411fb5927f;hp=673f0bd11d0e921612231d7457246f752032a09e;hpb=b562bec59735e61e3745a5efbed41b6cd7686170;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/window-system/common/window-impl.cpp b/dali/internal/window-system/common/window-impl.cpp index 673f0bd..a309df3 100644 --- a/dali/internal/window-system/common/window-impl.cpp +++ b/dali/internal/window-system/common/window-impl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 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. @@ -196,6 +196,16 @@ void Window::Initialize(Any surface, const PositionSize& positionSize, const std mNativeWindowId = mWindowBase->GetNativeWindowId(); } +void Window::SetRenderNotification(TriggerEventInterface *renderNotification) +{ + if(!mWindowSurface) + { + return; + } + + mWindowSurface->SetRenderNotification(renderNotification); +} + void Window::OnAdaptorSet(Dali::Adaptor& adaptor) { mEventHandler = EventHandlerPtr(new EventHandler(mWindowSurface->GetWindowBase(), *mAdaptor)); @@ -721,7 +731,7 @@ void Window::SetPosition(Dali::Window::WindowPosition position) int32_t newX = position.GetX(); int32_t newY = position.GetY(); - mWindowSurface->MoveResize(PositionSize(newX, newY, oldRect.width, oldRect.height)); + mWindowSurface->Move(PositionSize(newX, newY, oldRect.width, oldRect.height)); if((oldRect.x != newX) || (oldRect.y != newY)) { @@ -805,6 +815,11 @@ void Window::SetPositionSize(PositionSize positionSize) Dali::Accessibility::Accessible::Get(mScene.GetRootLayer())->EmitBoundsChanged(Dali::Rect<>(positionSize.x, positionSize.y, positionSize.width, positionSize.height)); } +void Window::SetLayout(unsigned int numCols, unsigned int numRows, unsigned int column, unsigned int row, unsigned int colSpan, unsigned int rowSpan) +{ + mWindowBase->SetLayout(numCols, numRows, column, row, colSpan, rowSpan); +} + Dali::Layer Window::GetRootLayer() const { return mScene.GetRootLayer(); @@ -837,8 +852,8 @@ bool Window::UngrabKeyList(const Dali::Vector& key, Dali::VectorRemoveTopLevelWindow(accessible); } -void Window::RecalculateTouchPosition(Integration::Point& point) +Vector2 Window::RecalculatePosition(const Vector2& position) { - Vector2 position = point.GetScreenPosition(); Vector2 convertedPosition; switch(mRotationAngle) @@ -1147,8 +1161,7 @@ void Window::RecalculateTouchPosition(Integration::Point& point) break; } } - - point.SetScreenPosition(convertedPosition); + return convertedPosition; } Dali::Window Window::Get(Dali::Actor actor)