*/
int ui_app_remove_event_handler(app_event_handler_h event_handler);
+/**
+ * @brief Gets the window position of application.
+ * @since_tizen 7.5
+ * @param[out] x x position of application's left top
+ * @param[out] y y position of application's left top
+ * @param[out] w width of application
+ * @param[out] h height of application
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #APP_ERROR_NONE Successful
+ * @retval #APP_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #APP_ERROR_NOT_SUPPORTED Not supported
+ */
+int ui_app_get_window_position(int *x, int *y, int *w, int *h);
+
/**
* @}
delete eb;
return APP_ERROR_NONE;
}
+
+API int ui_app_get_window_position(int *x, int *y, int *w, int *h) {
+ if (x == nullptr || y == nullptr || w == nullptr || h == nullptr)
+ return APP_ERROR_INVALID_PARAMETER;
+
+ if (__context.get() == nullptr ||
+ __context->GetWindowPosition(x, y, w, h) < 0)
+ return APP_ERROR_NOT_SUPPORTED;
+
+ return APP_ERROR_NONE;
+}