#include <errno.h>
#include <glib.h>
-#include <Ecore_Wayland.h>
+#include <Ecore_Wl2.h>
#include <Elementary.h>
#include <Ecore.h>
#include <Ecore_Evas.h>
#include <screen_connector_toolkit_evas.h>
#include <app_control_internal.h>
+#ifdef API
+#undef API
+#endif
+#define API __attribute__((visibility("default")))
+
#if defined(LOG_TAG)
#undef LOG_TAG
#endif
info->event_queue = NULL;
}
-EAPI int widget_viewer_evas_init(Evas_Object *win)
+API int widget_viewer_evas_init(Evas_Object *win)
{
char app_id[255];
return WIDGET_ERROR_NONE;
}
-EAPI int widget_viewer_evas_fini(void)
+API int widget_viewer_evas_fini(void)
{
if (!__is_widget_feature_enabled())
return WIDGET_ERROR_NOT_SUPPORTED;
return WIDGET_ERROR_NONE;
}
-EAPI int widget_viewer_evas_notify_resumed_status_of_viewer(void)
+API int widget_viewer_evas_notify_resumed_status_of_viewer(void)
{
GHashTableIter iter;
gpointer key, value;
return WIDGET_ERROR_NONE;
}
-EAPI int widget_viewer_evas_notify_paused_status_of_viewer(void)
+API int widget_viewer_evas_notify_paused_status_of_viewer(void)
{
GHashTableIter iter;
gpointer key, value;
return WIDGET_ERROR_NONE;
}
-EAPI int widget_viewer_evas_notify_orientation_of_viewer(int orientation)
+API int widget_viewer_evas_notify_orientation_of_viewer(int orientation)
{
if (!__is_widget_feature_enabled())
return WIDGET_ERROR_NOT_SUPPORTED;
static bool __obj_is_visible(Evas_Object *layout)
{
int x, y, w, h;
- Ecore_Wl_Window *window = NULL;
+ Ecore_Wl2_Window *window = NULL;
int window_x, window_y, window_w, window_h;
int rotation;
+ Ecore_Evas *ee = ecore_evas_ecore_evas_get(
+ evas_object_evas_get(s_info.win));
- window = elm_win_wl_window_get(s_info.win);
- ecore_wl_window_geometry_get(window, &window_x, &window_y, &window_w, &window_h);
+ window = ecore_evas_wayland2_window_get(ee);
+ ecore_wl2_window_geometry_get(window, &window_x, &window_y, &window_w, &window_h);
evas_object_geometry_get(layout, &x, &y, &w, &h);
- rotation = ecore_wl_window_rotation_get(window);
+ rotation = ecore_wl2_window_rotation_get(window);
if (x >= 0 && x < window_w &&
y >= 0 && y < window_h &&
return NULL;
}
-EAPI Evas_Object *widget_viewer_evas_add_widget(Evas_Object *parent, const char *widget_id, const char *content_info, double period)
+API Evas_Object *widget_viewer_evas_add_widget(Evas_Object *parent, const char *widget_id, const char *content_info, double period)
{
char *instance_id = NULL;
struct widget_info *widget_instance_info = NULL;
return widget_instance_info->layout;
}
-EAPI int widget_viewer_evas_set_option(widget_evas_conf_e type, int value)
+API int widget_viewer_evas_set_option(widget_evas_conf_e type, int value)
{
if (!__is_widget_feature_enabled())
return WIDGET_ERROR_NOT_SUPPORTED;
return WIDGET_ERROR_NONE;
}
-EAPI int widget_viewer_evas_pause_widget(Evas_Object *widget)
+API int widget_viewer_evas_pause_widget(Evas_Object *widget)
{
struct widget_info *info;
struct pending_item *item;
return WIDGET_ERROR_NONE;
}
-EAPI int widget_viewer_evas_resume_widget(Evas_Object *widget)
+API int widget_viewer_evas_resume_widget(Evas_Object *widget)
{
struct widget_info *info;
struct pending_item *item;
return WIDGET_ERROR_NONE;
}
-EAPI const char *widget_viewer_evas_get_content_info(Evas_Object *widget)
+API const char *widget_viewer_evas_get_content_info(Evas_Object *widget)
{
struct widget_info *info;
return (const char*)info->content_info;
}
-EAPI const char *widget_viewer_evas_get_title_string(Evas_Object *widget)
+API const char *widget_viewer_evas_get_title_string(Evas_Object *widget)
{
const char *title = NULL;
struct widget_info *info;
return title;
}
-EAPI const char *widget_viewer_evas_get_widget_id(Evas_Object *widget)
+API const char *widget_viewer_evas_get_widget_id(Evas_Object *widget)
{
struct widget_info *info;
return info->widget_id;
}
-EAPI double widget_viewer_evas_get_period(Evas_Object *widget)
+API double widget_viewer_evas_get_period(Evas_Object *widget)
{
struct widget_info *info;
return info->period;
}
-EAPI void widget_viewer_evas_cancel_click_event(Evas_Object *widget)
+API void widget_viewer_evas_cancel_click_event(Evas_Object *widget)
{
Evas_Object *remote_obj;
struct widget_info *info;
return;
}
-EAPI int widget_viewer_evas_feed_mouse_up_event(Evas_Object *widget)
+API int widget_viewer_evas_feed_mouse_up_event(Evas_Object *widget)
{
Evas_Object *remote_obj;
struct widget_info *info;
* But if this function is called, the preview image will not be displayed.
* Only the help text will be there. if it is not disabled of course.
*/
-EAPI void widget_viewer_evas_disable_preview(Evas_Object *widget)
+API void widget_viewer_evas_disable_preview(Evas_Object *widget)
{
struct widget_info *info;
* But if this function is called, the text help message will not be displayed.
* Only the preview image will be there. if it is not disabled of course.
*/
-EAPI void widget_viewer_evas_disable_overlay_text(Evas_Object *widget)
+API void widget_viewer_evas_disable_overlay_text(Evas_Object *widget)
{
struct widget_info *info;
* If this function is called, the widget object will not display "preview" image.
* Instead of it, the widget content object will be displayed immediately.
*/
-EAPI void widget_viewer_evas_disable_loading(Evas_Object *widget)
+API void widget_viewer_evas_disable_loading(Evas_Object *widget)
{
struct widget_info *info;
return;
}
-EAPI void widget_viewer_evas_activate_faulted_widget(Evas_Object *widget)
+API void widget_viewer_evas_activate_faulted_widget(Evas_Object *widget)
{
struct widget_info *info;
screen_connector_toolkit_evas_ops ops;
return;
}
-EAPI bool widget_viewer_evas_is_faulted(Evas_Object *widget)
+API bool widget_viewer_evas_is_faulted(Evas_Object *widget)
{
struct widget_info *info;
return info->is_faulted;
}
-EAPI int widget_viewer_evas_freeze_visibility(Evas_Object *widget, widget_visibility_status_e status)
+API int widget_viewer_evas_freeze_visibility(Evas_Object *widget, widget_visibility_status_e status)
{
struct widget_info *info;
int ret = 0;
return WIDGET_ERROR_NONE;
}
-EAPI int widget_viewer_evas_thaw_visibility(Evas_Object *widget)
+API int widget_viewer_evas_thaw_visibility(Evas_Object *widget)
{
struct widget_info *info;
Evas_Object *tbm_obj;
return WIDGET_ERROR_NONE;
}
-EAPI bool widget_viewer_evas_is_visibility_frozen(Evas_Object *widget)
+API bool widget_viewer_evas_is_visibility_frozen(Evas_Object *widget)
{
struct widget_info *info;
return false;
}
-EAPI bool widget_viewer_evas_is_widget(Evas_Object *widget)
+API bool widget_viewer_evas_is_widget(Evas_Object *widget)
{
struct widget_info *info;
return true;
}
-EAPI void widget_viewer_evas_set_permanent_delete(Evas_Object *widget, int flag)
+API void widget_viewer_evas_set_permanent_delete(Evas_Object *widget, int flag)
{
struct widget_info *info;
return;
}
-EAPI const char *widget_viewer_evas_get_widget_instance_id(Evas_Object *widget)
+API const char *widget_viewer_evas_get_widget_instance_id(Evas_Object *widget)
{
struct widget_info *info;
return (const char *)info->instance_id;
}
-EAPI int widget_viewer_evas_set_delayed_resuming_time(int time)
+API int widget_viewer_evas_set_delayed_resuming_time(int time)
{
if (time < 0 || time > 10000)
return WIDGET_ERROR_INVALID_PARAMETER;
return WIDGET_ERROR_NONE;
}
-EAPI int widget_viewer_evas_launch_setup_app(Evas_Object *widget)
+API int widget_viewer_evas_launch_setup_app(Evas_Object *widget)
{
char *setup_appid;
const char *widget_id;