END_TEST;
}
+
+int UtcDaliWindowData05(void)
+{
+ // Test SetFrontBufferRendering and GetFrontBufferRendering
+ WindowData windowData;
+ windowData.SetFrontBufferRendering(true);
+
+ DALI_TEST_CHECK(windowData.GetFrontBufferRendering() == true);
+
+ END_TEST;
+}
\ No newline at end of file
Impl()
: mPositionSize(0, 0, 0, 0),
mIsTransparent(true),
- mWindowType(WindowType::NORMAL)
+ mWindowType(WindowType::NORMAL),
+ mIsFrontBufferRendering(false)
{
}
- Dali::Rect<int> mPositionSize; ///< The position and size of the Window
- bool mIsTransparent; ///< The transparency of the Window
- WindowType mWindowType; ///< The window type of the Window
+ Dali::Rect<int> mPositionSize; ///< The position and size of the Window
+ bool mIsTransparent; ///< The transparency of the Window
+ WindowType mWindowType; ///< The window type of the Window
+ bool mIsFrontBufferRendering; ///< The front buffer rendering of the Window
};
WindowData::WindowData()
return mImpl->mWindowType;
}
+void WindowData::SetFrontBufferRendering(bool enable)
+{
+ mImpl->mIsFrontBufferRendering = enable;
+}
+
+bool WindowData::GetFrontBufferRendering() const
+{
+ return mImpl->mIsFrontBufferRendering;
+}
+
} // namespace Dali
* PositionSize : x:0, y:0, w:0, h:0 (full-screen window)
* Transparency : true (Window is created with 32-bit color depth)
* WindowType : NORMAL
+ * mIsFrontBufferRendering : false
*
* If you want to customize the window, you can modify the values of the WindowData object as needed.
* @SINCE_2_2.23
*/
WindowType GetWindowType() const;
+ /**
+ * @brief Sets the front buffer rendering
+ *
+ * @SINCE_2_2.51
+ * @param[in] enable whether to use front buffer rendering
+ */
+ void SetFrontBufferRendering(bool enable);
+
+ /**
+ * @brief Gets the front buffer rendering
+ *
+ * @SINCE_2_2.51
+ * @return whether front buffer rendering is enabled
+ */
+ bool GetFrontBufferRendering() const;
+
private:
struct Impl;
std::unique_ptr<Impl> mImpl;