list: Add item loop feature
[platform/upstream/elementary.git] / src / lib / elm_widget.h
1 #ifndef ELM_WIDGET_H
2 #define ELM_WIDGET_H
3
4 /* DO NOT USE THIS HEADER UNLESS YOU ARE PREPARED FOR BREAKING OF YOUR
5  * CODE. THIS IS ELEMENTARY'S INTERNAL WIDGET API (for now) AND IS NOT
6  * FINAL. CALL elm_widget_api_check(ELM_INTERNAL_API_VERSION) TO CHECK
7  * IT AT RUNTIME.
8  *
9  * How to make your own widget? like this (where wname is your widget
10  * name (space) and wparentname is you widget's parent widget name
11  * (the base widget class if its a 'root' one).
12  *
13  * #include <Elementary.h>
14  * #include "elm_priv.h"
15  *
16  * static const char ELM_WNAME_SMART_NAME[] = "elm_wname";
17  *
18  * #define ELM_WNAME_DATA_GET(o, sd) \
19  *   Elm_WName_Smart_Data * sd = evas_object_smart_data_get(o)
20  *
21  * #define ELM_WNAME_CHECK(obj)                                      \
22  *   if (!obj || !elm_widget_type_check((obj), ELM_WNAME_SMART_NAME, \
23  *                                      __func__))                   \
24  *     return
25  *
26  * typedef struct _Elm_WName_Smart_Class
27  * {
28  *    Elm_WParentName_Smart_Class base;
29  * } Elm_WName_Smart_Class;
30  *
31  * typedef struct _Elm_WName_Smart_Data Elm_WName_Smart_Data;
32  * struct _Elm_WName_Smart_Data
33  * {
34  *   Elm_WParentName_Smart_Data base;
35  *   Evas_Object *sub; // or any private data needed for an instance
36  *   // add any other instance data here too
37  * };
38  *
39  * static const char SIG_CLICKED[] = "clicked";
40  * static const Evas_Smart_Cb_Description _smart_callbacks[] = {
41  *   {SIG_CLICKED, ""},
42  *   {NULL, NULL}
43  * };
44  *
45  * EVAS_SMART_SUBCLASS_NEW
46  *   (ELM_WNAME_SMART_NAME, _elm_wname, Elm_WName_Smart_Class,
47  *   Elm_WParentName_Smart_Class, elm_wparentname_smart_class_get,
48  *   _smart_callbacks);
49  *
50  * static Eina_Bool
51  * _elm_wname_smart_on_focus(Evas_Object *obj)
52  * {
53  *    ELM_WNAME_DATA_GET(obj, sd);
54  *
55  *    // handle focus going in and out - optional, but if you want to,
56  *    // define this virtual function to handle it (e.g. to emit a
57  *    // signal to an edje object)
58  *
59  *    if (elm_widget_focus_get(obj))
60  *      {
61  *         edje_object_signal_emit(sd->sub, "elm,action,focus", "elm");
62  *         evas_object_focus_set(sd->sub, EINA_TRUE);
63  *      }
64  *    else
65  *      {
66  *         edje_object_signal_emit(sd->sub, "elm,action,unfocus", "elm");
67  *         evas_object_focus_set(sd->sub, EINA_FALSE);
68  *      }
69  *
70  *    return EINA_TRUE;
71  * }
72  *
73  * static Eina_Bool
74  * _elm_wname_smart_theme(Evas_Object *obj)
75  * {
76  *    ELM_WNAME_DATA_GET(obj, sd);
77  *
78  *   if (!ELM_WIDGET_CLASS(_elm_wname_parent_sc)->theme(obj))
79  *     return EINA_FALSE;
80  *
81  *    // handle changes in theme/scale etc here. always call the
82  *    // parent class's version, as even the base class implements it.
83  *
84  *    elm_widget_theme_object_set(obj, sd->sub, "wname", "base",
85  *                                elm_widget_style_get(obj));
86  *
87  *    return EINA_TRUE;
88  * }
89  *
90  * static Eina_Bool
91  * _elm_widget_smart_disable(Evas_Object *obj)
92  * {
93  *    ELM_WNAME_DATA_GET(obj, sd);
94  *
95  *    // optional, but handle if the widget gets disabled or not
96  *    if (elm_widget_disabled_get(obj))
97  *      edje_object_signal_emit(sd->sub, "elm,state,disabled", "elm");
98  *    else
99  *      edje_object_signal_emit(sd->sub, "elm,state,enabled", "elm");
100  *
101  *    return EINA_TRUE;
102  * }
103  *
104  * static void
105  * _elm_wname_smart_add(Evas_Object *obj)
106  * {
107  *    EVAS_SMART_DATA_ALLOC(obj, Elm_WName_Smart_Data);
108  *
109  *    ELM_WIDGET_CLASS(_elm_wname_parent_sc)->base.add(obj);
110  *
111  *    priv->sub = edje_object_add(evas_object_evas_get(obj));
112  *    // just an example having an Edje object here. if it's really the case
113  *    // you have a sub edje object as a resize object, consider inheriting
114  *    // from @ref elm-layout-class.
115  *    elm_widget_can_focus_set(obj, EINA_TRUE);
116  *
117  *    // for this widget we will add 1 sub object that is an edje object
118  *    priv->sub = edje_object_add(e);
119  *    // set the theme. this follows a scheme for group name like this:
120  *    //   "elm/WIDGETNAME/ELEMENT/STYLE"
121  *    // so here it will be:
122  *    //   "elm/wname/base/default"
123  *    // changing style changes style name from default (all widgets start
124  *    // with the default style) and element is for your widget internal
125  *    // structure as you see fit
126  *    elm_widget_theme_object_set
127  *      (obj, priv->sub, "wname", "base", "default");
128  *    // listen to a signal from the edje object to produce widget smart
129  *    // callback (like click)
130  *    edje_object_signal_callback_add
131  *      (priv->sub, "elm,action,click", "", _clicked_signal_cb, obj);
132  *    // set this sub object as the "resize object". widgets get 1 resize
133  *    // object that is resized along with the object wrapper.
134  *    elm_widget_resize_object_set(obj, priv->sub, EINA_TRUE);
135  * }
136  *
137  * static void
138  * _elm_wname_smart_del(Evas_Object *obj)
139  * {
140  *    ELM_WNAME_DATA_GET(obj, sd);
141  *
142  *    // deleting 'virtual' function implementation - on deletion of
143  *    // object delete object struct, etc.
144  *
145  *    ELM_WIDGET_CLASS(_elm_wname_parent_sc)->base.del(obj);
146  * }
147  *
148  * static void
149  * _elm_wname_smart_set_user(Elm_WName_Smart_Class *sc)
150  * {
151  *    ELM_WIDGET_CLASS(sc)->base.add = _elm_wname_smart_add;
152  *    ELM_WIDGET_CLASS(sc)->base.del = _elm_wname_smart_del;
153  *
154  *    ELM_WIDGET_CLASS(sc)->theme = _elm_wname_smart_theme;
155  *    ELM_WIDGET_CLASS(sc)->disable = _elm_wname_smart_disable;
156  *    ELM_WIDGET_CLASS(sc)->on_focus = _elm_wname_smart_on_focus;
157  * }
158  *
159  * // actual API to create your widget. add more to manipulate it as
160  * // needed mark your calls with EAPI to make them "external api"
161  * // calls.
162  *
163  * EAPI Evas_Object *
164  * elm_wname_add(Evas_Object *parent)
165  * {
166  *    Evas_Object *obj;
167  *
168  *    EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
169  *
170  *    obj = elm_widget_add(_elm_check_smart_class_new(), parent);
171  *    if (!obj) return NULL;
172  *
173  *    if (!elm_widget_sub_object_add(parent, obj))
174  *      ERR("could not add %p as sub object of %p", obj, parent);
175  *
176  *    return obj;
177  * }
178  *
179  * // example - do "whatever" to the widget (here just emit a signal)
180  * EAPI void
181  * elm_wname_whatever(Evas_Object *obj)
182  * {
183  *    // check if type is correct - check will return if it fails
184  *    ELM_WNAME_CHECK(obj);
185  *    // get widget data - type is correct and sane by this point, so this
186  *    // should never fail
187  *    ELM_WNAME_DATA_GET(obj, sd);
188  *    // do whatever you like
189  *    edje_object_signal_emit(sd->sub, "elm,state,action,whatever", "elm");
190  * }
191  *
192  * // you can add more - you need to see elementary's code to know how
193  * // to handle all cases. remember this api is not stable and may
194  * change. it's internal
195  */
196
197 #ifndef ELM_INTERNAL_API_ARGESFSDFEFC
198 #warning "You are using an internal elementary API. This API is not stable"
199 #warning "and is subject to change. You use this at your own risk."
200 #warning "Remember to call elm_widget_api_check(ELM_INTERNAL_API_VERSION);"
201 #warning "in your widgets before you call any other elm_widget calls to do"
202 #warning "a correct runtime version check. Also remember - you don't NEED"
203 #warning "to make an Elementary widget is almost ALL cases. You can easily"
204 #warning "make a smart object with Evas's API and do everything you need"
205 #warning "there. You only need a widget if you want to seamlessly be part"
206 #warning "of the focus tree and want to transparently become a container"
207 #warning "for any number of child Elementary widgets"
208 #error "ERROR. Compile aborted."
209 #endif
210 #define ELM_INTERNAL_API_VERSION 7000
211
212 /**
213  * @defgroup Widget Widgets Extension Infrastructure
214  *
215  * This section is intended for people willing to create @b custom
216  * Elementary widgets or to contribute new (useful, unique) widgets
217  * upstream. If neither is your case, this text won't be of any use
218  * for you.
219  *
220  * Elementary widgets are built in a @b hierarchical fashion. The idea
221  * is to factorize as much code as possible between widgets with
222  * behavioral similarities, as long as to facilitate the creation of
223  * @b custom, new widgets, may the user need them.
224  *
225  * It all starts with a base class, which aggregates behaviour
226  * @b every Elementary widget is supposed to have:
227  * #Elm_Widget_Smart_Class. Every Elementary widget will be of that
228  * type, be it directly or by means of @b inheriting from it.
229  *
230  * #Elm_Widget_Smart_Class happens to be an @c Evas_Smart_Class. If
231  * you check out Evas' documentation on it, you'll see it's how one is
232  * supposed to create custom Evas objects, what Elementary widgets
233  * are.
234  *
235  * Once one instantiates an Elementary widget, since it inherits from
236  * #Elm_Widget_Smart_Class, the system will raise a class instance of
237  * that type for you. But that happens only @b once: the first time
238  * you ask for an Elementary widget (of a given type). All subsequent
239  * ones will only point to the very same class instance. Since it's
240  * the class which points to the functions implementing the behavior
241  * of objects of that type, all of the live instances of Elementary
242  * widgets (of that type) will share the same blob of code loaded in
243  * memory to execute their routines.
244  *
245  * Now go and take a look at #Elm_Widget_Smart_Class's fields. Because
246  * it inherits from Evas' base smart class, we got a field of that
247  * type as the first member, so that Evas can handle Elementary
248  * objects internally as if they were 'normal' Evas objects. Evas has
249  * the Evas-only behavior function pointers in there, so it's all it
250  * needs.
251  *
252  * Then, comes a version field, so that whenever we got to update or
253  * change the fields on our base smart class, there'll be a runtime
254  * check of the version expected by Elementary and the one provided by
255  * any code linking with it. A mismatch will show the developer of
256  * that code he/she needs to recompile and link its code to a newer
257  * version of Elementary.
258  *
259  * The next fields are the class functions themselves. We call them
260  * 'virtual' because, as in object-oriented languages, one is supposed
261  * here to override them on inheriting classes. On most of
262  * inheritances you'll probably want to call the parent's version of
263  * the class function too: you must analyse each case to tell.
264  *
265  * Take a look at #Elm_Widget_Smart_Data. That's private data bound to
266  * each Elementary object @b instance. It aggregates data needed for
267  * all widgets, since it's meant for the #Elm_Widget_Smart_Class-typed
268  * ones.
269  *
270  * When inheriting from that base type, instance data for this new
271  * class has to have, as the first member, a field of type
272  * #Elm_Widget_Smart_Data. This has to be respected recursively -- if
273  * a third class is to be created inheriting from the one that is a
274  * direct 'child' of #Elm_Widget_Smart_Class, then the private data on
275  * this third class has to have, as its first field, a variable of the
276  * type of the private data of the second class (its parent), direct
277  * child of #Elm_Widget_Smart_Class.
278  *
279  * It is from the base private data, #Elm_Widget_Smart_Data, that we
280  * reach an object's class functions, by the given object
281  * instance. This is the reason of the first field of that struct: a
282  * pointer set to point to its class when the object is instantiated.
283  *
284  * The following figure illustrates the widget inheritance schema.
285  *
286  * @image html elm-widget-hierarchy.png
287  * @image rtf elm-widget-hierarchy.png
288  * @image latex elm-widget-hierarchy.eps
289  *
290  * @section elm-hierarchy-tree Elementary Widgets Hierarchy Tree
291  *
292  * The following figure illustrates the Elementary widget inheritance
293  * tree.
294  *
295  * @image html elm-widget-tree.png
296  * @image rtf elm-widget-tree.png
297  * @image latex elm-widget-tree.eps
298  */
299
300 /**
301  * @addtogroup Widget
302  * @{
303  */
304
305 /* Elm_Activate is used in 'Virtual' function Eina_Bool (*activate)
306  * (Evas_Object *obj, Elm_Activate act); of Elm_Widget_Smart_Class */
307 typedef enum
308 {
309    ELM_ACTIVATE_DEFAULT = 0,
310    ELM_ACTIVATE_UP,
311    ELM_ACTIVATE_DOWN,
312    ELM_ACTIVATE_RIGHT,
313    ELM_ACTIVATE_LEFT,
314    ELM_ACTIVATE_BACK
315 } Elm_Activate;
316
317 /* Please, ALWAYS update the ELM_WIDGET_SMART_CLASS_INIT macro
318  * whenever you change the following struct! */
319
320 /**
321  * Base widget smart class. It has the 'virtual' functions for all
322  * general, common actions on Elementary widgets.
323  */
324 typedef struct _Elm_Widget_Smart_Class
325 {
326    Evas_Smart_Class base; /**< Base smart class struct, needed for all smart objects */
327    int              version; /**< Version of this smart class definition */
328
329    void             (*parent_set)(Evas_Object *obj,
330                                   Evas_Object *parent); /**< 'Virtual' function handling parent widget attachment to new object */
331    Eina_Bool        (*on_focus)(Evas_Object *obj); /**< 'Virtual' function handling focus in/out events on the widget */
332    Eina_Bool        (*disable)(Evas_Object *obj); /**< 'Virtual' function on the widget being disabled */
333    Eina_Bool        (*theme)(Evas_Object *obj); /**< 'Virtual' function on the widget being re-themed */
334    Eina_Bool        (*translate)(Evas_Object *obj); /**< 'Virtual' function handling language changes on Elementary */
335    Eina_Bool        (*event)(Evas_Object *obj,
336                              Evas_Object *source,
337                              Evas_Callback_Type type,
338                              void *event_info); /**< 'Virtual' function handling input events on the widget */
339    Eina_Bool        (*on_focus_region)(const Evas_Object *obj,
340                                        Evas_Coord *x,
341                                        Evas_Coord *y,
342                                        Evas_Coord *w,
343                                        Evas_Coord *h); /**< 'Virtual' function returning an inner area of a widget that should be brought into the visible area of a broader viewport, may this context arise. On the base Elementary widget class, it defaults to the object's total area, so only override it if you have to. */
344    Eina_Bool        (*focus_next)(const Evas_Object *obj,
345                                   Elm_Focus_Direction dir,
346                                   Evas_Object **next); /**< 'Virtual' function handling passing focus to sub-objects */
347    Eina_Bool        (*focus_direction)(const Evas_Object *obj,
348                                        const Evas_Object *base,
349                                        double degree,
350                                        Evas_Object **target,
351                                        double *weight); /**< 'Virtual' function handling passing focus to sub-objects <b>given a direction, in degrees</b> */
352
353    Eina_Bool        (*sub_object_add)(Evas_Object *obj,
354                                       Evas_Object *sobj); /**< 'Virtual' function handling sub objects being added */
355
356    Eina_Bool        (*sub_object_del)(Evas_Object *obj,
357                                       Evas_Object *sobj); /**< 'Virtual' function handling sub objects being removed */
358    void             (*access)(Evas_Object *obj,
359                               Eina_Bool is_access); /**< 'Virtual' function on the widget being set access */
360    Eina_Bool        (*activate)(Evas_Object *obj,
361                                 Elm_Activate act); /**< 'Virtual' function to activate widget  */
362 } Elm_Widget_Smart_Class;
363
364 /**
365  * Base widget smart data. This is data bound to an Elementary object
366  * @b instance, so its particular to that specific object and not
367  * shared between all objects in its class. It is here, though, that
368  * we got a pointer to the object's class, the first field -- @c
369  * 'api'.
370  */
371 typedef struct _Elm_Widget_Smart_Data
372 {
373    Evas_Object                  *obj;
374    Evas_Object                  *parent_obj;
375    Evas_Object                  *parent2;
376    Evas_Coord                    x, y, w, h;
377    Eina_List                    *subobjs;
378    Evas_Object                  *resize_obj;
379    Evas_Object                  *hover_obj;
380    Eina_List                    *tooltips, *cursors;
381    Evas_Object                  *focus_previous, *focus_next;
382    Evas_Object                  *focus_up, *focus_down, *focus_right, *focus_left;
383
384    /* "show region" coordinates. all widgets got those because this
385     * info may be set and queried recursively through the widget
386     * parenting tree */
387    Evas_Coord                    rx, ry, rw, rh;
388
389    /* scrolling hold/freeze hints. all widgets got those because this
390     * info may be set and queried recursively through the widget
391     * parenting tree */
392    int                           scroll_hold;
393    int                           scroll_freeze;
394
395    double                        scale;
396    Elm_Theme                    *theme;
397    const char                   *style;
398    const char                   *focus_highlight_style;  /**< custom focus style for a widget */
399    const char                   *access_info;
400    unsigned int                  focus_order;
401    Eina_Bool                     focus_order_on_calc;
402
403    int                           child_drag_x_locked;
404    int                           child_drag_y_locked;
405
406    Eina_Inlist                  *translate_strings;
407    Eina_List                    *focus_chain;
408    Eina_List                    *event_cb;
409
410    /* this is a hook to be set on-the-fly on widgets. this is code
411     * handling the request of showing a specific region from an inner
412     * widget (mainly issued by entries, on cursor moving) */
413    void                         *on_show_region_data;
414    void                        (*on_show_region)(void *data,
415                                                  Evas_Object *obj);
416
417    int                           orient_mode; /* -1 is disabled */
418
419    Eina_Bool                     drag_x_locked : 1;
420    Eina_Bool                     drag_y_locked : 1;
421
422    Eina_Bool                     can_focus : 1;
423    Eina_Bool                     child_can_focus : 1;
424    Eina_Bool                     focused : 1;
425    Eina_Bool                     top_win_focused : 1;
426    Eina_Bool                     tree_unfocusable : 1;
427    Eina_Bool                     highlight_ignore : 1;
428    Eina_Bool                     highlight_in_theme : 1;
429    Eina_Bool                     access_highlight_in_theme : 1;
430    Eina_Bool                     disabled : 1;
431    Eina_Bool                     is_mirrored : 1;
432    Eina_Bool                     mirrored_auto_mode : 1; /* This is
433                                                           * TRUE by
434                                                           * default */
435    Eina_Bool                     still_in : 1;
436    Eina_Bool                     highlighted : 1;
437    Eina_Bool                     highlight_root : 1;
438    Eina_Bool                     on_translate : 1; /**< This is true when any types of elm translate function is being called. */
439    Eina_Bool                     on_create : 1; /**< This is true when the widget is on creation(general widget constructor). */
440 } Elm_Widget_Smart_Data;
441
442 /**
443  * @}
444  */
445
446 typedef struct _Elm_Tooltip     Elm_Tooltip;
447 typedef struct _Elm_Cursor      Elm_Cursor;
448
449 /**< base structure for all widget items that are not Elm_Widget themselves */
450 typedef struct _Elm_Widget_Item Elm_Widget_Item;
451 typedef struct _Elm_Widget_Item_Signal_Data Elm_Widget_Item_Signal_Data;
452
453 /**< accessibility information to be able to set and get from the access API */
454 typedef struct _Elm_Access_Info Elm_Access_Info;
455
456 /**< accessibility info item */
457 typedef struct _Elm_Access_Item Elm_Access_Item;
458
459 typedef struct _Elm_Action Elm_Action;
460
461 typedef void                  (*Elm_Widget_Text_Set_Cb)(void *data, const char *part, const char *text);
462 typedef void                  (*Elm_Widget_Content_Set_Cb)(void *data, const char *part, Evas_Object *content);
463 typedef const char           *(*Elm_Widget_Text_Get_Cb)(const void *data, const char *part);
464 typedef Evas_Object          *(*Elm_Widget_Content_Get_Cb)(const void *data, const char *part);
465 typedef Evas_Object          *(*Elm_Widget_Content_Unset_Cb)(const void *data, const char *part);
466 typedef void                  (*Elm_Widget_Signal_Emit_Cb)(void *data, const char *emission, const char *source);
467 typedef void                  (*Elm_Widget_Disable_Cb)(void *data);
468 typedef Eina_Bool             (*Elm_Widget_Del_Pre_Cb)(void *data);
469 typedef void                  (*Elm_Widget_Item_Signal_Cb)(void *data, Elm_Widget_Item *item, const char *emission, const char *source);
470 typedef void                  (*Elm_Widget_Style_Set_Cb)(void *data, const char *style);
471 typedef const char           *(*Elm_Widget_Style_Get_Cb)(const void *data);
472 typedef void                  (*Elm_Widget_Focus_Set_Cb)(void *data, Eina_Bool focused);
473 typedef Eina_Bool             (*Elm_Widget_Focus_Get_Cb)(const void *data);
474
475 #define ELM_ACCESS_DONE          -1   /* sentence done - send done event here */
476 #define ELM_ACCESS_CANCEL        -2   /* stop reading immediately */
477
478 typedef void (*Elm_Access_On_Highlight_Cb)(void *data);
479
480 struct _Elm_Access_Item
481 {
482    int                   type;
483    const void           *data;
484    Elm_Access_Info_Cb    func;
485 };
486
487 struct _Elm_Access_Info
488 {
489    Evas_Object               *hoverobj;
490    Eina_List                 *items;
491    Ecore_Timer               *delay_timer;
492    void                      *on_highlight_data;
493    Elm_Access_On_Highlight_Cb on_highlight;
494
495    void                      *activate_data;
496    Elm_Access_Activate_Cb    activate;
497
498    /* the owner widget item that owns this access info */
499    Elm_Widget_Item           *widget_item;
500
501    /* the owner part object that owns this access info */
502    Evas_Object               *part_object;
503
504    Evas_Object               *next;
505    Evas_Object               *prev;
506 };
507
508 struct _Elm_Action
509 {
510    const char *name;
511    void (*func)(Evas_Object *obj, const char *params);
512 };
513
514 void                  _elm_access_shutdown();
515 void                  _elm_access_mouse_event_enabled_set(Eina_Bool enabled);
516
517 /* if auto_higlight is EINA_TRUE, it  does not steal a focus, it just moves a highlight */
518 void                  _elm_access_auto_highlight_set(Eina_Bool enabled);
519 Eina_Bool             _elm_access_auto_highlight_get(void);
520 void                  _elm_access_widget_item_access_order_set(Elm_Widget_Item *item, Eina_List *objs);
521 const Eina_List      *_elm_access_widget_item_access_order_get(const Elm_Widget_Item *item);
522 void                  _elm_access_widget_item_access_order_unset(Elm_Widget_Item *item);
523 void                  _elm_widget_focus_highlight_start(const Evas_Object *obj);
524 void                  _elm_win_focus_highlight_start(Evas_Object *obj);
525
526 EAPI void             _elm_access_clear(Elm_Access_Info *ac);
527 EAPI void             _elm_access_text_set(Elm_Access_Info *ac, int type, const char *text);
528 EAPI void             _elm_access_callback_set(Elm_Access_Info *ac, int type, Elm_Access_Info_Cb func, const void *data);
529 EAPI char            *_elm_access_text_get(const Elm_Access_Info *ac, int type, const Evas_Object *obj); /* this is ok it actually returns a strduped string - it's meant to! */
530 EAPI void             _elm_access_read(Elm_Access_Info *ac, int type, const Evas_Object *obj);
531 EAPI void             _elm_access_say(const char *txt);
532 EAPI Elm_Access_Info *_elm_access_info_get(const Evas_Object *obj);
533 EAPI void             _elm_access_object_highlight(Evas_Object *obj);
534 EAPI void             _elm_access_object_unhilight(Evas_Object *obj);
535 EAPI void             _elm_access_object_highlight_disable(Evas *e);
536 EAPI void             _elm_access_object_register(Evas_Object *obj, Evas_Object *hoverobj);
537 EAPI void             _elm_access_object_unregister(Evas_Object *obj, Evas_Object *hoverobj);
538 EAPI Eina_Bool        _elm_access_2nd_click_timeout(Evas_Object *obj);
539 EAPI void             _elm_access_highlight_set(Evas_Object* obj);
540 EAPI Evas_Object *    _elm_access_edje_object_part_object_register(Evas_Object *obj, const Evas_Object *partobj, const char* part);
541 EAPI void             _elm_access_edje_object_part_object_unregister(Evas_Object* obj, const Evas_Object *eobj, const char* part);
542 EAPI void             _elm_access_widget_item_register(Elm_Widget_Item *item);
543 EAPI void             _elm_access_widget_item_unregister(Elm_Widget_Item *item);
544 EAPI void             _elm_access_on_highlight_hook_set(Elm_Access_Info *ac, Elm_Access_On_Highlight_Cb func, void *data);
545 EAPI void             _elm_access_activate_callback_set(Elm_Access_Info *ac, Elm_Access_Activate_Cb func, void *data);
546 EAPI void             _elm_access_highlight_object_activate(Evas_Object *obj, Elm_Activate act);
547 EAPI void             _elm_access_highlight_cycle(Evas_Object *obj, Elm_Focus_Direction dir);
548
549 EINA_DEPRECATED EAPI Elm_Access_Info *_elm_access_object_get(const Evas_Object *obj);
550
551 #define ELM_PREFS_DATA_MAGIC 0xe1f5da7a
552
553 /**< put this as the first member in your widget item struct */
554 #define ELM_WIDGET_ITEM       Elm_Widget_Item base
555
556 struct _Elm_Widget_Item_Signal_Data
557 {
558    Elm_Widget_Item *item;
559    Elm_Widget_Item_Signal_Cb func;
560    const char *emission;
561    const char *source;
562    void *data;
563 };
564
565 struct _Elm_Widget_Item
566 {
567 /* ef1 ~~ efl, el3 ~~ elm */
568 #define ELM_WIDGET_ITEM_MAGIC 0xef1e1301
569    EINA_MAGIC;
570 /* simple accessor macros */
571 #define VIEW(X)   X->base.view
572 #define WIDGET(X) X->base.widget
573    /**< the owner widget that owns this item */
574    Evas_Object                   *widget;
575    /**< the base view object */
576    Evas_Object                   *view;
577    /**< item specific data. used for del callback */
578    const void                    *data;
579    /**< user delete callback function */
580    Evas_Smart_Cb                  del_func;
581    /**< widget delete callback function. don't expose this callback call */
582    Elm_Widget_Del_Pre_Cb          del_pre_func;
583
584    Elm_Widget_Content_Set_Cb      content_set_func;
585    Elm_Widget_Content_Get_Cb      content_get_func;
586    Elm_Widget_Content_Unset_Cb    content_unset_func;
587    Elm_Widget_Text_Set_Cb         text_set_func;
588    Elm_Widget_Text_Get_Cb         text_get_func;
589    Elm_Widget_Signal_Emit_Cb      signal_emit_func;
590    Elm_Widget_Disable_Cb          disable_func;
591    Elm_Widget_Style_Set_Cb        style_set_func;
592    Elm_Widget_Style_Get_Cb        style_get_func;
593    Elm_Widget_Focus_Set_Cb        focus_set_func;
594    Elm_Widget_Focus_Get_Cb        focus_get_func;
595    Evas_Object                   *access_obj;
596    const char                    *access_info;
597    Eina_List                     *access_order;
598    Eina_Inlist                   *translate_strings;
599    Eina_List                     *signals;
600    Eina_Hash                     *labels;
601    Evas_Object                   *track_obj;
602
603    Eina_Bool                      disabled : 1;
604    Eina_Bool                      on_deletion : 1;
605    Eina_Bool                      on_translate : 1;
606 };
607
608 struct _Elm_Object_Item
609 {
610    ELM_WIDGET_ITEM;
611 };
612
613 #define ELM_NEW(t) calloc(1, sizeof(t))
614
615 EAPI Evas_Object     *elm_widget_add(Evas_Smart *, Evas_Object *);
616 EAPI void             elm_widget_parent_set(Evas_Object *, Evas_Object *);
617 EAPI Eina_Bool        elm_widget_api_check(int ver);
618 EAPI Eina_Bool        elm_widget_access(Evas_Object *obj, Eina_Bool is_access);
619 EAPI Eina_Bool        elm_widget_theme(Evas_Object *obj);
620 EAPI void             elm_widget_theme_specific(Evas_Object *obj, Elm_Theme *th, Eina_Bool force);
621 EAPI void             elm_widget_translate(Evas_Object *obj);
622 EAPI void             elm_widget_on_show_region_hook_set(Evas_Object *obj, void (*func)(void *data, Evas_Object *obj), void *data);
623 EAPI Eina_Bool        elm_widget_sub_object_parent_add(Evas_Object *sobj);
624 EAPI Eina_Bool        elm_widget_sub_object_add(Evas_Object *obj, Evas_Object *sobj);
625 EAPI Eina_Bool        elm_widget_sub_object_del(Evas_Object *obj, Evas_Object *sobj);
626 EAPI void             elm_widget_resize_object_set(Evas_Object *obj, Evas_Object *sobj, Eina_Bool sub_obj);
627 EAPI void             elm_widget_hover_object_set(Evas_Object *obj, Evas_Object *sobj);
628 EAPI void             elm_widget_signal_emit(Evas_Object *obj, const char *emission, const char *source);
629 EAPI void             elm_widget_signal_callback_add(Evas_Object *obj, const char *emission, const char *source, Edje_Signal_Cb func, void *data);
630 EAPI void            *elm_widget_signal_callback_del(Evas_Object *obj, const char *emission, const char *source, Edje_Signal_Cb func);
631 EAPI void             elm_widget_can_focus_set(Evas_Object *obj, Eina_Bool can_focus);
632 EAPI Eina_Bool        elm_widget_can_focus_get(const Evas_Object *obj);
633 EAPI Eina_Bool        elm_widget_child_can_focus_get(const Evas_Object *obj);
634 EAPI Eina_List       *elm_widget_can_focus_child_list_get(const Evas_Object *obj);
635 EAPI void             elm_widget_tree_unfocusable_set(Evas_Object *obj, Eina_Bool tree_unfocusable);
636 EAPI Eina_Bool        elm_widget_tree_unfocusable_get(const Evas_Object *obj);
637 EAPI void             elm_widget_highlight_ignore_set(Evas_Object *obj, Eina_Bool ignore);
638 EAPI Eina_Bool        elm_widget_highlight_ignore_get(const Evas_Object *obj);
639 EAPI void             elm_widget_highlight_in_theme_set(Evas_Object *obj, Eina_Bool highlight);
640 EAPI Eina_Bool        elm_widget_highlight_in_theme_get(const Evas_Object *obj);
641 EAPI void             elm_widget_access_highlight_in_theme_set(Evas_Object *obj, Eina_Bool highlight);
642 EAPI Eina_Bool        elm_widget_access_highlight_in_theme_get(const Evas_Object *obj);
643 EAPI Eina_Bool        elm_widget_focus_get(const Evas_Object *obj);
644 EAPI Eina_Bool        elm_widget_highlight_get(const Evas_Object *obj);
645 EAPI Evas_Object     *elm_widget_focused_object_get(const Evas_Object *obj);
646 EAPI Evas_Object     *elm_widget_top_get(const Evas_Object *obj);
647 EAPI Eina_Bool        elm_widget_is(const Evas_Object *obj);
648 EAPI Evas_Object     *elm_widget_parent_widget_get(const Evas_Object *obj);
649 EAPI void             elm_widget_event_callback_add(Evas_Object *obj, Elm_Event_Cb func, const void *data);
650 EAPI void            *elm_widget_event_callback_del(Evas_Object *obj, Elm_Event_Cb func, const void *data);
651 EAPI Eina_Bool        elm_widget_event_propagate(Evas_Object *obj, Evas_Callback_Type type, void *event_info, Evas_Event_Flags *event_flags);
652 EAPI void             elm_widget_focus_custom_chain_set(Evas_Object *obj, Eina_List *objs);
653 EAPI void             elm_widget_focus_custom_chain_unset(Evas_Object *obj);
654 EAPI const Eina_List *elm_widget_focus_custom_chain_get(const Evas_Object *obj);
655 EAPI void             elm_widget_focus_custom_chain_append(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child);
656 EAPI void             elm_widget_focus_custom_chain_prepend(Evas_Object *obj, Evas_Object *child, Evas_Object *relative_child);
657 EAPI void             elm_widget_focus_cycle(Evas_Object *obj, Elm_Focus_Direction dir);
658 EAPI Eina_Bool        elm_widget_focus_direction_go(Evas_Object *obj, double degree);
659 EAPI Eina_Bool        elm_widget_focus_direction_get(const Evas_Object *obj, const Evas_Object *base, double degree, Evas_Object **direction, double *weight);
660 EAPI Eina_Bool        elm_widget_focus_next_get(const Evas_Object *obj, Elm_Focus_Direction dir, Evas_Object **next);
661 EAPI Eina_Bool        elm_widget_focus_list_direction_get(const Evas_Object  *obj, const Evas_Object *base, const Eina_List *items, void *(*list_data_get)(const Eina_List *list), double degree, Evas_Object **direction, double *weight);
662 EAPI Eina_Bool        elm_widget_focus_list_next_get(const Evas_Object *obj, const Eina_List *items, void *(*list_data_get)(const Eina_List *list), Elm_Focus_Direction dir, Evas_Object **next);
663 EAPI Evas_Object     *elm_widget_focus_next_object_get(const Evas_Object *obj, Elm_Focus_Direction dir);
664 EAPI void             elm_widget_focus_next_object_set(Evas_Object *obj, Evas_Object *next, Elm_Focus_Direction dir);
665 EAPI Eina_Bool        elm_widget_focus_highlight_style_set(Evas_Object *obj, const char *style);
666 EAPI const char      *elm_widget_focus_highlight_style_get(const Evas_Object *obj);
667 EAPI void             elm_widget_parent_highlight_set(Evas_Object *obj, Eina_Bool highlighted);
668 EAPI void             elm_widget_focus_set(Evas_Object *obj, Eina_Bool focus);
669 EAPI void             elm_widget_focused_object_clear(Evas_Object *obj);
670 EAPI Evas_Object     *elm_widget_parent_get(const Evas_Object *obj);
671 EAPI Evas_Object     *elm_widget_parent2_get(const Evas_Object *obj);
672 EAPI void             elm_widget_parent2_set(Evas_Object *obj, Evas_Object *parent);
673 EAPI void             elm_widget_focus_steal(Evas_Object *obj);
674 EAPI Evas_Object     *elm_widget_newest_focus_order_get(const Evas_Object *obj, unsigned int *newest_focus_order, Eina_Bool can_focus_only);
675 EAPI void             elm_widget_display_mode_set(Evas_Object *obj, Evas_Display_Mode dispmode);
676 EAPI Eina_Bool        elm_widget_focus_highlight_enabled_get(const Evas_Object *obj);
677 EAPI void             elm_widget_focus_highlight_focus_part_geometry_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);
678 EAPI const Elm_Widget_Smart_Class *elm_widget_smart_class_get(void);
679
680 /**
681  * @internal
682  *
683  * Restore the focus state of the sub-tree.
684  *
685  * This API will restore the focus state of the sub-tree to the latest
686  * state. If a sub-tree is unfocused and wants to get back to the latest
687  * focus state, this API will be helpful.
688  *
689  * @param obj The widget root of sub-tree
690  *
691  * @ingroup Widget
692  */
693 EAPI void             elm_widget_focus_restore(Evas_Object *obj);
694
695 EAPI void             elm_widget_disabled_set(Evas_Object *obj, Eina_Bool disabled);
696 EAPI Eina_Bool        elm_widget_disabled_get(const Evas_Object *obj);
697 EAPI void             elm_widget_show_region_set(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h, Eina_Bool forceshow);
698 EAPI void             elm_widget_show_region_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);
699 EAPI Eina_Bool        elm_widget_focus_region_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);
700 EAPI void             elm_widget_focus_region_show(const Evas_Object *obj);
701 EAPI void             elm_widget_parents_bounce_get(const Evas_Object *obj, Eina_Bool *horiz, Eina_Bool *vert);
702 EAPI void             elm_widget_scroll_hold_push(Evas_Object *obj);
703 EAPI void             elm_widget_scroll_hold_pop(Evas_Object *obj);
704 EAPI int              elm_widget_scroll_hold_get(const Evas_Object *obj);
705 EAPI void             elm_widget_scroll_freeze_push(Evas_Object *obj);
706 EAPI void             elm_widget_scroll_freeze_pop(Evas_Object *obj);
707 EAPI int              elm_widget_scroll_freeze_get(const Evas_Object *obj);
708 EAPI void             elm_widget_scale_set(Evas_Object *obj, double scale);
709 EAPI double           elm_widget_scale_get(const Evas_Object *obj);
710 EAPI Eina_Bool        elm_widget_mirrored_get(const Evas_Object *obj);
711 EAPI void             elm_widget_mirrored_set(Evas_Object *obj, Eina_Bool mirrored);
712 EAPI Eina_Bool        elm_widget_mirrored_automatic_get(const Evas_Object *obj);
713 EAPI void             elm_widget_mirrored_automatic_set(Evas_Object *obj, Eina_Bool automatic);
714 EAPI void             elm_widget_theme_set(Evas_Object *obj, Elm_Theme *th);
715 EAPI Elm_Theme       *elm_widget_theme_get(const Evas_Object *obj);
716 EAPI Eina_Bool        elm_widget_style_set(Evas_Object *obj, const char *style);
717 EAPI const char      *elm_widget_style_get(const Evas_Object *obj);
718 EAPI void             elm_widget_type_set(Evas_Object *obj, const char *type);
719 EAPI const char      *elm_widget_type_get(const Evas_Object *obj);
720 EAPI void             elm_widget_tooltip_add(Evas_Object *obj, Elm_Tooltip *tt);
721 EAPI void             elm_widget_tooltip_del(Evas_Object *obj, Elm_Tooltip *tt);
722 EAPI void             elm_widget_cursor_add(Evas_Object *obj, Elm_Cursor *cur);
723 EAPI void             elm_widget_cursor_del(Evas_Object *obj, Elm_Cursor *cur);
724 EAPI void             elm_widget_drag_lock_x_set(Evas_Object *obj, Eina_Bool lock);
725 EAPI void             elm_widget_drag_lock_y_set(Evas_Object *obj, Eina_Bool lock);
726 EAPI Eina_Bool        elm_widget_drag_lock_x_get(const Evas_Object *obj);
727 EAPI Eina_Bool        elm_widget_drag_lock_y_get(const Evas_Object *obj);
728 EAPI int              elm_widget_drag_child_locked_x_get(const Evas_Object *obj);
729 EAPI int              elm_widget_drag_child_locked_y_get(const Evas_Object *obj);
730 EAPI void             elm_widget_item_loop_enabled_set(Evas_Object *obj, Eina_Bool enable);
731 EAPI Eina_Bool        elm_widget_item_loop_enabled_get(const Evas_Object *obj);
732 EAPI Eina_Bool        elm_widget_theme_object_set(Evas_Object *obj, Evas_Object *edj, const char *wname, const char *welement, const char *wstyle);
733 EAPI Eina_Bool        elm_widget_type_check(const Evas_Object *obj, const char *type, const char *func);
734 EAPI Evas_Object     *elm_widget_name_find(const Evas_Object *obj, const char *name, int recurse);
735 EAPI Eina_List       *elm_widget_stringlist_get(const char *str);
736 EAPI void             elm_widget_stringlist_free(Eina_List *list);
737 EAPI void             elm_widget_focus_hide_handle(Evas_Object *obj);
738 EAPI void             elm_widget_focus_mouse_up_handle(Evas_Object *obj);
739 EAPI void             elm_widget_focus_tree_unfocusable_handle(Evas_Object *obj);
740 EAPI void             elm_widget_focus_disabled_handle(Evas_Object *obj);
741 EAPI unsigned int     elm_widget_focus_order_get(const Evas_Object *obj);
742 EAPI void             elm_widget_activate(Evas_Object *obj, Elm_Activate act);
743 EAPI void             elm_widget_part_text_set(Evas_Object *obj, const char *part, const char *label);
744 EAPI const char      *elm_widget_part_text_get(const Evas_Object *obj, const char *part);
745 EAPI void             elm_widget_domain_translatable_part_text_set(Evas_Object *obj, const char *part, const char *domain, const char *text);
746 EAPI const char      *elm_widget_translatable_part_text_get(const Evas_Object *obj, const char *part);
747 EAPI void             elm_widget_domain_part_text_translatable_set(Evas_Object *obj, const char *part, const char *domain, Eina_Bool translatable);
748 EAPI const char *     elm_widget_part_text_translate(Evas_Object *obj, const char *part, const char *text);
749 EAPI void             elm_widget_content_part_set(Evas_Object *obj, const char *part, Evas_Object *content);
750 EAPI Evas_Object     *elm_widget_content_part_get(const Evas_Object *obj, const char *part);
751 EAPI Evas_Object     *elm_widget_content_part_unset(Evas_Object *obj, const char *part);
752 EAPI void             elm_widget_access_info_set(Evas_Object *obj, const char *txt);
753 EAPI const char      *elm_widget_access_info_get(const Evas_Object *obj);
754 EAPI void             elm_widget_orientation_set(Evas_Object *obj, int rotation);
755 EAPI Elm_Object_Item *elm_widget_focused_item_get(const Evas_Object *obj);
756 EAPI void             elm_widget_orientation_mode_disabled_set(Evas_Object *obj, Eina_Bool disabled);
757 EAPI Eina_Bool        elm_widget_orientation_mode_disabled_get(const Evas_Object *obj);
758 EAPI void             elm_widget_focus_highlight_geometry_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h, Eina_Bool is_next);
759 EAPI Elm_Widget_Item *_elm_widget_item_new(Evas_Object *parent, size_t alloc_size);
760 EAPI void             _elm_widget_item_free(Elm_Widget_Item *item);
761 EAPI Evas_Object     *_elm_widget_item_widget_get(const Elm_Widget_Item *item);
762 EAPI void             _elm_widget_item_del(Elm_Widget_Item *item);
763 EAPI void             _elm_widget_item_pre_notify_del(Elm_Widget_Item *item);
764 EAPI void             _elm_widget_item_del_cb_set(Elm_Widget_Item *item, Evas_Smart_Cb del_cb);
765 EAPI void             _elm_widget_item_data_set(Elm_Widget_Item *item, const void *data);
766 EAPI void            *_elm_widget_item_data_get(const Elm_Widget_Item *item);
767 EAPI void             _elm_widget_item_tooltip_text_set(Elm_Widget_Item *item, const char *text);
768 EAPI void             _elm_widget_item_tooltip_translatable_text_set(Elm_Widget_Item *item, const char *text);
769 EAPI void             _elm_widget_item_tooltip_content_cb_set(Elm_Widget_Item *item, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb);
770 EAPI void             _elm_widget_item_tooltip_unset(Elm_Widget_Item *item);
771 EAPI void             _elm_widget_item_tooltip_style_set(Elm_Widget_Item *item, const char *style);
772 EAPI Eina_Bool        _elm_widget_item_tooltip_window_mode_set(Elm_Widget_Item *item, Eina_Bool disable);
773 EAPI Eina_Bool        _elm_widget_item_tooltip_window_mode_get(const Elm_Widget_Item *item);
774 EAPI const char      *_elm_widget_item_tooltip_style_get(const Elm_Widget_Item *item);
775 EAPI void             _elm_widget_item_cursor_set(Elm_Widget_Item *item, const char *cursor);
776 EAPI const char      *_elm_widget_item_cursor_get(const Elm_Widget_Item *item);
777 EAPI void             _elm_widget_item_cursor_unset(Elm_Widget_Item *item);
778 EAPI void             _elm_widget_item_cursor_style_set(Elm_Widget_Item *item, const char *style);
779 EAPI const char      *_elm_widget_item_cursor_style_get(const Elm_Widget_Item *item);
780 EAPI void             _elm_widget_item_cursor_engine_only_set(Elm_Widget_Item *item, Eina_Bool engine_only);
781 EAPI Eina_Bool        _elm_widget_item_cursor_engine_only_get(const Elm_Widget_Item *item);
782 EAPI void             _elm_widget_item_part_content_set(Elm_Widget_Item *item, const char *part, Evas_Object *content);
783 EAPI Evas_Object     *_elm_widget_item_part_content_get(const Elm_Widget_Item *item, const char *part);
784 EAPI Evas_Object     *_elm_widget_item_part_content_unset(Elm_Widget_Item *item, const char *part);
785 EAPI void             _elm_widget_item_part_text_set(Elm_Widget_Item *item, const char *part, const char *label);
786 EAPI const char      *_elm_widget_item_part_text_get(const Elm_Widget_Item *item, const char *part);
787 EAPI void             _elm_widget_item_part_text_custom_set(Elm_Widget_Item *item, const char *part, const char *label);
788 EAPI const char      *_elm_widget_item_part_text_custom_get(Elm_Widget_Item *item, const char *part);
789 EAPI void             _elm_widget_item_part_text_custom_update(Elm_Widget_Item *item);
790 EAPI void            _elm_widget_item_focus_set(Elm_Widget_Item *item, Eina_Bool focused);
791 EAPI Eina_Bool       _elm_widget_item_focus_get(const Elm_Widget_Item *item);
792 EAPI void            _elm_widget_item_style_set(Elm_Widget_Item *item, const char *style);
793 EAPI const char      *_elm_widget_item_style_get(Elm_Widget_Item *item);
794
795 EAPI void             _elm_widget_item_signal_callback_add(Elm_Widget_Item *item, const char *emission, const char *source, Elm_Widget_Item_Signal_Cb func, void *data);
796 EAPI void            *_elm_widget_item_signal_callback_del(Elm_Widget_Item *it, const char *emission, const char *source, Elm_Widget_Item_Signal_Cb func);
797 EAPI void             _elm_widget_item_signal_emit(Elm_Widget_Item *item, const char *emission, const char *source);
798 EAPI void             _elm_widget_item_content_set_hook_set(Elm_Widget_Item *item, Elm_Widget_Content_Set_Cb func);
799 EAPI void             _elm_widget_item_content_get_hook_set(Elm_Widget_Item *item, Elm_Widget_Content_Get_Cb func);
800 EAPI void             _elm_widget_item_content_unset_hook_set(Elm_Widget_Item *item, Elm_Widget_Content_Unset_Cb func);
801 EAPI void             _elm_widget_item_text_set_hook_set(Elm_Widget_Item *item, Elm_Widget_Text_Set_Cb func);
802 EAPI void             _elm_widget_item_text_get_hook_set(Elm_Widget_Item *item, Elm_Widget_Text_Get_Cb func);
803 EAPI void             _elm_widget_item_signal_emit_hook_set(Elm_Widget_Item *it, Elm_Widget_Signal_Emit_Cb func);
804 EAPI void             _elm_widget_item_access_info_set(Elm_Widget_Item *item, const char *txt);
805 EAPI void             _elm_widget_item_disabled_set(Elm_Widget_Item *item, Eina_Bool disabled);
806 EAPI Eina_Bool        _elm_widget_item_disabled_get(const Elm_Widget_Item *item);
807 EAPI void             _elm_widget_item_disable_hook_set(Elm_Widget_Item *item, Elm_Widget_Disable_Cb func);
808 EAPI void             _elm_widget_item_del_pre_hook_set(Elm_Widget_Item *item, Elm_Widget_Del_Pre_Cb func);
809 EAPI void             _elm_widget_item_style_set_hook_set(Elm_Widget_Item *item, Elm_Widget_Style_Set_Cb func);
810 EAPI void             _elm_widget_item_style_get_hook_set(Elm_Widget_Item *item, Elm_Widget_Style_Get_Cb func);
811 EAPI void             _elm_widget_item_focus_get_hook_set(Elm_Widget_Item *item, Elm_Widget_Focus_Get_Cb func);
812 EAPI void             _elm_widget_item_focus_set_hook_set(Elm_Widget_Item *item, Elm_Widget_Focus_Set_Cb func);
813 EAPI void             _elm_widget_item_domain_translatable_part_text_set(Elm_Widget_Item *item, const char *part, const char *domain, const char *label);
814 EAPI const char *     _elm_widget_item_translatable_part_text_get(const Elm_Widget_Item *item, const char *part);
815 EAPI void             _elm_widget_item_translate(Elm_Widget_Item *item);
816 EAPI void             _elm_widget_item_domain_part_text_translatable_set(Elm_Widget_Item *item, const char *part, const char *domain, Eina_Bool translatable);
817
818 EAPI Evas_Object     *elm_widget_item_track(Elm_Widget_Item *item);
819 EAPI void             elm_widget_item_untrack(Elm_Widget_Item *item);
820 EAPI int              elm_widget_item_track_get(const Elm_Widget_Item *item);
821 EAPI void             _elm_widget_item_track_cancel(Elm_Widget_Item *item);
822 void                  _elm_widget_item_highlight_in_theme(Evas_Object *obj, Elm_Object_Item *it);
823
824 /**
825  * Function to operate on a given widget's scrollabe children when necessary.
826  * @warning free the returned list with eina_list_free().
827  */
828 EAPI Eina_List       *elm_widget_scrollable_children_get(const Evas_Object *obj);
829
830 /* debug function. don't use it unless you are tracking parenting issues */
831 EAPI void             elm_widget_tree_dump(const Evas_Object *top);
832 EAPI void             elm_widget_tree_dot_dump(const Evas_Object *top, FILE *output);
833
834 #define ELM_WIDGET_DATA_GET_OR_RETURN(o, ptr, ...)   \
835   Elm_Widget_Smart_Data *ptr;                        \
836   ptr = eo_data_scope_get(o, ELM_OBJ_WIDGET_CLASS);  \
837   if (EINA_UNLIKELY(!ptr))                           \
838     {                                                \
839        CRI("no widget data for object %p (%s)",      \
840            o, evas_object_type_get(o));              \
841        return __VA_ARGS__;                           \
842     }
843
844 #define ELM_WIDGET_CHECK(obj)                              \
845   if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_WIDGET_CLASS))) \
846     return
847
848 /**
849  * Convenience macro to create new widget item, doing casts for you.
850  * @see _elm_widget_item_new()
851  * @param parent a valid elm_widget variant.
852  * @param type the C type that extends Elm_Widget_Item
853  */
854 #define elm_widget_item_new(parent, type) \
855   (type *)_elm_widget_item_new((parent), sizeof(type))
856 /**
857  * Convenience macro to free widget item, doing casts for you.
858  * @see _elm_widget_item_free()
859  * @param item a valid item.
860  */
861 #define elm_widget_item_free(item) \
862   _elm_widget_item_free((Elm_Widget_Item *)item)
863
864 /**
865  * Convenience macro to delete widget item, doing casts for you.
866  * @see _elm_widget_item_del()
867  * @param item a valid item.
868  */
869 #define elm_widget_item_del(item) \
870   _elm_widget_item_del((Elm_Widget_Item *)item)
871 /**
872  * Convenience macro to notify deletion of widget item, doing casts for you.
873  * @see _elm_widget_item_pre_notify_del()
874  */
875 #define elm_widget_item_pre_notify_del(item) \
876   _elm_widget_item_pre_notify_del((Elm_Widget_Item *)item)
877 /**
878  * Convenience macro to set deletion callback of widget item, doing casts for you.
879  * @see _elm_widget_item_del_cb_set()
880  */
881 #define elm_widget_item_del_cb_set(item, del_cb) \
882   _elm_widget_item_del_cb_set((Elm_Widget_Item *)item, del_cb)
883
884 /**
885  * Get item's owner widget
886  * @see _elm_widget_item_widget_get()
887  */
888 #define elm_widget_item_widget_get(item) \
889   _elm_widget_item_widget_get((const Elm_Widget_Item *)item)
890
891 /**
892  * Set item's data
893  * @see _elm_widget_item_data_set()
894  */
895 #define elm_widget_item_data_set(item, data) \
896   _elm_widget_item_data_set((Elm_Widget_Item *)item, data)
897 /**
898  * Get item's data
899  * @see _elm_widget_item_data_get()
900  */
901 #define elm_widget_item_data_get(item) \
902   _elm_widget_item_data_get((const Elm_Widget_Item *)item)
903
904 /**
905  * Convenience function to set widget item tooltip as a text string.
906  * @see _elm_widget_item_tooltip_text_set()
907  */
908 #define elm_widget_item_tooltip_text_set(item, text) \
909   _elm_widget_item_tooltip_text_set((Elm_Widget_Item *)item, text)
910 /**
911  * Convenience function to set widget item tooltip as a text string.
912  * @see _elm_widget_item_tooltip_text_set()
913  */
914 #define elm_widget_item_tooltip_translatable_text_set(item, text) \
915   _elm_widget_item_tooltip_translatable_text_set((Elm_Widget_Item *)item, text)
916 /**
917  * Convenience function to set widget item tooltip.
918  * @see _elm_widget_item_tooltip_content_cb_set()
919  */
920 #define elm_widget_item_tooltip_content_cb_set(item, func, data, del_cb) \
921   _elm_widget_item_tooltip_content_cb_set((Elm_Widget_Item *)item,       \
922                                           func, data, del_cb)
923 /**
924  * Convenience function to unset widget item tooltip.
925  * @see _elm_widget_item_tooltip_unset()
926  */
927 #define elm_widget_item_tooltip_unset(item) \
928   _elm_widget_item_tooltip_unset((Elm_Widget_Item *)item)
929 /**
930  * Convenience function to change item's tooltip style.
931  * @see _elm_widget_item_tooltip_style_set()
932  */
933 #define elm_widget_item_tooltip_style_set(item, style) \
934   _elm_widget_item_tooltip_style_set((Elm_Widget_Item *)item, style)
935
936 #define elm_widget_item_tooltip_window_mode_set(item, disable) \
937   _elm_widget_item_tooltip_window_mode_set((Elm_Widget_Item *)item, disable)
938
939 #define elm_widget_item_tooltip_window_mode_get(item) \
940   _elm_widget_item_tooltip_window_mode_get((Elm_Widget_Item *)item)
941 /**
942  * Convenience function to query item's tooltip style.
943  * @see _elm_widget_item_tooltip_style_get()
944  */
945 #define elm_widget_item_tooltip_style_get(item) \
946   _elm_widget_item_tooltip_style_get((const Elm_Widget_Item *)item)
947 /**
948  * Convenience function to set widget item cursor.
949  * @see _elm_widget_item_cursor_set()
950  */
951 #define elm_widget_item_cursor_set(item, cursor) \
952   _elm_widget_item_cursor_set((Elm_Widget_Item *)item, cursor)
953 /**
954  * Convenience function to get widget item cursor.
955  * @see _elm_widget_item_cursor_get()
956  */
957 #define elm_widget_item_cursor_get(item) \
958   _elm_widget_item_cursor_get((const Elm_Widget_Item *)item)
959 /**
960  * Convenience function to unset widget item cursor.
961  * @see _elm_widget_item_cursor_unset()
962  */
963 #define elm_widget_item_cursor_unset(item) \
964   _elm_widget_item_cursor_unset((Elm_Widget_Item *)item)
965 /**
966  * Convenience function to change item's cursor style.
967  * @see _elm_widget_item_cursor_style_set()
968  */
969 #define elm_widget_item_cursor_style_set(item, style) \
970   _elm_widget_item_cursor_style_set((Elm_Widget_Item *)item, style)
971 /**
972  * Convenience function to query item's cursor style.
973  * @see _elm_widget_item_cursor_style_get()
974  */
975 #define elm_widget_item_cursor_style_get(item) \
976   _elm_widget_item_cursor_style_get((const Elm_Widget_Item *)item)
977 /**
978  * Convenience function to change item's cursor engine_only.
979  * @see _elm_widget_item_cursor_engine_only_set()
980  */
981 #define elm_widget_item_cursor_engine_only_set(item, engine_only) \
982   _elm_widget_item_cursor_engine_only_set((Elm_Widget_Item *)item, engine_only)
983 /**
984  * Convenience function to query item's cursor engine_only.
985  * @see _elm_widget_item_cursor_engine_only_get()
986  */
987 #define elm_widget_item_cursor_engine_only_get(item) \
988   _elm_widget_item_cursor_engine_only_get((const Elm_Widget_Item *)item)
989 /**
990  * Convenience function to query item's content set hook.
991  * @see _elm_widget_item_content_set_hook_set()
992  */
993 #define elm_widget_item_content_set_hook_set(item, func) \
994   _elm_widget_item_content_set_hook_set((Elm_Widget_Item *)item, (Elm_Widget_Content_Set_Cb)func)
995 /**
996  * Convenience function to query item's content get hook.
997  * @see _elm_widget_item_content_get_hook_set()
998  */
999 #define elm_widget_item_content_get_hook_set(item, func) \
1000   _elm_widget_item_content_get_hook_set((Elm_Widget_Item *)item, (Elm_Widget_Content_Get_Cb)func)
1001 /**
1002  * Convenience function to query item's content unset hook.
1003  * @see _elm_widget_item_content_unset_hook_set()
1004  */
1005 #define elm_widget_item_content_unset_hook_set(item, func) \
1006   _elm_widget_item_content_unset_hook_set((Elm_Widget_Item *)item, (Elm_Widget_Content_Unset_Cb)func)
1007 /**
1008  * Convenience function to query item's text set hook.
1009  * @see _elm_widget_item_text_set_hook_set()
1010  */
1011 #define elm_widget_item_text_set_hook_set(item, func) \
1012   _elm_widget_item_text_set_hook_set((Elm_Widget_Item *)item, (Elm_Widget_Text_Set_Cb)func)
1013 /**
1014  * Convenience function to query item's text get hook.
1015  * @see _elm_widget_item_text_get_hook_set()
1016  */
1017 #define elm_widget_item_text_get_hook_set(item, func) \
1018   _elm_widget_item_text_get_hook_set((Elm_Widget_Item *)item, (Elm_Widget_Text_Get_Cb)func)
1019 /**
1020  * Convenience function to query item's signal emit hook.
1021  * @see _elm_widget_item_signal_emit_hook_set()
1022  */
1023 #define elm_widget_item_signal_emit_hook_set(item, func) \
1024   _elm_widget_item_signal_emit_hook_set((Elm_Widget_Item *)item, (Elm_Widget_Signal_Emit_Cb)func)
1025 /**
1026  * Convenience function to query disable get hook.
1027  * @see _elm_widget_item_disabled_get()
1028  */
1029 #define elm_widget_item_disabled_get(item) \
1030   _elm_widget_item_disabled_get((Elm_Widget_Item *)item)
1031 /**
1032  * Convenience function to query disable set hook.
1033  * @see _elm_widget_item_disable_hook_set()
1034  */
1035 #define elm_widget_item_disable_hook_set(item, func) \
1036   _elm_widget_item_disable_hook_set((Elm_Widget_Item *)item, (Elm_Widget_Disable_Cb)func)
1037 /**
1038  * Convenience function to query del pre hook.
1039  * @see _elm_widget_item_del_pre_hook_set()
1040  */
1041 #define elm_widget_item_del_pre_hook_set(item, func) \
1042   _elm_widget_item_del_pre_hook_set((Elm_Widget_Item *)item, (Elm_Widget_Del_Pre_Cb)func)
1043 /**
1044  * Convenience function to query style set hook.
1045  * @see _elm_widget_item_style_set_hook_set()
1046  */
1047 #define elm_widget_item_style_set_hook_set(item, func) \
1048   _elm_widget_item_style_set_hook_set((Elm_Widget_Item *)item, (Elm_Widget_Style_Set_Cb)func)
1049 /**
1050  * Convenience function to query style get hook.
1051  * @see _elm_widget_item_style_get_hook_set()
1052  */
1053 #define elm_widget_item_style_get_hook_set(item, func) \
1054   _elm_widget_item_style_get_hook_set((Elm_Widget_Item *)item, (Elm_Widget_Style_Get_Cb)func)
1055
1056 /**
1057  * Convenience function to set style .
1058  * @see _elm_widget_item_style_set()
1059  */
1060 #define elm_widget_item_style_set(item, style) \
1061   _elm_widget_item_style_set((Elm_Widget_Item *)item, style)
1062 /**
1063  * Convenience function to get style .
1064  * @see _elm_widget_item_style_get()
1065  */
1066 #define elm_widget_item_style_get(item) \
1067   _elm_widget_item_style_get((Elm_Widget_Item *)item)
1068
1069 /**
1070  * Convenience function to query focus set hook.
1071  * @see _elm_widget_item_focus_set_hook_set()
1072  */
1073 #define elm_widget_item_focus_set_hook_set(item, func) \
1074   _elm_widget_item_focus_set_hook_set((Elm_Widget_Item *)item, (Elm_Widget_Focus_Set_Cb)func)
1075
1076 /**
1077  * Convenience function to query focus get hook.
1078  * @see _elm_widget_item_focus_get_hook_set()
1079  */
1080 #define elm_widget_item_focus_get_hook_set(item, func) \
1081   _elm_widget_item_focus_get_hook_set((Elm_Widget_Item *)item, (Elm_Widget_Focus_Get_Cb)func)
1082
1083 /**
1084  * Convenience function to query track_cancel.
1085  * @see _elm_widget_item_del_pre_hook_set()
1086  */
1087 #define elm_widget_item_track_cancel(item) \
1088   _elm_widget_item_track_cancel((Elm_Widget_Item *)item)
1089
1090 /**
1091  * Convenience function to query translate hook.
1092  * @see _elm_widget_item_track_cancel()
1093  */
1094 #define elm_widget_item_translate(item) \
1095   _elm_widget_item_translate((Elm_Widget_Item *)item)
1096
1097 /**
1098  * Convenience function to save additional text part content.
1099  * @see _elm_widget_item_part_text_custom_set()
1100  */
1101 #define elm_widget_item_part_text_custom_set(item, part, text) \
1102   _elm_widget_item_part_text_custom_set((Elm_Widget_Item *)item, part, text)
1103
1104 /**
1105  * Convenience function to get additional text part content.
1106  * @see _elm_widget_item_part_text_custom_set()
1107  */
1108 #define elm_widget_item_part_text_custom_get(item, part) \
1109   _elm_widget_item_part_text_custom_get((Elm_Widget_Item *)item, part)
1110
1111 /**
1112  * Convenience function to update additional text part content.
1113  * @see _elm_widget_item_part_text_custom_set()
1114  */
1115 #define elm_widget_item_part_text_custom_update(item) \
1116   _elm_widget_item_part_text_custom_update((Elm_Widget_Item *)item)
1117
1118 /**
1119  * Convenience function to set the focus on widget item.
1120  * @see _elm_widget_item_focus_set()
1121  */
1122 #define elm_widget_item_focus_set(item, focused) \
1123   _elm_widget_item_focus_set((Elm_Widget_Item *)item, focused)
1124
1125 /**
1126  * Convenience function to query focus set hook.
1127  * @see _elm_widget_item_focus_get()
1128  */
1129 #define elm_widget_item_focus_get(item) \
1130   _elm_widget_item_focus_get((const Elm_Widget_Item *)item)
1131
1132 #define ELM_WIDGET_CHECK_OR_RETURN(obj, ...)                    \
1133    do {                                                         \
1134         if (!obj || !evas_object_smart_data_get(obj))           \
1135           {                                                     \
1136              ERR("Object [%p] is NULL or already deleted", obj);\
1137              return __VA_ARGS__;                                \
1138           }                                                     \
1139    } while (0)
1140
1141 #define ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item, ...)              \
1142    do {                                                         \
1143        if (item && (item)->on_deletion) {                       \
1144             WRN("Elm_Widget_Item " # item " is deleting");      \
1145             return __VA_ARGS__;                                 \
1146         }                                                       \
1147    } while (0)
1148
1149 #define ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, ...)              \
1150    do {                                                         \
1151         if (!item) {                                            \
1152              CRI("Elm_Widget_Item " # item " is NULL");    \
1153              return __VA_ARGS__;                                \
1154         }                                                       \
1155        if (!EINA_MAGIC_CHECK(item, ELM_WIDGET_ITEM_MAGIC)) {    \
1156             EINA_MAGIC_FAIL(item, ELM_WIDGET_ITEM_MAGIC);       \
1157             return __VA_ARGS__;                                 \
1158          }                                                      \
1159   } while (0)
1160
1161 #define ELM_WIDGET_ITEM_CHECK_OR_GOTO(item, label)              \
1162   do {                                                          \
1163         if (!item) {                                            \
1164              CRI("Elm_Widget_Item " # item " is NULL");    \
1165              goto label;                                        \
1166         }                                                       \
1167        if (!EINA_MAGIC_CHECK(item, ELM_WIDGET_ITEM_MAGIC)) {    \
1168             EINA_MAGIC_FAIL(item, ELM_WIDGET_ITEM_MAGIC);       \
1169             goto label;                                         \
1170          }                                                      \
1171   } while (0)
1172
1173 /* to be used by INTERNAL classes on Elementary, so that the widgets
1174  * parsing script skips it */
1175 #define ELM_INTERNAL_SMART_SUBCLASS_NEW EVAS_SMART_SUBCLASS_NEW
1176
1177 EAPI Eina_Bool elm_selection_selection_has_owner(Evas_Object *obj);
1178
1179 #include "elm_widget.eo.h"
1180
1181 typedef void (*region_hook_func_type)(void *data, Evas_Object *obj);
1182 typedef void * (*list_data_get_func_type)(const Eina_List * l);
1183
1184 #if 0
1185 #define ELM_OBJ_WIDGET_CLASS elm_widget_class_get()
1186
1187 const Eo_Class *elm_widget_class_get(void) EINA_CONST;
1188
1189 extern EAPI Eo_Op ELM_WIDGET_BASE_ID;
1190
1191 enum
1192 {
1193    ELM_WIDGET_SUB_ID_ON_FOCUS,
1194    ELM_WIDGET_SUB_ID_DISABLE,
1195    ELM_WIDGET_SUB_ID_THEME_APPLY,
1196    ELM_WIDGET_SUB_ID_TRANSLATE,
1197    ELM_WIDGET_SUB_ID_EVENT,
1198    ELM_WIDGET_SUB_ID_ON_FOCUS_REGION,
1199    ELM_WIDGET_SUB_ID_FOCUS_NEXT_MANAGER_IS,
1200    ELM_WIDGET_SUB_ID_FOCUS_NEXT,
1201    ELM_WIDGET_SUB_ID_FOCUS_DIRECTION_MANAGER_IS,
1202    ELM_WIDGET_SUB_ID_FOCUS_DIRECTION,
1203    ELM_WIDGET_SUB_ID_SUB_OBJECT_ADD,
1204    ELM_WIDGET_SUB_ID_SUB_OBJECT_DEL,
1205    ELM_WIDGET_SUB_ID_ACCESS,
1206    ELM_WIDGET_SUB_ID_PARENT_SET,
1207    ELM_WIDGET_SUB_ID_PARENT_GET,
1208    ELM_WIDGET_SUB_ID_PARENT2_SET,
1209    ELM_WIDGET_SUB_ID_PARENT2_GET,
1210    ELM_WIDGET_SUB_ID_ACTIVATE,
1211
1212    ELM_WIDGET_SUB_ID_MIRRORED_GET,
1213    ELM_WIDGET_SUB_ID_MIRRORED_SET,
1214    ELM_WIDGET_SUB_ID_MIRRORED_AUTOMATIC_GET,
1215    ELM_WIDGET_SUB_ID_MIRRORED_AUTOMATIC_SET,
1216
1217    ELM_WIDGET_SUB_ID_HIGHLIGHT_IGNORE_SET,
1218    ELM_WIDGET_SUB_ID_HIGHLIGHT_IGNORE_GET,
1219    ELM_WIDGET_SUB_ID_HIGHLIGHT_IN_THEME_SET,
1220    ELM_WIDGET_SUB_ID_HIGHLIGHT_IN_THEME_GET,
1221    ELM_WIDGET_SUB_ID_ACCESS_HIGHLIGHT_IN_THEME_SET,
1222    ELM_WIDGET_SUB_ID_ACCESS_HIGHLIGHT_IN_THEME_GET,
1223
1224    ELM_WIDGET_SUB_ID_SCROLL_HOLD_PUSH,
1225    ELM_WIDGET_SUB_ID_SCROLL_HOLD_POP,
1226    ELM_WIDGET_SUB_ID_SCROLL_HOLD_GET,
1227    ELM_WIDGET_SUB_ID_SCROLL_FREEZE_PUSH,
1228    ELM_WIDGET_SUB_ID_SCROLL_FREEZE_POP,
1229    ELM_WIDGET_SUB_ID_SCROLL_FREEZE_GET,
1230
1231    ELM_WIDGET_SUB_ID_ON_SHOW_REGION_HOOK_SET,
1232    ELM_WIDGET_SUB_ID_RESIZE_OBJECT_SET,
1233    ELM_WIDGET_SUB_ID_HOVER_OBJECT_SET,
1234
1235    ELM_WIDGET_SUB_ID_CAN_FOCUS_SET,
1236    ELM_WIDGET_SUB_ID_CAN_FOCUS_GET,
1237    ELM_WIDGET_SUB_ID_CHILD_CAN_FOCUS_GET,
1238    ELM_WIDGET_SUB_ID_FOCUS_GET,
1239    ELM_WIDGET_SUB_ID_HIGHLIGHT_GET,
1240    ELM_WIDGET_SUB_ID_FOCUSED_OBJECT_GET,
1241    ELM_WIDGET_SUB_ID_TOP_GET,
1242
1243    ELM_WIDGET_SUB_ID_PARENT_WIDGET_GET,
1244
1245    ELM_WIDGET_SUB_ID_FOCUS_SET,
1246    ELM_WIDGET_SUB_ID_FOCUSED_OBJECT_CLEAR,
1247    ELM_WIDGET_SUB_ID_FOCUS_STEAL,
1248    ELM_WIDGET_SUB_ID_FOCUS_RESTORE,
1249
1250    ELM_WIDGET_SUB_ID_DISABLED_SET,
1251    ELM_WIDGET_SUB_ID_DISABLED_GET,
1252    ELM_WIDGET_SUB_ID_SHOW_REGION_SET,
1253    ELM_WIDGET_SUB_ID_SHOW_REGION_GET,
1254
1255    ELM_WIDGET_SUB_ID_PARENTS_BOUNCE_GET,
1256
1257    ELM_WIDGET_SUB_ID_SCROLLABLE_CHILDREN_GET,
1258    ELM_WIDGET_SUB_ID_SCALE_SET,
1259    ELM_WIDGET_SUB_ID_SCALE_GET,
1260
1261    ELM_WIDGET_SUB_ID_PART_TEXT_SET,
1262    ELM_WIDGET_SUB_ID_PART_TEXT_GET,
1263    ELM_WIDGET_SUB_ID_DOMAIN_TRANSLATABLE_PART_TEXT_SET,
1264    ELM_WIDGET_SUB_ID_TRANSLATABLE_PART_TEXT_GET,
1265    ELM_WIDGET_SUB_ID_DOMAIN_PART_TEXT_TRANSLATABLE_SET,
1266    ELM_WIDGET_SUB_ID_PART_TEXT_TRANSLATE,
1267    ELM_WIDGET_SUB_ID_ACCESS_INFO_SET,
1268    ELM_WIDGET_SUB_ID_ACCESS_INFO_GET,
1269
1270    ELM_WIDGET_SUB_ID_THEME_SET,
1271    ELM_WIDGET_SUB_ID_THEME_GET,
1272
1273    ELM_WIDGET_SUB_ID_STYLE_SET,
1274    ELM_WIDGET_SUB_ID_STYLE_GET,
1275    ELM_WIDGET_SUB_ID_TOOLTIP_ADD,
1276    ELM_WIDGET_SUB_ID_TOOLTIP_DEL,
1277    ELM_WIDGET_SUB_ID_CURSOR_ADD,
1278    ELM_WIDGET_SUB_ID_CURSOR_DEL,
1279
1280    ELM_WIDGET_SUB_ID_DRAG_LOCK_X_SET,
1281    ELM_WIDGET_SUB_ID_DRAG_LOCK_Y_SET,
1282    ELM_WIDGET_SUB_ID_DRAG_LOCK_X_GET,
1283    ELM_WIDGET_SUB_ID_DRAG_LOCK_Y_GET,
1284    ELM_WIDGET_SUB_ID_DRAG_CHILD_LOCKED_X_GET,
1285    ELM_WIDGET_SUB_ID_DRAG_CHILD_LOCKED_Y_GET,
1286    ELM_WIDGET_SUB_ID_ITEM_LOOP_ENABLED_SET,
1287    ELM_WIDGET_SUB_ID_ITEM_LOOP_ENABLED_GET,
1288
1289    ELM_WIDGET_SUB_ID_EVENT_CALLBACK_ADD,
1290    ELM_WIDGET_SUB_ID_EVENT_CALLBACK_DEL,
1291    ELM_WIDGET_SUB_ID_EVENT_PROPAGATE,
1292
1293    ELM_WIDGET_SUB_ID_SIGNAL_EMIT,
1294    ELM_WIDGET_SUB_ID_SIGNAL_CALLBACK_ADD,
1295    ELM_WIDGET_SUB_ID_SIGNAL_CALLBACK_DEL,
1296
1297    ELM_WIDGET_SUB_ID_NAME_FIND,
1298
1299    ELM_WIDGET_SUB_ID_FOCUS_HIDE_HANDLE,
1300    ELM_WIDGET_SUB_ID_FOCUS_MOUSE_UP_HANDLE,
1301    ELM_WIDGET_SUB_ID_FOCUS_TREE_UNFOCUSABLE_HANDLE,
1302    ELM_WIDGET_SUB_ID_FOCUS_DISABLED_HANDLE,
1303    ELM_WIDGET_SUB_ID_FOCUS_ORDER_GET,
1304    ELM_WIDGET_SUB_ID_FOCUS_REGION_GET,
1305    ELM_WIDGET_SUB_ID_FOCUS_REGION_SHOW,
1306    ELM_WIDGET_SUB_ID_FOCUS_HIGHLIGHT_STYLE_SET,
1307    ELM_WIDGET_SUB_ID_FOCUS_HIGHLIGHT_STYLE_GET,
1308
1309    ELM_WIDGET_SUB_ID_THEME_OBJECT_SET,
1310    ELM_WIDGET_SUB_ID_ORIENTATION_SET,
1311    ELM_WIDGET_SUB_ID_ORIENTATION_MODE_DISABLED_SET,
1312    ELM_WIDGET_SUB_ID_ORIENTATION_MODE_DISABLED_GET,
1313
1314 /* internal */
1315    ELM_WIDGET_SUB_ID_FOCUS_CUSTOM_CHAIN_SET,
1316    ELM_WIDGET_SUB_ID_FOCUS_CUSTOM_CHAIN_GET,
1317    ELM_WIDGET_SUB_ID_FOCUS_CUSTOM_CHAIN_UNSET,
1318    ELM_WIDGET_SUB_ID_FOCUS_CUSTOM_CHAIN_APPEND,
1319    ELM_WIDGET_SUB_ID_FOCUS_CUSTOM_CHAIN_PREPEND,
1320    ELM_WIDGET_SUB_ID_FOCUS_CYCLE,
1321    ELM_WIDGET_SUB_ID_FOCUS_DIRECTION_GO,
1322    ELM_WIDGET_SUB_ID_FOCUS_DIRECTION_GET,
1323    ELM_WIDGET_SUB_ID_FOCUS_LIST_DIRECTION_GET,
1324    ELM_WIDGET_SUB_ID_FOCUS_NEXT_GET,
1325    ELM_WIDGET_SUB_ID_FOCUS_LIST_NEXT_GET,
1326    ELM_WIDGET_SUB_ID_FOCUS_NEXT_OBJECT_GET,
1327    ELM_WIDGET_SUB_ID_FOCUS_NEXT_OBJECT_SET,
1328    ELM_WIDGET_SUB_ID_PARENT_HIGHLIGHT_SET,
1329
1330    ELM_WIDGET_SUB_ID_DISPLAY_MODE_SET,
1331
1332    ELM_WIDGET_SUB_ID_TREE_UNFOCUSABLE_SET,
1333    ELM_WIDGET_SUB_ID_TREE_UNFOCUSABLE_GET,
1334
1335    ELM_WIDGET_SUB_ID_CAN_FOCUS_CHILD_LIST_GET,
1336    ELM_WIDGET_SUB_ID_NEWEST_FOCUS_ORDER_GET,
1337    ELM_WIDGET_SUB_ID_FOCUS_HIGHLIGHT_GEOMETRY_GET,
1338    ELM_WIDGET_SUB_ID_FOCUSED_ITEM_GET,
1339 #if 0
1340    ELM_WIDGET_SUB_ID_THEME_APPLY, /* API + virtual*/
1341    ELM_WIDGET_SUB_ID_THEME_SPECIFIC,
1342    ELM_WIDGET_SUB_ID_TRANSLATE, /* API + virtual*/
1343 #endif
1344
1345
1346    ELM_WIDGET_SUB_ID_LAST
1347 };
1348
1349 #define ELM_WIDGET_ID(sub_id) (ELM_WIDGET_BASE_ID + sub_id)
1350
1351
1352 /**
1353  * @def elm_wdg_on_focus
1354  * @since 1.8
1355  *
1356  * 'Virtual' function handling focus in/out events on the widget.
1357  *
1358  * @param[out] ret @c EINA_TRUE if this widget can handle focus, EINA_FALSE
1359  * otherise.
1360  *
1361  */
1362 #define elm_wdg_on_focus(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ON_FOCUS), EO_TYPECHECK(Eina_Bool *, ret)
1363
1364 /**
1365  * @def elm_wdg_disable
1366  * @since 1.8
1367  *
1368  * 'Virtual' function on the widget being disabled.
1369  *
1370  * @param[out] ret
1371  *
1372  */
1373 #define elm_wdg_disable(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_DISABLE), EO_TYPECHECK(Eina_Bool *, ret)
1374
1375 /**
1376  * @def elm_wdg_theme_apply
1377  * @since 1.8
1378  *
1379  * 'Virtual' function on the widget being re-themed.
1380  *
1381  * @param[out] ret
1382  *
1383  */
1384 #define elm_wdg_theme_apply(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_THEME_APPLY), EO_TYPECHECK(Eina_Bool *, ret)
1385
1386 /**
1387  * @def elm_wdg_translate
1388  * @since 1.8
1389  *
1390  * 'Virtual' function handling language changes on Elementary.
1391  *
1392  * @param[out] ret
1393  *
1394  */
1395 #define elm_wdg_translate(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_TRANSLATE), EO_TYPECHECK(Eina_Bool *, ret)
1396
1397 /**
1398  * @def elm_wdg_event
1399  * @since 1.8
1400  *
1401  * 'Virtual' function handling input events on the widget.
1402  *
1403  * @param[in] source
1404  * @param[in] type
1405  * @param[in] event_info
1406  * @param[out] ret
1407  *
1408  */
1409 #define elm_wdg_event(source, type, event_info, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_EVENT), EO_TYPECHECK(Evas_Object *, source), EO_TYPECHECK(Evas_Callback_Type, type), EO_TYPECHECK(void *, event_info), EO_TYPECHECK(Eina_Bool *, ret)
1410
1411 /**
1412  * @def elm_wdg_on_focus_region
1413  * @since 1.8
1414  *
1415  * 'Virtual' function returning an inner area of a widget that should be brought
1416  * into the visible area of a broader viewport, may this context arise.
1417  *
1418  * @param[out] x
1419  * @param[out] y
1420  * @param[out] w
1421  * @param[out] h
1422  * @param[out] ret
1423  *
1424  */
1425 #define elm_wdg_on_focus_region(x, y, w, h, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ON_FOCUS_REGION), EO_TYPECHECK(Evas_Coord *, x), EO_TYPECHECK(Evas_Coord *, y), EO_TYPECHECK(Evas_Coord *, w), EO_TYPECHECK(Evas_Coord *, h), EO_TYPECHECK(Eina_Bool *, ret)
1426
1427 /**
1428  * @def elm_wdg_focus_next_manager_is
1429  * @since 1.8
1430  *
1431  * 'Virtual' function which checks if handling of passing focus to sub-objects
1432  * is supported by widget.
1433  *
1434  * @param[out] ret
1435  *
1436  */
1437 #define elm_wdg_focus_next_manager_is(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_NEXT_MANAGER_IS), EO_TYPECHECK(Eina_Bool *, ret)
1438
1439 /**
1440  * @def elm_wdg_focus_next
1441  * @since 1.8
1442  *
1443  * 'Virtual' function handling passing focus to sub-objects.
1444  *
1445  * @param[in] dir
1446  * @param[out] next
1447  * @param[out] ret
1448  *
1449  */
1450 #define elm_wdg_focus_next(dir, next, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_NEXT), EO_TYPECHECK(Elm_Focus_Direction, dir), EO_TYPECHECK(Evas_Object **, next), EO_TYPECHECK(Eina_Bool *, ret)
1451
1452 /**
1453  * @def elm_wdg_focus_direction_manager_is
1454  * @since 1.8
1455  *
1456  * 'Virtual' function which checks if handling of passing focus to sub-objects
1457  * in given direction is supported by widget.
1458  *
1459  * @param[out] ret
1460  *
1461  */
1462 #define elm_wdg_focus_direction_manager_is(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_DIRECTION_MANAGER_IS), EO_TYPECHECK(Eina_Bool *, ret)
1463
1464 /**
1465  * @def elm_wdg_focus_direction
1466  * @since 1.8
1467  *
1468  * 'Virtual' function handling passing focus to sub-objects given a direction,
1469  * in degrees.
1470  *
1471  * @param[in] base
1472  * @param[in] degree
1473  * @param[out] direction
1474  * @param[out] weight
1475  * @param[out] ret
1476  *
1477  */
1478 #define elm_wdg_focus_direction(base, degree, direction, weight, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_DIRECTION), EO_TYPECHECK(const Evas_Object *, base), EO_TYPECHECK(double, degree), EO_TYPECHECK(Evas_Object **, direction), EO_TYPECHECK(double *, weight), EO_TYPECHECK(Eina_Bool *, ret)
1479
1480 /**
1481  * @def elm_wdg_sub_object_add
1482  * @since 1.8
1483  *
1484  * 'Virtual' function handling sub objects being added.
1485  *
1486  * @param[in] sobj
1487  * @param[out] ret
1488  *
1489  */
1490 #define elm_wdg_sub_object_add(sobj, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_SUB_OBJECT_ADD), EO_TYPECHECK(Evas_Object *, sobj), EO_TYPECHECK(Eina_Bool *, ret)
1491
1492 /**
1493  * @def elm_wdg_sub_object_del
1494  * @since 1.8
1495  *
1496  * 'Virtual' function handling sub objects being removed.
1497  *
1498  * @param[in] sobj
1499  * @param[out] ret
1500  *
1501  */
1502 #define elm_wdg_sub_object_del(sobj, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_SUB_OBJECT_DEL), EO_TYPECHECK(Evas_Object *, sobj), EO_TYPECHECK(Eina_Bool *, ret)
1503
1504 /**
1505  * @def elm_wdg_access
1506  * @since 1.8
1507  *
1508  * 'Virtual' function on the widget being set access.
1509  *
1510  * @param[in] is_access
1511  *
1512  */
1513 #define elm_wdg_access(is_access) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ACCESS), EO_TYPECHECK(Eina_Bool, is_access)
1514
1515
1516 /**
1517  * @def elm_wdg_parent_set
1518  * @since 1.8
1519  *
1520  * 'Virtual' function handling parent widget attachment to new object.
1521  *
1522  * @param[in] parent
1523  *
1524  */
1525 #define elm_wdg_parent_set(parent) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_PARENT_SET), EO_TYPECHECK(Evas_Object *, parent)
1526
1527 /**
1528  * @def elm_wdg_parent_get
1529  * @since 1.8
1530  *
1531  * 'Virtual' function handling getting object's parent widget.
1532  *
1533  * @param[out] parent
1534  *
1535  */
1536 #define elm_wdg_parent_get(parent) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_PARENT_GET), EO_TYPECHECK(Evas_Object **, parent)
1537
1538
1539 /**
1540  * @def elm_wdg_parent2_set
1541  * @since 1.8
1542  *
1543  * No description supplied by the EAPI.
1544  *
1545  * @param[in] parent
1546  *
1547  */
1548 #define elm_wdg_parent2_set(parent) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_PARENT_SET), EO_TYPECHECK(Evas_Object *, parent)
1549
1550 /**
1551  * @def elm_wdg_parent2_get
1552  * @since 1.8
1553  *
1554  * No description supplied by the EAPI.
1555  *
1556  * @param[out] parent
1557  *
1558  */
1559 #define elm_wdg_parent2_get(parent) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_PARENT_GET), EO_TYPECHECK(Evas_Object **, parent)
1560
1561
1562 /**
1563  * @def elm_wdg_activate
1564  * @since 1.8
1565  *
1566  * 'Virtual' function to activate widget.
1567  *
1568  * @param[in] act
1569  * @param[out] ret
1570  *
1571  */
1572 #define elm_wdg_activate(act, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ACTIVATE), EO_TYPECHECK(Elm_Activate, act), EO_TYPECHECK(Eina_Bool *, ret)
1573
1574
1575 /**
1576  * @def elm_wdg_mirrored_get
1577  * @since 1.8
1578  *
1579  * Returns the widget's mirrored mode.
1580  *
1581  * @param[out] ret
1582  *
1583  */
1584 #define elm_wdg_mirrored_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_MIRRORED_GET), EO_TYPECHECK(Eina_Bool *, ret)
1585
1586 /**
1587  * @def elm_wdg_mirrored_set
1588  * @since 1.8
1589  *
1590  * Sets the widget's mirrored mode.
1591  *
1592  * @param[in] mirrored
1593  *
1594  */
1595 #define elm_wdg_mirrored_set(mirrored) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_MIRRORED_SET), EO_TYPECHECK(Eina_Bool, mirrored)
1596
1597 /**
1598  * @def elm_wdg_mirrored_automatic_get
1599  * @since 1.8
1600  *
1601  * Returns the widget's mirrored mode setting.
1602  *
1603  * @param[out] ret
1604  *
1605  */
1606 #define elm_wdg_mirrored_automatic_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_MIRRORED_AUTOMATIC_GET), EO_TYPECHECK(Eina_Bool *, ret)
1607
1608 /**
1609  * @def elm_wdg_mirrored_automatic_set
1610  * @since 1.8
1611  *
1612  * Sets the widget's mirrored mode setting.
1613  *
1614  * @param[in] automatic
1615  *
1616  */
1617 #define elm_wdg_mirrored_automatic_set(automatic) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_MIRRORED_AUTOMATIC_SET), EO_TYPECHECK(Eina_Bool, automatic)
1618
1619
1620 /**
1621  * @def elm_wdg_highlight_ignore_set
1622  * @since 1.8
1623  *
1624  * No description supplied by the EAPI.
1625  *
1626  * @param[in] ignore
1627  *
1628  */
1629 #define elm_wdg_highlight_ignore_set(ignore) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_HIGHLIGHT_IGNORE_SET), EO_TYPECHECK(Eina_Bool, ignore)
1630
1631 /**
1632  * @def elm_wdg_highlight_ignore_get
1633  * @since 1.8
1634  *
1635  * No description supplied by the EAPI.
1636  *
1637  * @param[out] ret
1638  *
1639  */
1640 #define elm_wdg_highlight_ignore_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_HIGHLIGHT_IGNORE_GET), EO_TYPECHECK(Eina_Bool *, ret)
1641
1642 /**
1643  * @def elm_wdg_highlight_in_theme_set
1644  * @since 1.8
1645  *
1646  * No description supplied by the EAPI.
1647  *
1648  * @param[in] highlight
1649  *
1650  */
1651 #define elm_wdg_highlight_in_theme_set(highlight) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_HIGHLIGHT_IN_THEME_SET), EO_TYPECHECK(Eina_Bool, highlight)
1652
1653 /**
1654  * @def elm_wdg_highlight_in_theme_get
1655  * @since 1.8
1656  *
1657  * No description supplied by the EAPI.
1658  *
1659  * @param[out] ret
1660  *
1661  */
1662 #define elm_wdg_highlight_in_theme_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_HIGHLIGHT_IN_THEME_GET), EO_TYPECHECK(Eina_Bool *, ret)
1663
1664 /**
1665  * @def elm_wdg_access_highlight_in_theme_set
1666  * @since 1.9
1667  *
1668  * No description supplied by the EAPI.
1669  *
1670  * @param[in] access highlight
1671  *
1672  */
1673 #define elm_wdg_access_highlight_in_theme_set(highlight) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ACCESS_HIGHLIGHT_IN_THEME_SET), EO_TYPECHECK(Eina_Bool, highlight)
1674
1675 /**
1676  * @def elm_wdg_access_highlight_in_theme_get
1677  * @since 1.9
1678  *
1679  * No description supplied by the EAPI.
1680  *
1681  * @param[out] ret
1682  *
1683  */
1684 #define elm_wdg_access_highlight_in_theme_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ACCESS_HIGHLIGHT_IN_THEME_GET), EO_TYPECHECK(Eina_Bool *, ret)
1685
1686 /**
1687  * @def elm_wdg_scroll_hold_push
1688  * @since 1.8
1689  *
1690  * No description supplied by the EAPI.
1691  *
1692  */
1693 #define elm_wdg_scroll_hold_push() ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_SCROLL_HOLD_PUSH)
1694
1695 /**
1696  * @def elm_wdg_scroll_hold_pop
1697  * @since 1.8
1698  *
1699  * No description supplied by the EAPI.
1700  *
1701  */
1702 #define elm_wdg_scroll_hold_pop() ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_SCROLL_HOLD_POP)
1703
1704 /**
1705  * @def elm_wdg_scroll_hold_get
1706  * @since 1.8
1707  *
1708  * No description supplied by the EAPI.
1709  *
1710  * @param[out] ret
1711  *
1712  */
1713 #define elm_wdg_scroll_hold_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_SCROLL_HOLD_GET), EO_TYPECHECK(int *, ret)
1714
1715 /**
1716  * @def elm_wdg_scroll_freeze_push
1717  * @since 1.8
1718  *
1719  * No description supplied by the EAPI.
1720  *
1721  */
1722 #define elm_wdg_scroll_freeze_push() ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_SCROLL_FREEZE_PUSH)
1723
1724 /**
1725  * @def elm_wdg_scroll_freeze_pop
1726  * @since 1.8
1727  *
1728  * No description supplied by the EAPI.
1729  *
1730  */
1731 #define elm_wdg_scroll_freeze_pop() ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_SCROLL_FREEZE_POP)
1732
1733 /**
1734  * @def elm_wdg_scroll_freeze_get
1735  * @since 1.8
1736  *
1737  * No description supplied by the EAPI.
1738  *
1739  * @param[out] ret
1740  *
1741  */
1742 #define elm_wdg_scroll_freeze_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_SCROLL_FREEZE_GET), EO_TYPECHECK(int *, ret)
1743
1744
1745 /**
1746  * @def elm_wdg_on_show_region_hook_set
1747  * @since 1.8
1748  *
1749  * No description supplied by the EAPI.
1750  *
1751  * @param[in] func
1752  * @param[in] data
1753  *
1754  */
1755 #define elm_wdg_on_show_region_hook_set(func, data) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ON_SHOW_REGION_HOOK_SET), EO_TYPECHECK(region_hook_func_type, func), EO_TYPECHECK(void *, data)
1756
1757 /**
1758  * @def elm_wdg_resize_object_set
1759  * @since 1.8
1760  *
1761  * No description supplied by the EAPI.
1762  *
1763  * @param[in] sobj
1764  * @param[in] sub_object
1765  *
1766  */
1767 #define elm_wdg_resize_object_set(sobj, sub_obj) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_RESIZE_OBJECT_SET), EO_TYPECHECK(Evas_Object *, sobj), EO_TYPECHECK(Eina_Bool, sub_obj)
1768
1769 /**
1770  * @def elm_wdg_hover_object_set
1771  * @since 1.8
1772  *
1773  * No description supplied by the EAPI.
1774  *
1775  * @param[in] sobj
1776  *
1777  */
1778 #define elm_wdg_hover_object_set(sobj) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_HOVER_OBJECT_SET), EO_TYPECHECK(Evas_Object *, sobj)
1779
1780
1781 /**
1782  * @def elm_wdg_can_focus_set
1783  * @since 1.8
1784  *
1785  * No description supplied by the EAPI.
1786  *
1787  * @param[in] can_focus
1788  *
1789  */
1790 #define elm_wdg_can_focus_set(can_focus) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_CAN_FOCUS_SET), EO_TYPECHECK(Eina_Bool, can_focus)
1791
1792 /**
1793  * @def elm_wdg_can_focus_get
1794  * @since 1.8
1795  *
1796  * No description supplied by the EAPI.
1797  *
1798  * @param[out] ret
1799  *
1800  */
1801 #define elm_wdg_can_focus_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_CAN_FOCUS_GET), EO_TYPECHECK(Eina_Bool *, ret)
1802
1803 /**
1804  * @def elm_wdg_child_can_focus_get
1805  * @since 1.8
1806  *
1807  * No description supplied by the EAPI.
1808  *
1809  * @param[out] ret
1810  *
1811  */
1812 #define elm_wdg_child_can_focus_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_CHILD_CAN_FOCUS_GET), EO_TYPECHECK(Eina_Bool *, ret)
1813
1814
1815 /**
1816  * @def elm_wdg_focus_get
1817  * @since 1.8
1818  *
1819  * No description supplied by the EAPI.
1820  *
1821  * @param[out] ret
1822  *
1823  */
1824 #define elm_wdg_focus_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_GET), EO_TYPECHECK(Eina_Bool *, ret)
1825
1826 /**
1827  * @def elm_wdg_highlight_get
1828  * @since 1.8
1829  *
1830  * No description supplied by the EAPI.
1831  *
1832  * @param[out] ret
1833  *
1834  */
1835 #define elm_wdg_highlight_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_HIGHLIGHT_GET), EO_TYPECHECK(Eina_Bool *, ret)
1836
1837 /**
1838  * @def elm_wdg_focused_object_get
1839  * @since 1.8
1840  *
1841  * No description supplied by the EAPI.
1842  *
1843  * @param[out] ret
1844  *
1845  */
1846 #define elm_wdg_focused_object_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUSED_OBJECT_GET), EO_TYPECHECK(Evas_Object **, ret)
1847
1848
1849 /**
1850  * @def elm_wdg_top_get
1851  * @since 1.8
1852  *
1853  * No description supplied by the EAPI.
1854  *
1855  * @param[out] ret
1856  *
1857  */
1858 #define elm_wdg_top_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_TOP_GET), EO_TYPECHECK(Evas_Object **, ret)
1859
1860 /**
1861  * @def elm_wdg_parent_widget_get
1862  * @since 1.8
1863  *
1864  * No description supplied by the EAPI.
1865  *
1866  * @param[out] ret
1867  *
1868  */
1869 #define elm_wdg_parent_widget_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_PARENT_WIDGET_GET), EO_TYPECHECK(Evas_Object **, ret)
1870
1871
1872 /**
1873  * @def elm_wdg_focus_set
1874  * @since 1.8
1875  *
1876  * No description supplied by the EAPI.
1877  *
1878  * @param[in] focus
1879  *
1880  */
1881 #define elm_wdg_focus_set(focus) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_SET), EO_TYPECHECK(Eina_Bool, focus)
1882
1883 /**
1884  * @def elm_wdg_focused_object_clear
1885  * @since 1.8
1886  *
1887  * No description supplied by the EAPI.
1888  *
1889  */
1890 #define elm_wdg_focused_object_clear() ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUSED_OBJECT_CLEAR)
1891
1892 /**
1893  * @def elm_wdg_focus_steal
1894  * @since 1.8
1895  *
1896  * No description supplied by the EAPI.
1897  *
1898  */
1899 #define elm_wdg_focus_steal() ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_STEAL)
1900
1901 /**
1902  * @def elm_wdg_focus_restore
1903  * @since 1.8
1904  *
1905  * No description supplied by the EAPI.
1906  *
1907  */
1908 #define elm_wdg_focus_restore() ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_RESTORE)
1909
1910
1911 /**
1912  * @def elm_wdg_disabled_set
1913  * @since 1.8
1914  *
1915  * No description supplied by the EAPI.
1916  *
1917  * @param[in] disabled
1918  *
1919  */
1920 #define elm_wdg_disabled_set(disabled) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_DISABLED_SET), EO_TYPECHECK(Eina_Bool, disabled)
1921
1922 /**
1923  * @def elm_wdg_disabled_get
1924  * @since 1.8
1925  *
1926  * No description supplied by the EAPI.
1927  *
1928  * @param[out] ret
1929  *
1930  */
1931 #define elm_wdg_disabled_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_DISABLED_GET), EO_TYPECHECK(Eina_Bool *, ret)
1932
1933 /**
1934  * @def elm_wdg_show_region_set
1935  * @since 1.8
1936  *
1937  * No description supplied by the EAPI.
1938  *
1939  * @param[in] x
1940  * @param[in] y
1941  * @param[in] w
1942  * @param[in] h
1943  * @param[in] forceshow
1944  *
1945  */
1946 #define elm_wdg_show_region_set(x, y, w, h, forceshow) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_SHOW_REGION_SET), EO_TYPECHECK(Evas_Coord, x), EO_TYPECHECK(Evas_Coord, y), EO_TYPECHECK(Evas_Coord, w), EO_TYPECHECK(Evas_Coord, h), EO_TYPECHECK(Eina_Bool, forceshow)
1947
1948 /**
1949  * @def elm_wdg_show_region_get
1950  * @since 1.8
1951  *
1952  * No description supplied by the EAPI.
1953  *
1954  * @param[out] x
1955  * @param[out] y
1956  * @param[out] w
1957  * @param[out] h
1958  *
1959  */
1960 #define elm_wdg_show_region_get(x, y, w, h) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_SHOW_REGION_GET), EO_TYPECHECK(Evas_Coord *, x), EO_TYPECHECK(Evas_Coord *, y), EO_TYPECHECK(Evas_Coord *, w), EO_TYPECHECK(Evas_Coord *, h)
1961
1962 /**
1963  * @def elm_wdg_parents_bounce_get
1964  * @since 1.8
1965  *
1966  * No description supplied by the EAPI.
1967  *
1968  * @param[out] horiz
1969  * @param[out] vert
1970  *
1971  */
1972 #define elm_wdg_parents_bounce_get(horiz, vert) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_PARENTS_BOUNCE_GET), EO_TYPECHECK(Eina_Bool *, horiz), EO_TYPECHECK(Eina_Bool *, vert)
1973
1974 /**
1975  * @def elm_wdg_scrollable_children_get
1976  * @since 1.8
1977  *
1978  * No description supplied by the EAPI.
1979  *
1980  * @param[out] ret
1981  *
1982  */
1983 #define elm_wdg_scrollable_children_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_SCROLLABLE_CHILDREN_GET), EO_TYPECHECK(Eina_List **, ret)
1984
1985 /**
1986  * @def elm_wdg_scale_set
1987  * @since 1.8
1988  *
1989  * No description supplied by the EAPI.
1990  *
1991  * @param[in] scale
1992  *
1993  */
1994 #define elm_wdg_scale_set(scale) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_SCALE_SET), EO_TYPECHECK(double, scale)
1995
1996 /**
1997  * @def elm_wdg_scale_get
1998  * @since 1.8
1999  *
2000  * No description supplied by the EAPI.
2001  *
2002  * @param[out] ret
2003  *
2004  */
2005 #define elm_wdg_scale_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_SCALE_GET), EO_TYPECHECK(double *, ret)
2006
2007
2008 /**
2009  * @def elm_wdg_part_text_set
2010  * @since 1.8
2011  *
2012  * No description supplied by the EAPI.
2013  *
2014  * @param[in] part
2015  * @param[in] label
2016  *
2017  */
2018 #define elm_wdg_part_text_set(part, label) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_PART_TEXT_SET), EO_TYPECHECK(const char *, part), EO_TYPECHECK(const char *, label)
2019
2020 /**
2021  * @def elm_wdg_part_text_get
2022  * @since 1.8
2023  *
2024  * No description supplied by the EAPI.
2025  *
2026  * @param[in] part
2027  * @param[out] ret
2028  *
2029  */
2030 #define elm_wdg_part_text_get(part, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_PART_TEXT_GET), EO_TYPECHECK(const char *, part), EO_TYPECHECK(const char **, ret)
2031
2032
2033 /**
2034  * @def elm_wdg_domain_translatable_part_text_set
2035  * @since 1.8
2036  *
2037  * No description supplied by the EAPI.
2038  *
2039  * @param[in] part
2040  * @param[in] domain
2041  * @param[in] label
2042  *
2043  */
2044 #define elm_wdg_domain_translatable_part_text_set(part, domain, label) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_DOMAIN_TRANSLATABLE_PART_TEXT_SET), EO_TYPECHECK(const char *, part), EO_TYPECHECK(const char *, domain), EO_TYPECHECK(const char *, label)
2045
2046 /**
2047  * @def elm_wdg_translatable_part_text_get
2048  * @since 1.8
2049  *
2050  * No description supplied by the EAPI.
2051  *
2052  * @param[in] part
2053  * @param[out] ret
2054  *
2055  */
2056 #define elm_wdg_translatable_part_text_get(part, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_TRANSLATABLE_PART_TEXT_GET), EO_TYPECHECK(const char *, part), EO_TYPECHECK(const char **, ret)
2057
2058 /**
2059  * @def elm_wdg_domain_part_text_translatable_set
2060  * @since 1.8
2061  *
2062  * No description supplied by the EAPI.
2063  *
2064  * @param[in] part
2065  * @param[in] domain
2066  * @param[in] translatable
2067  *
2068  */
2069 #define elm_wdg_domain_part_text_translatable_set(part, domain, translatable) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_DOMAIN_PART_TEXT_TRANSLATABLE_SET), EO_TYPECHECK(const char *, part), EO_TYPECHECK(const char *, domain), EO_TYPECHECK(Eina_Bool, translatable)
2070
2071 /**
2072  * @def elm_wdg_part_text_translate
2073  * @since 1.8
2074  *
2075  * No description supplied by the EAPI.
2076  *
2077  * @param[in] part
2078  * @param[in] text
2079  * @param[out] ret
2080  *
2081  */
2082 #define elm_wdg_part_text_translate(part, text, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_PART_TEXT_TRANSLATE), EO_TYPECHECK(const char *, part), EO_TYPECHECK(const char *, text), EO_TYPECHECK(const char **, ret)
2083
2084 /**
2085  * @def elm_wdg_access_info_set
2086  * @since 1.8
2087  *
2088  * No description supplied by the EAPI.
2089  *
2090  * @param[in] txt
2091  *
2092  */
2093 #define elm_wdg_access_info_set(txt) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ACCESS_INFO_SET), EO_TYPECHECK(const char *, txt)
2094
2095 /**
2096  * @def elm_wdg_access_info_get
2097  * @since 1.8
2098  *
2099  * No description supplied by the EAPI.
2100  *
2101  * @param[out] ret
2102  *
2103  */
2104 #define elm_wdg_access_info_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ACCESS_INFO_GET), EO_TYPECHECK(const char **, ret)
2105
2106
2107 /**
2108  * @def elm_wdg_theme_set
2109  * @since 1.8
2110  *
2111  * No description supplied by the EAPI.
2112  *
2113  * @param[in] th
2114  *
2115  */
2116 #define elm_wdg_theme_set(th) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_THEME_SET), EO_TYPECHECK(Elm_Theme *, th)
2117
2118 /**
2119  * @def elm_wdg_theme_get
2120  * @since 1.8
2121  *
2122  * No description supplied by the EAPI.
2123  *
2124  * @param[out] ret
2125  *
2126  */
2127 #define elm_wdg_theme_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_THEME_GET), EO_TYPECHECK(Elm_Theme **, ret)
2128
2129
2130 /**
2131  * @def elm_wdg_style_set
2132  * @since 1.8
2133  *
2134  * No description supplied by the EAPI.
2135  *
2136  * @param[in] style
2137  * @param[out] ret
2138  *
2139  */
2140 #define elm_wdg_style_set(style, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_STYLE_SET), EO_TYPECHECK(const char *, style), EO_TYPECHECK(Eina_Bool *, ret)
2141
2142 /**
2143  * @def elm_wdg_style_get
2144  * @since 1.8
2145  *
2146  * No description supplied by the EAPI.
2147  *
2148  * @param[out] ret
2149  *
2150  */
2151 #define elm_wdg_style_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_STYLE_GET), EO_TYPECHECK(const char **, ret)
2152
2153 /**
2154  * @def elm_wdg_tooltip_add
2155  * @since 1.8
2156  *
2157  * No description supplied by the EAPI.
2158  *
2159  * @param[in] tt
2160  *
2161  */
2162 #define elm_wdg_tooltip_add(tt) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_TOOLTIP_ADD), EO_TYPECHECK(Elm_Tooltip *, tt)
2163
2164 /**
2165  * @def elm_wdg_tooltip_del
2166  * @since 1.8
2167  *
2168  * No description supplied by the EAPI.
2169  *
2170  * @param[in] tt
2171  *
2172  */
2173 #define elm_wdg_tooltip_del(tt) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_TOOLTIP_DEL), EO_TYPECHECK(Elm_Tooltip *, tt)
2174
2175 /**
2176  * @def elm_wdg_cursor_add
2177  * @since 1.8
2178  *
2179  * No description supplied by the EAPI.
2180  *
2181  * @param[in] cur
2182  *
2183  */
2184 #define elm_wdg_cursor_add(cur) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_CURSOR_ADD), EO_TYPECHECK(Elm_Cursor *, cur)
2185
2186 /**
2187  * @def elm_wdg_cursor_del
2188  * @since 1.8
2189  *
2190  * No description supplied by the EAPI.
2191  *
2192  * @param[in] cur
2193  *
2194  */
2195 #define elm_wdg_cursor_del(cur) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_CURSOR_DEL), EO_TYPECHECK(Elm_Cursor *, cur)
2196
2197
2198 /**
2199  * @def elm_wdg_drag_lock_x_set
2200  * @since 1.8
2201  *
2202  * No description supplied by the EAPI.
2203  *
2204  * @param[in] lock
2205  *
2206  */
2207 #define elm_wdg_drag_lock_x_set(lock) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_DRAG_LOCK_X_SET), EO_TYPECHECK(Eina_Bool, lock)
2208
2209 /**
2210  * @def elm_wdg_drag_lock_y_set
2211  * @since 1.8
2212  *
2213  * No description supplied by the EAPI.
2214  *
2215  * @param[in] lock
2216  *
2217  */
2218 #define elm_wdg_drag_lock_y_set(lock) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_DRAG_LOCK_Y_SET), EO_TYPECHECK(Eina_Bool, lock)
2219
2220 /**
2221  * @def elm_wdg_drag_lock_x_get
2222  * @since 1.8
2223  *
2224  * No description supplied by the EAPI.
2225  *
2226  * @param[out] ret
2227  *
2228  */
2229 #define elm_wdg_drag_lock_x_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_DRAG_LOCK_X_GET), EO_TYPECHECK(Eina_Bool *, ret)
2230
2231 /**
2232  * @def elm_wdg_drag_lock_y_get
2233  * @since 1.8
2234  *
2235  * No description supplied by the EAPI.
2236  *
2237  * @param[out] ret
2238  *
2239  */
2240 #define elm_wdg_drag_lock_y_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_DRAG_LOCK_Y_GET), EO_TYPECHECK(Eina_Bool *, ret)
2241
2242 /**
2243  * @def elm_wdg_drag_child_locked_x_get
2244  * @since 1.8
2245  *
2246  * No description supplied by the EAPI.
2247  *
2248  * @param[out] ret
2249  *
2250  */
2251 #define elm_wdg_drag_child_locked_x_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_DRAG_CHILD_LOCKED_X_GET), EO_TYPECHECK(int *, ret)
2252
2253 /**
2254  * @def elm_wdg_drag_child_locked_y_get
2255  * @since 1.8
2256  *
2257  * No description supplied by the EAPI.
2258  *
2259  * @param[out] ret
2260  *
2261  */
2262 #define elm_wdg_drag_child_locked_y_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_DRAG_CHILD_LOCKED_Y_GET), EO_TYPECHECK(int *, ret)
2263
2264 /**
2265  * @def elm_wdg_item_loop_enabled_set
2266  * @since 1.10
2267  *
2268  * Set enable or disable item loop feature.
2269  *
2270  * @param[in] enable
2271  */
2272 #define elm_wdg_item_loop_enabled_set(enable) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ITEM_LOOP_ENABLED_SET), EO_TYPECHECK(Eina_Bool, enable)
2273
2274 /**
2275  * @def elm_wdg_item_loop_enabled_get
2276  * @since 1.10
2277  *
2278  * Get the value whether item loop feature is enabled or not.
2279  *
2280  * @param[out] ret
2281  */
2282 #define elm_wdg_item_loop_enabled_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ITEM_LOOP_ENABLED_GET), EO_TYPECHECK(Eina_Bool *, ret)
2283
2284 /**
2285  * @def elm_wdg_event_callback_add
2286  * @since 1.8
2287  *
2288  * No description supplied by the EAPI.
2289  *
2290  * @param[in] func
2291  * @param[in] data
2292  *
2293  */
2294 #define elm_wdg_event_callback_add(func, data) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_EVENT_CALLBACK_ADD), EO_TYPECHECK(Elm_Event_Cb, func), EO_TYPECHECK(const void *, data)
2295
2296 /**
2297  * @def elm_wdg_event_callback_del
2298  * @since 1.8
2299  *
2300  * No description supplied by the EAPI.
2301  *
2302  * @param[in] func
2303  * @param[in] data
2304  * @param[out] ret
2305  *
2306  */
2307 #define elm_wdg_event_callback_del(func, data, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_EVENT_CALLBACK_DEL), EO_TYPECHECK(Elm_Event_Cb, func), EO_TYPECHECK(const void *, data), EO_TYPECHECK(void **, ret)
2308
2309 /**
2310  * @def elm_wdg_event_propagate
2311  * @since 1.8
2312  *
2313  * No description supplied by the EAPI.
2314  *
2315  * @param[in] type
2316  * @param[in] event_info
2317  * @param[in] event_flags
2318  * @param[out] ret
2319  *
2320  */
2321 #define elm_wdg_event_propagate(type, event_info, event_flags, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_EVENT_PROPAGATE), EO_TYPECHECK(Evas_Callback_Type, type), EO_TYPECHECK(void *, event_info), EO_TYPECHECK(Evas_Event_Flags *, event_flags), EO_TYPECHECK(Eina_Bool *, ret)
2322
2323
2324 /**
2325  * @def elm_wdg_signal_emit
2326  * @since 1.8
2327  *
2328  * No description supplied by the EAPI.
2329  *
2330  * @param[in] emission
2331  * @param[in] source
2332  *
2333  */
2334 #define elm_wdg_signal_emit(emission, source) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_SIGNAL_EMIT), EO_TYPECHECK(const char *, emission), EO_TYPECHECK(const char *, source)
2335
2336 /**
2337  * @def elm_wdg_signal_callback_add
2338  * @since 1.8
2339  *
2340  * No description supplied by the EAPI.
2341  *
2342  * @param[in] emission
2343  * @param[in] source
2344  * @param[in] func
2345  * @param[in] data
2346  *
2347  */
2348 #define elm_wdg_signal_callback_add(emission, source, func, data) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_SIGNAL_CALLBACK_ADD), EO_TYPECHECK(const char *, emission), EO_TYPECHECK(const char *, source), EO_TYPECHECK(Edje_Signal_Cb, func), EO_TYPECHECK(void *, data)
2349
2350 /**
2351  * @def elm_wdg_signal_callback_del
2352  * @since 1.8
2353  *
2354  * No description supplied by the EAPI.
2355  *
2356  * @param[in] emission
2357  * @param[in] source
2358  * @param[in] func
2359  * @param[out] ret
2360  *
2361  */
2362 #define elm_wdg_signal_callback_del(emission, source, func, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_SIGNAL_CALLBACK_DEL), EO_TYPECHECK(const char *, emission), EO_TYPECHECK(const char *, source), EO_TYPECHECK(Edje_Signal_Cb, func), EO_TYPECHECK(void **, ret)
2363
2364
2365 /**
2366  * @def elm_wdg_name_find
2367  * @since 1.8
2368  *
2369  * No description supplied by the EAPI.
2370  *
2371  * @param[in] name
2372  * @param[in] recurse
2373  * @param[out] ret
2374  *
2375  */
2376 #define elm_wdg_name_find(name, recurse, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_NAME_FIND), EO_TYPECHECK(const char *, name), EO_TYPECHECK(int, recurse), EO_TYPECHECK(Evas_Object **, ret)
2377
2378 /**
2379  * @def elm_wdg_focus_hide_handle
2380  * @since 1.8
2381  *
2382  * No description supplied by the EAPI.
2383  *
2384  */
2385 #define elm_wdg_focus_hide_handle() ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_HIDE_HANDLE)
2386
2387 /**
2388  * @def elm_wdg_focus_mouse_up_handle
2389  * @since 1.8
2390  *
2391  * No description supplied by the EAPI.
2392  *
2393  */
2394 #define elm_wdg_focus_mouse_up_handle() ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_MOUSE_UP_HANDLE)
2395
2396 /**
2397  * @def elm_wdg_focus_tree_unfocusable_handle
2398  * @since 1.8
2399  *
2400  * No description supplied by the EAPI.
2401  *
2402  */
2403 #define elm_wdg_focus_tree_unfocusable_handle() ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_TREE_UNFOCUSABLE_HANDLE)
2404
2405 /**
2406  * @def elm_wdg_focus_disabled_handle
2407  * @since 1.8
2408  *
2409  * No description supplied by the EAPI.
2410  *
2411  */
2412 #define elm_wdg_focus_disabled_handle() ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_DISABLED_HANDLE)
2413
2414 /**
2415  * @def elm_wdg_focus_order_get
2416  * @since 1.8
2417  *
2418  * No description supplied by the EAPI.
2419  *
2420  * @param[out] ret
2421  *
2422  */
2423 #define elm_wdg_focus_order_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_ORDER_GET), EO_TYPECHECK(unsigned int *, ret)
2424
2425 /**
2426  * @def elm_wdg_focus_region_get
2427  * @since 1.8
2428  *
2429  * No description supplied by the EAPI.
2430  *
2431  * @param[out] x
2432  * @param[out] y
2433  * @param[out] w
2434  * @param[out] h
2435  * @param[out] ret
2436  *
2437  */
2438 #define elm_wdg_focus_region_get(x, y, w, h, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_REGION_GET), EO_TYPECHECK(Evas_Coord *, x), EO_TYPECHECK(Evas_Coord *, y), EO_TYPECHECK(Evas_Coord *, w), EO_TYPECHECK(Evas_Coord *, h), EO_TYPECHECK(Eina_Bool *, ret)
2439
2440 /**
2441  * @def elm_wdg_focus_region_show
2442  * @since 1.8
2443  *
2444  * No description supplied by the EAPI.
2445  *
2446  */
2447 #define elm_wdg_focus_region_show() ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_REGION_SHOW)
2448
2449 /**
2450  * @def elm_wdg_focus_highlight_style_set
2451  * @since 1.9
2452  *
2453  * This function set the widget focus highlight style.
2454  *
2455  * @param[in] style
2456  * @param[out] ret
2457  */
2458 #define elm_wdg_focus_highlight_style_set(style, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_HIGHLIGHT_STYLE_SET), EO_TYPECHECK(const char *, style), EO_TYPECHECK(Eina_Bool *, ret)
2459
2460 /**
2461  * @def elm_wdg_focus_highlight_style_get
2462  * @since 1.9
2463  *
2464  * This function returns the widget focus highlight style.
2465  *
2466  * @param[out] ret
2467  */
2468 #define elm_wdg_focus_highlight_style_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_HIGHLIGHT_STYLE_GET), EO_TYPECHECK(const char **, ret)
2469
2470 /**
2471  * @def elm_wdg_theme_object_set
2472  * @since 1.8
2473  *
2474  * No description supplied by the EAPI.
2475  *
2476  * @param[in] edj
2477  * @param[in] wname
2478  * @param[in] welement
2479  * @param[in] wstyle
2480  * @param[out] ret
2481  *
2482  */
2483 #define elm_wdg_theme_object_set(edj, wname, welement, wstyle, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_THEME_OBJECT_SET), EO_TYPECHECK(Evas_Object *, edj), EO_TYPECHECK(const char *, wname), EO_TYPECHECK(const char *, welement), EO_TYPECHECK(const char *, wstyle), EO_TYPECHECK(Eina_Bool *, ret)
2484
2485
2486 /**
2487  * @def elm_wdg_focus_custom_chain_set
2488  * @since 1.8
2489  *
2490  * No description supplied by the EAPI.
2491  *
2492  * @param[in] objs
2493  *
2494  */
2495 #define elm_wdg_focus_custom_chain_set(objs) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_CUSTOM_CHAIN_SET), EO_TYPECHECK(Eina_List *, objs)
2496
2497 /**
2498  * @def elm_wdg_focus_custom_chain_get
2499  * @since 1.8
2500  *
2501  * No description supplied by the EAPI.
2502  *
2503  * @param[out] ret
2504  *
2505  */
2506 #define elm_wdg_focus_custom_chain_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_CUSTOM_CHAIN_GET), EO_TYPECHECK(const Eina_List **, ret)
2507
2508 /**
2509  * @def elm_wdg_focus_custom_chain_unset
2510  * @since 1.8
2511  *
2512  * No description supplied by the EAPI.
2513  *
2514  */
2515 #define elm_wdg_focus_custom_chain_unset() ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_CUSTOM_CHAIN_UNSET)
2516
2517 /**
2518  * @def elm_wdg_focus_custom_chain_append
2519  * @since 1.8
2520  *
2521  * No description supplied by the EAPI.
2522  *
2523  * @param[in] child
2524  * @param[in] relative_child
2525  *
2526  */
2527 #define elm_wdg_focus_custom_chain_append(child, relative_child) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_CUSTOM_CHAIN_APPEND), EO_TYPECHECK(Evas_Object *, child), EO_TYPECHECK(Evas_Object *, relative_child)
2528
2529 /**
2530  * @def elm_wdg_focus_custom_chain_prepend
2531  * @since 1.8
2532  *
2533  * No description supplied by the EAPI.
2534  *
2535  * @param[in] child
2536  * @param[in] relative_child
2537  *
2538  */
2539 #define elm_wdg_focus_custom_chain_prepend(child, relative_child) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_CUSTOM_CHAIN_PREPEND), EO_TYPECHECK(Evas_Object *, child), EO_TYPECHECK(Evas_Object *, relative_child)
2540
2541 /**
2542  * @def elm_wdg_focus_cycle
2543  * @since 1.8
2544  *
2545  * No description supplied by the EAPI.
2546  *
2547  * @param[in] dir
2548  *
2549  */
2550 #define elm_wdg_focus_cycle(dir) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_CYCLE), EO_TYPECHECK(Elm_Focus_Direction, dir)
2551
2552 /**
2553  * @def elm_wdg_focus_direction_go
2554  * @since 1.8
2555  *
2556  * No description supplied by the EAPI.
2557  *
2558  * @param[in] degree
2559  * @param[out] ret
2560  *
2561  */
2562 #define elm_wdg_focus_direction_go(degree, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_DIRECTION_GO), EO_TYPECHECK(double, degree), EO_TYPECHECK(Eina_Bool *, ret)
2563
2564 /**
2565  * @def elm_wdg_focus_direction_get
2566  * @since 1.8
2567  *
2568  * No description supplied by the EAPI.
2569  *
2570  * @param[in] base
2571  * @param[in] degree
2572  * @param[out] direction
2573  * @param[out] weight
2574  * @param[out] ret
2575  *
2576  */
2577 #define elm_wdg_focus_direction_get(base, degree, direction, weight, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_DIRECTION_GET), EO_TYPECHECK(const Evas_Object *, base), EO_TYPECHECK(double, degree), EO_TYPECHECK(Evas_Object **, direction), EO_TYPECHECK(double *, weight), EO_TYPECHECK(Eina_Bool *, ret)
2578
2579
2580 /**
2581  * @def elm_wdg_focus_list_direction_get
2582  * @since 1.8
2583  *
2584  * No description supplied by the EAPI.
2585  *
2586  * @param[in] base
2587  * @param[in] items
2588  * @param[in] list_data_get
2589  * @param[in] degree
2590  * @param[out] direction
2591  * @param[out] weight
2592  * @param[out] ret
2593  *
2594  */
2595 #define elm_wdg_focus_list_direction_get(base, items, list_data_get, degree, direction, weight, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_LIST_DIRECTION_GET), EO_TYPECHECK(const Evas_Object *, base), EO_TYPECHECK(const Eina_List *, items), EO_TYPECHECK(list_data_get_func_type, list_data_get), EO_TYPECHECK(double, degree), EO_TYPECHECK(Evas_Object **, direction), EO_TYPECHECK(double *, weight), EO_TYPECHECK(Eina_Bool *, ret)
2596
2597
2598 /**
2599  * @def elm_wdg_focus_next_get
2600  * @since 1.8
2601  *
2602  * No description supplied by the EAPI.
2603  *
2604  * @param[in] dir
2605  * @param[out] next
2606  * @param[out] ret
2607  *
2608  */
2609 #define elm_wdg_focus_next_get(dir, next, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_NEXT_GET), EO_TYPECHECK(Elm_Focus_Direction, dir), EO_TYPECHECK(Evas_Object **, next), EO_TYPECHECK(Eina_Bool *, ret)
2610
2611
2612 /**
2613  * @def elm_wdg_focus_list_next_get
2614  * @since 1.8
2615  *
2616  * No description supplied by the EAPI.
2617  *
2618  * @param[in] items
2619  * @param[in] list_data_get
2620  * @param[in] dir
2621  * @param[out] next
2622  * @param[out] ret
2623  *
2624  */
2625 #define elm_wdg_focus_list_next_get(items, list_data_get, dir, next, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_LIST_NEXT_GET), EO_TYPECHECK(const Eina_List *, items), EO_TYPECHECK(list_data_get_func_type, list_data_get), EO_TYPECHECK(Elm_Focus_Direction, dir), EO_TYPECHECK(Evas_Object **, next), EO_TYPECHECK(Eina_Bool *, ret)
2626
2627 /**
2628  * @def elm_wdg_focus_next_object_get
2629  * @since 1.8
2630  *
2631  * No description supplied by the EAPI.
2632  *
2633  * @param[in] dir
2634  * @param[out] ret
2635  *
2636  */
2637 #define elm_wdg_focus_next_object_get(dir, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_NEXT_OBJECT_GET), EO_TYPECHECK(Elm_Focus_Direction, dir), EO_TYPECHECK(Evas_Object **, ret)
2638
2639 /**
2640  * @def elm_wdg_focus_next_object_set
2641  * @since 1.8
2642  *
2643  * No description supplied by the EAPI.
2644  *
2645  * @param[in] next
2646  * @param[in] dir
2647  *
2648  */
2649 #define elm_wdg_focus_next_object_set(next, dir) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_NEXT_OBJECT_SET), EO_TYPECHECK(Evas_Object *, next), EO_TYPECHECK(Elm_Focus_Direction, dir)
2650
2651 /**
2652  * @def elm_wdg_parent_highlight_set
2653  * @since 1.8
2654  *
2655  * No description supplied by the EAPI.
2656  *
2657  * @param[in] highlighted
2658  *
2659  */
2660 #define elm_wdg_parent_highlight_set(highlighted) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_PARENT_HIGHLIGHT_SET), EO_TYPECHECK(Eina_Bool, highlighted)
2661
2662 /**
2663  * @def elm_wdg_display_mode_set
2664  * @since 1.8
2665  *
2666  * No description supplied by the EAPI.
2667  *
2668  * @param[in] dispmode
2669  *
2670  */
2671 #define elm_wdg_display_mode_set(dispmode) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_DISPLAY_MODE_SET), EO_TYPECHECK(Evas_Display_Mode, dispmode)
2672
2673 /**
2674  * @def elm_wdg_tree_unfocusable_set
2675  * @since 1.8
2676  *
2677  * No description supplied by the EAPI.
2678  *
2679  * @param[in] tree_unfocusable
2680  *
2681  */
2682 #define elm_wdg_tree_unfocusable_set(tree_unfocusable) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_TREE_UNFOCUSABLE_SET), EO_TYPECHECK(Eina_Bool, tree_unfocusable)
2683
2684 /**
2685  * @def elm_wdg_tree_unfocusable_get
2686  * @since 1.8
2687  *
2688  * No description supplied by the EAPI.
2689  *
2690  * @param[out] ret
2691  *
2692  */
2693 #define elm_wdg_tree_unfocusable_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_TREE_UNFOCUSABLE_GET), EO_TYPECHECK(Eina_Bool *, ret)
2694
2695
2696 /**
2697  * @def elm_wdg_can_focus_child_list_get
2698  * @since 1.8
2699  *
2700  * No description supplied by the EAPI.
2701  *
2702  * @param[out] ret
2703  *
2704  */
2705 #define elm_wdg_can_focus_child_list_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_CAN_FOCUS_CHILD_LIST_GET), EO_TYPECHECK(Eina_List **, ret)
2706
2707 /**
2708  * @def elm_wdg_newest_focus_order_get
2709  * @since 1.8
2710  *
2711  * No description supplied by the EAPI.
2712  *
2713  * @param[out] newest_focus_order
2714  * @param[in] can_focus_only
2715  * @param[out] ret
2716  *
2717  */
2718 #define elm_wdg_newest_focus_order_get(newest_focus_order, can_focus_only, ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_NEWEST_FOCUS_ORDER_GET), EO_TYPECHECK(unsigned int *, newest_focus_order), EO_TYPECHECK(Eina_Bool, can_focus_only), EO_TYPECHECK(Evas_Object **, ret)
2719
2720 /**
2721  * @def elm_wdg_orientation_set
2722  * @since 1.8
2723  *
2724  * No description supplied by the EAPI.
2725  *
2726  * @param[in] rotation
2727  *
2728  */
2729 #define elm_wdg_orientation_set(rotation) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ORIENTATION_SET), EO_TYPECHECK(int, rotation)
2730
2731 /**
2732  * @def elm_wdg_orientation_mode_disabled_set
2733  * @since 1.8
2734  *
2735  * No description supplied by the EAPI.
2736  *
2737  * @param[in] disabled
2738  *
2739  */
2740 #define elm_wdg_orientation_mode_disabled_set(disabled) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ORIENTATION_MODE_DISABLED_SET), EO_TYPECHECK(Eina_Bool, disabled)
2741
2742 /**
2743  * @def elm_wdg_orientation_mode_disabled_get
2744  * @since 1.8
2745  *
2746  * No description supplied by the EAPI.
2747  *
2748  * @param[out] ret
2749  *
2750  */
2751 #define elm_wdg_orientation_mode_disabled_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ORIENTATION_MODE_DISABLED_GET), EO_TYPECHECK(Eina_Bool *, ret)
2752
2753 /**
2754  * @def elm_wdg_focus_highlight_geometry_get
2755  * @since 1.9
2756  *
2757  * Get the focus highlight geometry of widget.
2758  *
2759  * @param[in] x
2760  * @param[in] y
2761  * @param[in] w
2762  * @param[in] h
2763  * @param[in] is_next
2764  *
2765  */
2766 #define elm_wdg_focus_highlight_geometry_get(x, y, w, h, is_next) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUS_HIGHLIGHT_GEOMETRY_GET), EO_TYPECHECK(Evas_Coord *, x), EO_TYPECHECK(Evas_Coord *, y), EO_TYPECHECK(Evas_Coord *, w), EO_TYPECHECK(Evas_Coord *, h), EO_TYPECHECK(Eina_Bool *, is_next)
2767 /**
2768  * @def elm_wdg_focused_item_get
2769  * @since 1.10
2770  *
2771  * Get the focused widget item.
2772  *
2773  * @param[out] ret
2774  *
2775  */
2776 #define elm_wdg_focused_item_get(ret) ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_FOCUSED_ITEM_GET), EO_TYPECHECK(Elm_Object_Item **, ret)
2777 #endif
2778 #endif