Add to getter api of winow rotation stauts.
When window is rotating, the getter api will return true.
Otherwise false.
Change-Id: Icb2331f75ef88051510008ceb2a1bb3b6cc40529
return GetImplementation(window).IsMinimized();
}
+bool IsWindowRotating(Window window)
+{
+ return GetImplementation(window).IsWindowRotating();
+}
+
} // namespace DevelWindow
} // namespace Dali
*/
DALI_ADAPTOR_API bool IsMinimized(Window window);
+/**
+ * @brief Query whether window is rotating or not.
+ *
+ * @param[in] window The window instance.
+ * @return true if window is rotating, false otherwise.
+ */
+DALI_ADAPTOR_API bool IsWindowRotating(Window window);
+
} // namespace DevelWindow
} // namespace Dali
}
}
+bool Window::IsWindowRotating() const
+{
+ return mWindowSurface->IsWindowRotating();
+}
+
} // namespace Adaptor
} // namespace Internal
*/
void SendRotationCompletedAcknowledgement();
+ /**
+ * @copydoc Dali::DevelWindow::IsWindowRotating()
+ */
+ bool IsWindowRotating() const;
+
private:
/**
* @brief Enumeration for orietation mode.
}
}
+bool WindowRenderSurface::IsWindowRotating() const
+{
+ return !(mWindowRotationFinished);
+}
+
void WindowRenderSurface::ProcessPostRender()
{
if(!mWindowRotationFinished)
{
mWindowBase->WindowRotationCompleted(mWindowRotationAngle, mPositionSize.width, mPositionSize.height);
- DALI_LOG_RELEASE_INFO("WindowRenderSurface::ProcessPostRender: Rotation Done\n");
mWindowRotationFinished = true;
+ DALI_LOG_RELEASE_INFO("WindowRenderSurface::ProcessPostRender: Rotation Done, flag = %d\n", mWindowRotationFinished);
}
if(mIsImeWindowSurface)
void UpdatePositionSize(Dali::PositionSize positionSize);
/**
+ * @brief Query whether window is rotating or not.
+ *
+ * @return true if window is rotating, false otherwise.
+ */
+ bool IsWindowRotating() const;
+
+ /**
* @brief This signal is emitted when the output is transformed.
*/
OutputSignalType& OutputTransformedSignal();