To support set/get full screen sized window.
The full screen sized window means the window is resized with screen size.
In addition, this window is the z-order is the highest.
Change-Id: I5363a5ac727d2e35c650644cfe0831217ef38682
return GetImplementation(window).KeyboardUnGrab();
}
+void SetFullScreen(Window window, bool fullscreen)
+{
+ GetImplementation(window).SetFullScreen(fullscreen);
+}
+
+bool GetFullScreen(Window window)
+{
+ return GetImplementation(window).GetFullScreen();
+}
+
InterceptKeyEventSignalType& InterceptKeyEventSignal(Window window)
{
return GetImplementation(window).InterceptKeyEventSignal();
DALI_ADAPTOR_API bool KeyboardUnGrab(Window window);
/**
+ * @brief Sets full screen sized window.
+ * If full screen size is set for the window,
+ * window will be resized with full screen size.
+ * In addition, the full screen sized window's z-order is the highest.
+ *
+ * @param[in] window The window instance.
+ * @param[in] fullscreen true to set fullscreen, false to unset.
+ */
+DALI_ADAPTOR_API void SetFullScreen(Window window, bool fullscreen);
+
+/**
+ * @brief Gets whether the full screen sized window or not
+ *
+ * @param[in] window The window instance.
+ * @return Returns true if the full screen sized window is.
+ */
+DALI_ADAPTOR_API bool GetFullScreen(Window window);
+
+/**
* @brief The user would connect to this signal to intercept a KeyEvent at window.
*
* Intercepts KeyEvents in the window before dispatching KeyEvents to the control.
return false;
}
+void WindowBaseAndroid::SetFullScreen(bool fullscreen)
+{
+ return;
+}
+
+bool WindowBaseAndroid::GetFullScreen()
+{
+ return false;
+}
+
} // namespace Adaptor
} // namespace Internal
*/
bool KeyboardUnGrab() override;
+ /**
+ * @copydoc Dali::Internal::Adaptor::WindowBase::SetFullScreen()
+ */
+ void SetFullScreen(bool fullscreen) override;
+
+ /**
+ * @copydoc Dali::Internal::Adaptor::WindowBase::GetFullScreen()
+ */
+ bool GetFullScreen() override;
+
private:
/**
* Second stage initialization
*/
virtual bool KeyboardUnGrab() = 0;
+ /**
+ * @brief Sets full screen sized window.
+ * If full screen size is set for the window,
+ * window will be resized with full screen size.
+ * In addition, the full screen sized window's z-order is the highest.
+ *
+ * @param[in] fullscreen true to set fullscreen, false to unset.
+ */
+ virtual void SetFullScreen(bool fullscreen) = 0;
+
+ /**
+ * @brief Gets whether the full screen sized window or not
+ *
+ * @return Returns true if the full screen sized window is.
+ */
+ virtual bool GetFullScreen() = 0;
+
// Signals
/**
return mWindowBase->KeyboardUnGrab();
}
+void Window::SetFullScreen(bool fullscreen)
+{
+ mWindowBase->SetFullScreen(fullscreen);
+}
+
+bool Window::GetFullScreen()
+{
+ return mWindowBase->GetFullScreen();
+}
+
} // namespace Adaptor
} // namespace Internal
*/
bool KeyboardUnGrab();
+ /**
+ * @copydoc Dali::DevelWindow::SetFullScreen()
+ */
+ void SetFullScreen(bool fullscreen);
+
+ /**
+ * @copydoc Dali::DevelWindow::GetFullScreen()
+ */
+ bool GetFullScreen();
+
private:
/**
* @brief Enumeration for orietation mode.
*/
bool KeyboardUnGrab() override;
+ /**
+ * @copydoc Dali::Internal::Adaptor::WindowBase::SetFullScreen()
+ */
+ void SetFullScreen(bool fullscreen) override;
+
+ /**
+ * @copydoc Dali::Internal::Adaptor::WindowBase::GetFullScreen()
+ */
+ bool GetFullScreen() override;
+
private:
// Undefined
WindowBaseCocoa(const WindowBaseCocoa&) = delete;
return false;
}
+void WindowBaseCocoa::SetFullScreen(bool fullscreen)
+{
+ return;
+}
+
+bool WindowBaseCocoa::GetFullScreen()
+{
+ return false;
+}
+
} // namespace Dali::Internal::Adaptor
@implementation CocoaView
*/
bool KeyboardUnGrab() override;
+ /**
+ * @copydoc Dali::Internal::Adaptor::WindowBase::SetFullScreen()
+ */
+ void SetFullScreen(bool fullscreen) override;
+
+ /**
+ * @copydoc Dali::Internal::Adaptor::WindowBase::GetFullScreen()
+ */
+ bool GetFullScreen() override;
+
private:
/**
* Second stage initialization
return ecore_wl2_window_keyboard_ungrab(mEcoreWindow);
}
+void WindowBaseEcoreWl2::SetFullScreen(bool fullscreen)
+{
+ DALI_LOG_RELEASE_INFO("ecore_wl2_window_fullscreen_set, window: [%p], fullscreen [%d]\n", mEcoreWindow, fullscreen);
+ START_DURATION_CHECK();
+ ecore_wl2_window_fullscreen_set(mEcoreWindow, fullscreen);
+ ecore_wl2_window_commit(mEcoreWindow, EINA_TRUE);
+ FINISH_DURATION_CHECK("ecore_wl2_window_fullscreen_set");
+}
+
+bool WindowBaseEcoreWl2::GetFullScreen()
+{
+ return ecore_wl2_window_fullscreen_get(mEcoreWindow);
+}
+
} // namespace Adaptor
} // namespace Internal
*/
bool KeyboardUnGrab() override;
+ /**
+ * @copydoc Dali::Internal::Adaptor::WindowBase::SetFullScreen()
+ */
+ void SetFullScreen(bool fullscreen) override;
+
+ /**
+ * @copydoc Dali::Internal::Adaptor::WindowBase::GetFullScreen()
+ */
+ bool GetFullScreen() override;
+
private:
/**
* Second stage initialization
return false;
}
+void WindowBaseEcoreX::SetFullScreen(bool fullscreen)
+{
+ return;
+}
+
+bool WindowBaseEcoreX::GetFullScreen()
+{
+ return false;
+}
+
} // namespace Adaptor
} // namespace Internal
*/
bool KeyboardUnGrab() override;
+ /**
+ * @copydoc Dali::Internal::Adaptor::WindowBase::SetFullScreen()
+ */
+ void SetFullScreen(bool fullscreen) override;
+
+ /**
+ * @copydoc Dali::Internal::Adaptor::WindowBase::GetFullScreen()
+ */
+ bool GetFullScreen() override;
+
private:
/**
* Second stage initialization
return false;
}
+void WindowBaseWin::SetFullScreen(bool fullscreen)
+{
+ return;
+}
+
+bool WindowBaseWin::GetFullScreen()
+{
+ return false;
+}
+
} // namespace Adaptor
} // namespace Internal
*/
bool KeyboardUnGrab() override;
+ /**
+ * @copydoc Dali::Internal::Adaptor::WindowBase::SetFullScreen()
+ */
+ void SetFullScreen(bool fullscreen) override;
+
+ /**
+ * @copydoc Dali::Internal::Adaptor::WindowBase::GetFullScreen()
+ */
+ bool GetFullScreen() override;
+
private:
/**
* Second stage initialization
return false;
}
+void WindowBaseX::SetFullScreen(bool fullscreen)
+{
+ return;
+}
+
+bool WindowBaseX::GetFullScreen()
+{
+ return false;
+}
+
} // namespace Adaptor
} // namespace Internal
*/
bool KeyboardUnGrab() override;
+ /**
+ * @copydoc Dali::Internal::Adaptor::WindowBase::SetFullScreen()
+ */
+ void SetFullScreen(bool fullscreen) override;
+
+ /**
+ * @copydoc Dali::Internal::Adaptor::WindowBase::GetFullScreen()
+ */
+ bool GetFullScreen() override;
+
private:
/**
* Second stage initialization