summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_widget.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-08-22 15:16:54 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-23 11:16:45 +0900
commit06ec847a7c13a8f7f43a5216264ea7a4e25c4bee (patch)
treee378368a8f404dff10a06e543fe3f44a94880f90 /src/lib/elementary/elm_widget.h
parent509ed86cdf583decedd00f701d45bd412420a0fd (diff)
widget: Use EO function pointer for on_show_region
This is as much a test of the EO function pointer as it is a clean up of this widget API.
Diffstat (limited to 'src/lib/elementary/elm_widget.h')
-rw-r--r--src/lib/elementary/elm_widget.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/elementary/elm_widget.h b/src/lib/elementary/elm_widget.h
index f590b4739c..05f2102618 100644
--- a/src/lib/elementary/elm_widget.h
+++ b/src/lib/elementary/elm_widget.h
@@ -313,7 +313,7 @@ typedef Eina_Bool (*Elm_Widget_Focus_Get_Cb)(const void *data);
313 313
314typedef void (*Elm_Access_On_Highlight_Cb)(void *data); 314typedef void (*Elm_Access_On_Highlight_Cb)(void *data);
315 315
316typedef void (*region_hook_func_type)(void *data, Evas_Object *obj); 316typedef void (*region_hook_func_type)(void *data, Evas_Object *obj, Eina_Rectangle region);
317typedef void * (*list_data_get_func_type)(const Eina_List * l); 317typedef void * (*list_data_get_func_type)(const Eina_List * l);
318 318
319#include "elm_widget.eo.h" 319#include "elm_widget.eo.h"
@@ -424,8 +424,8 @@ typedef struct _Elm_Widget_Smart_Data
424 * handling the request of showing a specific region from an inner 424 * handling the request of showing a specific region from an inner
425 * widget (mainly issued by entries, on cursor moving) */ 425 * widget (mainly issued by entries, on cursor moving) */
426 void *on_show_region_data; 426 void *on_show_region_data;
427 void (*on_show_region)(void *data, 427 Efl_Ui_Scrollable_On_Show_Region on_show_region;
428 Evas_Object *obj); 428 Eina_Free_Cb on_show_region_data_free;
429 429
430 int orient_mode; /* -1 is disabled */ 430 int orient_mode; /* -1 is disabled */
431 Elm_Focus_Move_Policy focus_move_policy; 431 Elm_Focus_Move_Policy focus_move_policy;
@@ -640,7 +640,7 @@ EAPI Eina_Bool elm_widget_access(Evas_Object *obj, Eina_Bool is_access);
640EAPI Efl_Ui_Theme_Apply elm_widget_theme(Evas_Object *obj); 640EAPI Efl_Ui_Theme_Apply elm_widget_theme(Evas_Object *obj);
641EAPI void elm_widget_theme_specific(Evas_Object *obj, Elm_Theme *th, Eina_Bool force); 641EAPI void elm_widget_theme_specific(Evas_Object *obj, Elm_Theme *th, Eina_Bool force);
642EAPI void elm_widget_translate(Evas_Object *obj); 642EAPI void elm_widget_translate(Evas_Object *obj);
643EAPI void elm_widget_on_show_region_hook_set(Evas_Object *obj, void (*func)(void *data, Evas_Object *obj), void *data); 643EAPI void elm_widget_on_show_region_hook_set(Evas_Object *obj, void *data, Efl_Ui_Scrollable_On_Show_Region func, Eina_Free_Cb data_free);
644EAPI Eina_Bool elm_widget_sub_object_parent_add(Evas_Object *sobj); 644EAPI Eina_Bool elm_widget_sub_object_parent_add(Evas_Object *sobj);
645EAPI Eina_Bool elm_widget_sub_object_add(Evas_Object *obj, Evas_Object *sobj); 645EAPI Eina_Bool elm_widget_sub_object_add(Evas_Object *obj, Evas_Object *sobj);
646EAPI Eina_Bool elm_widget_sub_object_del(Evas_Object *obj, Evas_Object *sobj); 646EAPI Eina_Bool elm_widget_sub_object_del(Evas_Object *obj, Evas_Object *sobj);