1 // XXX: elm_gengrid - make sure api's match 1:1 with genlist api's
2 // for eventual move to back-end of gengrid == genlist (in grid mode)
4 * @defgroup Gengrid Gengrid (Generic grid)
6 * This widget aims to position objects in a grid layout while
7 * actually creating and rendering only the visible ones, using the
8 * same idea as the @ref Genlist "genlist": the user defines a @b
9 * class for each item, specifying functions that will be called at
10 * object creation, deletion, etc. When those items are selected by
11 * the user, a callback function is issued. Users may interact with
12 * a gengrid via the mouse (by clicking on items to select them and
13 * clicking on the grid's viewport and swiping to pan the whole
14 * view) or via the keyboard, navigating through item with the
17 * @section Gengrid_Layouts Gengrid layouts
19 * Gengrid may layout its items in one of two possible layouts:
23 * When in "horizontal mode", items will be placed in @b columns,
24 * from top to bottom and, when the space for a column is filled,
25 * another one is started on the right, thus expanding the grid
26 * horizontally, making for horizontal scrolling. When in "vertical
27 * mode" , though, items will be placed in @b rows, from left to
28 * right and, when the space for a row is filled, another one is
29 * started below, thus expanding the grid vertically (and making
30 * for vertical scrolling).
32 * @section Gengrid_Items Gengrid items
34 * An item in a gengrid can have 0 or more texts (they can be
35 * regular text or textblock Evas objects - that's up to the style
36 * to determine), 0 or more contents (which are simply objects
37 * swallowed into the gengrid item's theming Edje object) and 0 or
38 * more <b>boolean states</b>, which have the behavior left to the
39 * user to define. The Edje part names for each of these properties
40 * will be looked up, in the theme file for the gengrid, under the
41 * Edje (string) data items named @c "texts", @c "contents" and @c
42 * "states", respectively. For each of those properties, if more
43 * than one part is provided, they must have names listed separated
44 * by spaces in the data fields. For the default gengrid item
45 * theme, we have @b one text part (@c "elm.text"), @b two content
46 * parts (@c "elm.swalllow.icon" and @c "elm.swallow.end") and @b
49 * A gengrid item may be at one of several styles. Elementary
50 * provides one by default - "default", but this can be extended by
51 * system or application custom themes/overlays/extensions (see
52 * @ref Theme "themes" for more details).
54 * @section Gengrid_Item_Class Gengrid item classes
56 * In order to have the ability to add and delete items on the fly,
57 * gengrid implements a class (callback) system where the
58 * application provides a structure with information about that
59 * type of item (gengrid may contain multiple different items with
60 * different classes, states and styles). Gengrid will call the
61 * functions in this struct (methods) when an item is "realized"
62 * (i.e., created dynamically, while the user is scrolling the
63 * grid). All objects will simply be deleted when no longer needed
64 * with evas_object_del(). The #Elm_GenGrid_Item_Class structure
65 * contains the following members:
66 * - @c item_style - This is a constant string and simply defines
67 * the name of the item style. It @b must be specified and the
68 * default should be @c "default".
69 * - @c func.text_get - This function is called when an item
70 * object is actually created. The @c data parameter will point to
71 * the same data passed to elm_gengrid_item_append() and related
72 * item creation functions. The @c obj parameter is the gengrid
73 * object itself, while the @c part one is the name string of one
74 * of the existing text parts in the Edje group implementing the
75 * item's theme. This function @b must return a strdup'()ed string,
76 * as the caller will free() it when done. See
77 * #Elm_Gengrid_Item_Text_Get_Cb.
78 * - @c func.content_get - This function is called when an item object
79 * is actually created. The @c data parameter will point to the
80 * same data passed to elm_gengrid_item_append() and related item
81 * creation functions. The @c obj parameter is the gengrid object
82 * itself, while the @c part one is the name string of one of the
83 * existing (content) swallow parts in the Edje group implementing the
84 * item's theme. It must return @c NULL, when no content is desired,
85 * or a valid object handle, otherwise. The object will be deleted
86 * by the gengrid on its deletion or when the item is "unrealized".
87 * See #Elm_Gengrid_Item_Content_Get_Cb.
88 * - @c func.state_get - This function is called when an item
89 * object is actually created. The @c data parameter will point to
90 * the same data passed to elm_gengrid_item_append() and related
91 * item creation functions. The @c obj parameter is the gengrid
92 * object itself, while the @c part one is the name string of one
93 * of the state parts in the Edje group implementing the item's
94 * theme. Return @c EINA_FALSE for false/off or @c EINA_TRUE for
95 * true/on. Gengrids will emit a signal to its theming Edje object
96 * with @c "elm,state,xxx,active" and @c "elm" as "emission" and
97 * "source" arguments, respectively, when the state is true (the
98 * default is false), where @c xxx is the name of the (state) part.
99 * See #Elm_Gengrid_Item_State_Get_Cb.
100 * - @c func.del - This is called when elm_object_item_del() is
101 * called on an item or elm_gengrid_clear() is called on the
102 * gengrid. This is intended for use when gengrid items are
103 * deleted, so any data attached to the item (e.g. its data
104 * parameter on creation) can be deleted. See #Elm_Gengrid_Item_Del_Cb.
106 * @section Gengrid_Usage_Hints Usage hints
108 * If the user wants to have multiple items selected at the same
109 * time, elm_gengrid_multi_select_set() will permit it. If the
110 * gengrid is single-selection only (the default), then
111 * elm_gengrid_select_item_get() will return the selected item or
112 * @c NULL, if none is selected. If the gengrid is under
113 * multi-selection, then elm_gengrid_selected_items_get() will
114 * return a list (that is only valid as long as no items are
115 * modified (added, deleted, selected or unselected) of child items
118 * If an item changes (internal (boolean) state, text or content
119 * changes), then use elm_gengrid_item_update() to have gengrid
120 * update the item with the new state. A gengrid will re-"realize"
121 * the item, thus calling the functions in the
122 * #Elm_Gengrid_Item_Class set for that item.
124 * To programmatically (un)select an item, use
125 * elm_gengrid_item_selected_set(). To get its selected state use
126 * elm_gengrid_item_selected_get(). To make an item disabled
127 * (unable to be selected and appear differently) use
128 * elm_object_item_disabled_set() to set this and
129 * elm_object_item_disabled_get() to get the disabled state.
131 * Grid cells will only have their selection smart callbacks called
132 * when firstly getting selected. Any further clicks will do
133 * nothing, unless you enable the "always select mode", with
134 * elm_gengrid_always_select_mode_set(), thus making every click to
135 * issue selection callbacks. elm_gengrid_no_select_mode_set() will
136 * turn off the ability to select items entirely in the widget and
137 * they will neither appear selected nor call the selection smart
140 * Remember that you can create new styles and add your own theme
141 * augmentation per application with elm_theme_extension_add(). If
142 * you absolutely must have a specific style that overrides any
143 * theme the user or system sets up you can use
144 * elm_theme_overlay_add() to add such a file.
146 * @section Gengrid_Smart_Events Gengrid smart events
148 * Smart events that you can add callbacks for are:
149 * - @c "activated" - The user has double-clicked or pressed
150 * (enter|return|spacebar) on an item. The @c event_info parameter
151 * is the gengrid item that was activated.
152 * - @c "clicked,double" - The user has double-clicked an item.
153 * The @c event_info parameter is the gengrid item that was double-clicked.
154 * - @c "longpressed" - This is called when the item is pressed for a certain
155 * amount of time. By default it's 1 second.
156 * - @c "selected" - The user has made an item selected. The
157 * @c event_info parameter is the gengrid item that was selected.
158 * - @c "unselected" - The user has made an item unselected. The
159 * @c event_info parameter is the gengrid item that was unselected.
160 * - @c "realized" - This is called when the item in the gengrid
161 * has its implementing Evas object instantiated, de facto. @c
162 * event_info is the gengrid item that was created. The object
163 * may be deleted at any time, so it is highly advised to the
164 * caller @b not to use the object pointer returned from
165 * elm_gengrid_item_object_get(), because it may point to freed
167 * - @c "unrealized" - This is called when the implementing Evas
168 * object for this item is deleted. @c event_info is the gengrid
169 * item that was deleted.
170 * - @c "changed" - Called when an item is added, removed, resized
171 * or moved and when the gengrid is resized or gets "horizontal"
173 * - @c "scroll,anim,start" - This is called when scrolling animation has
175 * - @c "scroll,anim,stop" - This is called when scrolling animation has
177 * - @c "drag,start,up" - Called when the item in the gengrid has
178 * been dragged (not scrolled) up.
179 * - @c "drag,start,down" - Called when the item in the gengrid has
180 * been dragged (not scrolled) down.
181 * - @c "drag,start,left" - Called when the item in the gengrid has
182 * been dragged (not scrolled) left.
183 * - @c "drag,start,right" - Called when the item in the gengrid has
184 * been dragged (not scrolled) right.
185 * - @c "drag,stop" - Called when the item in the gengrid has
186 * stopped being dragged.
187 * - @c "drag" - Called when the item in the gengrid is being
189 * - @c "scroll" - called when the content has been scrolled
191 * - @c "scroll,drag,start" - called when dragging the content has
193 * - @c "scroll,drag,stop" - called when dragging the content has
195 * - @c "edge,top" - This is called when the gengrid is scrolled until
197 * - @c "edge,bottom" - This is called when the gengrid is scrolled
198 * until the bottom edge.
199 * - @c "edge,left" - This is called when the gengrid is scrolled
200 * until the left edge.
201 * - @c "edge,right" - This is called when the gengrid is scrolled
202 * until the right edge.
204 * Supported elm_object common APIs
205 * @li elm_object_signal_emit()
207 * Supported elm_object_item common APIs
208 * @li elm_object_item_part_content_get()
209 * @li elm_object_item_part_content_set()
210 * @li elm_object_item_part_content_unset()
211 * @li elm_object_item_part_text_set()
212 * @li elm_object_item_part_text_get()
213 * @li elm_object_item_disabled_set()
214 * @li elm_object_item_disabled_get()
216 * List of gengrid examples:
217 * @li @ref gengrid_example
221 * @addtogroup Gengrid
225 #define ELM_GENGRID_ITEM_CLASS_VERSION ELM_GEN_ITEM_CLASS_VERSION
226 #define ELM_GENGRID_ITEM_CLASS_HEADER ELM_GEN_ITEM_CLASS_HEADER
229 * @see Elm_Gen_Item_Class
231 typedef Elm_Gen_Item_Class Elm_Gengrid_Item_Class;
234 * @see Elm_Gen_Item_Text_Get_Cb
236 typedef Elm_Gen_Item_Text_Get_Cb Elm_Gengrid_Item_Text_Get_Cb;
239 * @see Elm_Gen_Item_Content_Get_Cb
241 typedef Elm_Gen_Item_Content_Get_Cb Elm_Gengrid_Item_Content_Get_Cb;
244 * @see Elm_Gen_Item_State_Get_Cb
246 typedef Elm_Gen_Item_State_Get_Cb Elm_Gengrid_Item_State_Get_Cb;
249 * @see Elm_Gen_Item_Del_Cb
251 typedef Elm_Gen_Item_Del_Cb Elm_Gengrid_Item_Del_Cb;
254 * Add a new gengrid widget to the given parent Elementary
257 * @param parent The parent object
258 * @return a new gengrid widget handle or @c NULL, on errors
260 * This function inserts a new gengrid widget on the canvas.
262 * @see elm_gengrid_item_size_set()
263 * @see elm_gengrid_group_item_size_set()
264 * @see elm_gengrid_horizontal_set()
265 * @see elm_gengrid_item_append()
266 * @see elm_object_item_del()
267 * @see elm_gengrid_clear()
271 EAPI Evas_Object *elm_gengrid_add(Evas_Object *parent);
274 * Remove all items from a given gengrid widget
276 * @param obj The gengrid object.
278 * This removes (and deletes) all items in @p obj, leaving it
281 * @see elm_object_item_del(), to remove just one item.
285 EAPI void elm_gengrid_clear(Evas_Object *obj);
288 * Enable or disable multi-selection in a given gengrid widget
290 * @param obj The gengrid object.
291 * @param multi @c EINA_TRUE, to enable multi-selection,
292 * @c EINA_FALSE to disable it.
294 * Multi-selection is the ability to have @b more than one
295 * item selected, on a given gengrid, simultaneously. When it is
296 * enabled, a sequence of clicks on different items will make them
297 * all selected, progressively. A click on an already selected item
298 * will unselect it. If interacting via the keyboard,
299 * multi-selection is enabled while holding the "Shift" key.
301 * @note By default, multi-selection is @b disabled on gengrids
303 * @see elm_gengrid_multi_select_get()
307 EAPI void elm_gengrid_multi_select_set(Evas_Object *obj, Eina_Bool multi);
310 * Get whether multi-selection is enabled or disabled for a given
313 * @param obj The gengrid object.
314 * @return @c EINA_TRUE, if multi-selection is enabled, @c
315 * EINA_FALSE otherwise
317 * @see elm_gengrid_multi_select_set() for more details
321 EAPI Eina_Bool elm_gengrid_multi_select_get(const Evas_Object *obj);
324 * Set the direction in which a given gengrid widget will expand while
327 * @param obj The gengrid object.
328 * @param horizontal @c EINA_TRUE to make the gengrid expand
329 * horizontally, @c EINA_FALSE to expand vertically.
331 * When in "horizontal mode" (@c EINA_TRUE), items will be placed
332 * in @b columns, from top to bottom and, when the space for a
333 * column is filled, another one is started on the right, thus
334 * expanding the grid horizontally. When in "vertical mode"
335 * (@c EINA_FALSE), though, items will be placed in @b rows, from left
336 * to right and, when the space for a row is filled, another one is
337 * started below, thus expanding the grid vertically.
339 * @see elm_gengrid_horizontal_get()
343 EAPI void elm_gengrid_horizontal_set(Evas_Object *obj, Eina_Bool horizontal);
346 * Get for what direction a given gengrid widget will expand while
349 * @param obj The gengrid object.
350 * @return @c EINA_TRUE, if @p obj is set to expand horizontally,
351 * @c EINA_FALSE if it's set to expand vertically.
353 * @see elm_gengrid_horizontal_set() for more details
357 EAPI Eina_Bool elm_gengrid_horizontal_get(const Evas_Object *obj);
360 * Enable or disable bouncing effect for a given gengrid widget
362 * @param obj The gengrid object
363 * @param h_bounce @c EINA_TRUE, to enable @b horizontal bouncing,
364 * @c EINA_FALSE to disable it
365 * @param v_bounce @c EINA_TRUE, to enable @b vertical bouncing,
366 * @c EINA_FALSE to disable it
368 * The bouncing effect occurs whenever one reaches the gengrid's
369 * edge's while panning it -- it will scroll past its limits a
370 * little bit and return to the edge again, in a animated for,
373 * @note By default, gengrids have bouncing enabled on both axis
375 * @see elm_gengrid_bounce_get()
379 EAPI void elm_gengrid_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
382 * Get whether bouncing effects are enabled or disabled, for a
383 * given gengrid widget, on each axis
385 * @param obj The gengrid object
386 * @param h_bounce Pointer to a variable where to store the
387 * horizontal bouncing flag.
388 * @param v_bounce Pointer to a variable where to store the
389 * vertical bouncing flag.
391 * @see elm_gengrid_bounce_set() for more details
395 EAPI void elm_gengrid_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
398 * Append a new item in a given gengrid widget.
400 * @param obj The gengrid object.
401 * @param gic The item class for the item.
402 * @param data The item data.
403 * @param func Convenience function called when the item is
405 * @param func_data Data to be passed to @p func.
406 * @return A handle to the item added or @c NULL, on errors.
408 * This adds an item to the beginning of the gengrid.
410 * @see elm_gengrid_item_prepend()
411 * @see elm_gengrid_item_insert_before()
412 * @see elm_gengrid_item_insert_after()
413 * @see elm_object_item_del()
417 EAPI Elm_Object_Item *elm_gengrid_item_append(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Evas_Smart_Cb func, const void *func_data);
420 * Prepend a new item in a given gengrid widget.
422 * @param obj The gengrid object.
423 * @param gic The item class for the item.
424 * @param data The item data.
425 * @param func Convenience function called when the item is
427 * @param func_data Data to be passed to @p func.
428 * @return A handle to the item added or @c NULL, on errors.
430 * This adds an item to the end of the gengrid.
432 * @see elm_gengrid_item_append()
433 * @see elm_gengrid_item_insert_before()
434 * @see elm_gengrid_item_insert_after()
435 * @see elm_object_item_del()
439 EAPI Elm_Object_Item *elm_gengrid_item_prepend(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Evas_Smart_Cb func, const void *func_data);
442 * Insert an item before another in a gengrid widget
444 * @param obj The gengrid object.
445 * @param gic The item class for the item.
446 * @param data The item data.
447 * @param relative The item to place this new one before.
448 * @param func Convenience function called when the item is
450 * @param func_data Data to be passed to @p func.
451 * @return A handle to the item added or @c NULL, on errors.
453 * This inserts an item before another in the gengrid.
455 * @see elm_gengrid_item_append()
456 * @see elm_gengrid_item_prepend()
457 * @see elm_gengrid_item_insert_after()
458 * @see elm_object_item_del()
462 EAPI Elm_Object_Item *elm_gengrid_item_insert_before(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Elm_Object_Item *relative, Evas_Smart_Cb func, const void *func_data);
465 * Insert an item after another in a gengrid widget
467 * @param obj The gengrid object.
468 * @param gic The item class for the item.
469 * @param data The item data.
470 * @param relative The item to place this new one after.
471 * @param func Convenience function called when the item is
473 * @param func_data Data to be passed to @p func.
474 * @return A handle to the item added or @c NULL, on errors.
476 * This inserts an item after another in the gengrid.
478 * @see elm_gengrid_item_append()
479 * @see elm_gengrid_item_prepend()
480 * @see elm_gengrid_item_insert_after()
481 * @see elm_object_item_del()
485 EAPI Elm_Object_Item *elm_gengrid_item_insert_after(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Elm_Object_Item *relative, Evas_Smart_Cb func, const void *func_data);
488 * Insert an item in a gengrid widget using a user-defined sort function.
490 * @param obj The gengrid object.
491 * @param gic The item class for the item.
492 * @param data The item data.
493 * @param comp User defined comparison function that defines the sort order
494 * based on Elm_Gen_Item and its data param.
495 * @param func Convenience function called when the item is selected.
496 * @param func_data Data to be passed to @p func.
497 * @return A handle to the item added or @c NULL, on errors.
499 * This inserts an item in the gengrid based on user defined comparison
500 * function. The two arguments passed to the function @p func are gengrid
501 * item handles to compare.
503 * @see elm_gengrid_item_append()
504 * @see elm_gengrid_item_prepend()
505 * @see elm_gengrid_item_insert_after()
506 * @see elm_object_item_del()
510 EAPI Elm_Object_Item *elm_gengrid_item_sorted_insert(Evas_Object *obj, const Elm_Gengrid_Item_Class *gic, const void *data, Eina_Compare_Cb comp, Evas_Smart_Cb func, const void *func_data);
513 * Get the selected item in a given gengrid widget
515 * @param obj The gengrid object.
516 * @return The selected item's handle or @c NULL, if none is
517 * selected at the moment (and on errors)
519 * This returns the selected item in @p obj. If multi selection is
520 * enabled on @p obj (@see elm_gengrid_multi_select_set()), only
521 * the first item in the list is selected, which might not be very
522 * useful. For that case, see elm_gengrid_selected_items_get().
526 EAPI Elm_Object_Item *elm_gengrid_selected_item_get(const Evas_Object *obj);
529 * Get <b>a list</b> of selected items in a given gengrid
531 * @param obj The gengrid object.
532 * @return The list of selected items or @c NULL, if none is
533 * selected at the moment (and on errors)
535 * This returns a list of the selected items, in the order that
536 * they appear in the grid. This list is only valid as long as no
537 * more items are selected or unselected (or unselected implicitly
538 * by deletion). The list contains #Gengrid item pointers as
541 * @see elm_gengrid_selected_item_get()
545 EAPI const Eina_List *elm_gengrid_selected_items_get(const Evas_Object *obj);
548 //EAPI Eina_List *elm_gengrid_realized_items_get(const Evas_Object *obj);
551 * Get the first item in a given gengrid widget
553 * @param obj The gengrid object
554 * @return The first item's handle or @c NULL, if there are no
555 * items in @p obj (and on errors)
557 * This returns the first item in the @p obj's internal list of
560 * @see elm_gengrid_last_item_get()
564 EAPI Elm_Object_Item *elm_gengrid_first_item_get(const Evas_Object *obj);
567 * Get the last item in a given gengrid widget
569 * @param obj The gengrid object
570 * @return The last item's handle or @c NULL, if there are no
571 * items in @p obj (and on errors)
573 * This returns the last item in the @p obj's internal list of
576 * @see elm_gengrid_first_item_get()
580 EAPI Elm_Object_Item *elm_gengrid_last_item_get(const Evas_Object *obj);
583 //EAPI void elm_gengrid_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v);
586 //EAPI void elm_gengrid_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v);
589 * Get the @b next item in a gengrid widget's internal list of items,
590 * given a handle to one of those items.
592 * @param it The gengrid item to fetch next from
593 * @return The item after @p item, or @c NULL if there's none (and
596 * This returns the item placed after the @p item, on the container
599 * @see elm_gengrid_item_prev_get()
603 EAPI Elm_Object_Item *elm_gengrid_item_next_get(const Elm_Object_Item *it);
606 * Get the @b previous item in a gengrid widget's internal list of items,
607 * given a handle to one of those items.
609 * @param it The gengrid item to fetch previous from
610 * @return The item before @p item, or @c NULL if there's none (and
613 * This returns the item placed before the @p item, on the container
616 * @see elm_gengrid_item_next_get()
620 EAPI Elm_Object_Item *elm_gengrid_item_prev_get(const Elm_Object_Item *it);
623 * Set whether a given gengrid item is selected or not
625 * @param it The gengrid item
626 * @param selected Use @c EINA_TRUE, to make it selected, @c
627 * EINA_FALSE to make it unselected
629 * This sets the selected state of an item. If multi-selection is
630 * not enabled on the containing gengrid and @p selected is @c
631 * EINA_TRUE, any other previously selected items will get
632 * unselected in favor of this new one.
634 * @see elm_gengrid_item_selected_get()
638 EAPI void elm_gengrid_item_selected_set(Elm_Object_Item *it, Eina_Bool selected);
641 * Get whether a given gengrid item is selected or not
643 * @param it The gengrid item
644 * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
646 * This API returns EINA_TRUE for all the items selected in multi-select mode as well.
648 * @see elm_gengrid_item_selected_set() for more details
652 EAPI Eina_Bool elm_gengrid_item_selected_get(const Elm_Object_Item *it);
655 * Show the portion of a gengrid's internal grid containing a given
656 * item, @b immediately.
658 * @param it The item to display
660 * This causes gengrid to @b redraw its viewport's contents to the
661 * region containing the given @p item item, if it is not fully
664 * @see elm_gengrid_item_bring_in()
668 EAPI void elm_gengrid_item_show(Elm_Object_Item *it);
671 * Animatedly bring in, to the visible area of a gengrid, a given
674 * @param it The gengrid item to display
676 * This causes gengrid to jump to the given @p item and show
677 * it (by scrolling), if it is not fully visible. This will use
678 * animation to do so and take a period of time to complete.
680 * @see elm_gengrid_item_show()
684 EAPI void elm_gengrid_item_bring_in(Elm_Object_Item *it);
686 //XXX: Let's add as possible
687 //EAPI void elm_gengrid_item_top_show(Elm_Object_Item *it);
688 //EAPI void elm_gengrid_item_top_bring_in(Elm_Object_Item *it);
689 //EAPI void elm_gengrid_item_middle_show(Elm_Object_Item *it);
690 //EAPI void elm_gengrid_item_middle_bring_in(Elm_Object_Item *it);
693 * Update the contents of a given gengrid item
695 * @param it The gengrid item
697 * This updates an item by calling all the item class functions
698 * again to get the contents, texts and states. Use this when the
699 * original item data has changed and you want the changes to be
704 EAPI void elm_gengrid_item_update(Elm_Object_Item *it);
707 * Update the item class of a gengrid item.
709 * This sets another class of the item, changing the way that it is
710 * displayed. After changing the item class, elm_gengrid_item_update() is
711 * called on the item @p it.
713 * @param it The gengrid item
714 * @param gic The gengrid item class describing the function pointers and the item style.
718 EAPI void elm_gengrid_item_item_class_update(Elm_Object_Item *it, const Elm_Gengrid_Item_Class *gic);
721 * Get the Gengrid Item class for the given Gengrid Item.
723 * @param it The gengrid item
725 * This returns the Gengrid_Item_Class for the given item. It can be used to examine
726 * the function pointers and item_style.
730 EAPI const Elm_Gengrid_Item_Class *elm_gengrid_item_item_class_get(const Elm_Object_Item *it);
733 //EAPI int elm_gengrid_item_index_get(const Elm_Object_Item *it);
734 //EAPI void elm_gengrid_realized_items_update(Evas_Object *obj);
735 //EAPI unsigned int elm_gengrid_items_count(const Evas_Object *obj);
738 * Add a new gengrid item class in a given gengrid widget.
740 * @return New allocated a gengrid item class.
742 * This adds gengrid item class for the gengrid widget. When adding a item,
743 * gengrid_item_{append, prepend, insert} function needs item class of the item.
744 * Given callback parameters are used at retrieving {text, content} of
745 * added item. Set as NULL if it's not used.
746 * If there's no available memory, return can be NULL.
748 * @see elm_gengrid_item_class_free()
749 * @see elm_gengrid_item_append()
753 EAPI Elm_Gengrid_Item_Class *elm_gengrid_item_class_new(void);
756 * Remove a item class in a given gengrid widget.
758 * @param itc The itc to be removed.
760 * This removes item class from the gengrid widget.
761 * Whenever it has no more references to it, item class is going to be freed.
762 * Otherwise it just decreases its reference count.
764 * @see elm_gengrid_item_class_new()
765 * @see elm_gengrid_item_class_ref()
766 * @see elm_gengrid_item_class_unref()
770 EAPI void elm_gengrid_item_class_free(Elm_Gengrid_Item_Class *itc);
773 * Increments object reference count for the item class.
775 * @param itc The given item class object to reference
777 * This API just increases its reference count for item class management.
779 * @see elm_gengrid_item_class_unref()
783 EAPI void elm_gengrid_item_class_ref(Elm_Gengrid_Item_Class *itc);
786 * Decrements object reference count for the item class.
788 * @param itc The given item class object to reference
790 * This API just decreases its reference count for item class management.
791 * Reference count can't be less than 0.
793 * @see elm_gengrid_item_class_ref()
794 * @see elm_gengrid_item_class_free()
798 EAPI void elm_gengrid_item_class_unref(Elm_Gengrid_Item_Class *itc);
800 //XXX: Need to review tooltip & cursor APIs
803 * Set the text to be shown in a given gengrid item's tooltips.
805 * @param it The gengrid item
806 * @param text The text to set in the content
808 * This call will setup the text to be used as tooltip to that item
809 * (analogous to elm_object_tooltip_text_set(), but being item
810 * tooltips with higher precedence than object tooltips). It can
811 * have only one tooltip at a time, so any previous tooltip data
814 * In order to set a content or something else as a tooltip, look at
815 * elm_gengrid_item_tooltip_content_cb_set().
819 EAPI void elm_gengrid_item_tooltip_text_set(Elm_Object_Item *it, const char *text);
822 * Set the content to be shown in a given gengrid item's tooltip
824 * @param it The gengrid item.
825 * @param func The function returning the tooltip contents.
826 * @param data What to provide to @a func as callback data/context.
827 * @param del_cb Called when data is not needed anymore, either when
828 * another callback replaces @p func, the tooltip is unset with
829 * elm_gengrid_item_tooltip_unset() or the owner @p item
830 * dies. This callback receives as its first parameter the
831 * given @p data, being @c event_info the item handle.
833 * This call will setup the tooltip's contents to @p item
834 * (analogous to elm_object_tooltip_content_cb_set(), but being
835 * item tooltips with higher precedence than object tooltips). It
836 * can have only one tooltip at a time, so any previous tooltip
837 * content will get removed. @p func (with @p data) will be called
838 * every time Elementary needs to show the tooltip and it should
839 * return a valid Evas object, which will be fully managed by the
840 * tooltip system, getting deleted when the tooltip is gone.
842 * In order to set just a text as a tooltip, look at
843 * elm_gengrid_item_tooltip_text_set().
847 EAPI void elm_gengrid_item_tooltip_content_cb_set(Elm_Object_Item *it, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb);
850 * Unset a tooltip from a given gengrid item
852 * @param it gengrid item to remove a previously set tooltip from.
854 * This call removes any tooltip set on @p item. The callback
855 * provided as @c del_cb to
856 * elm_gengrid_item_tooltip_content_cb_set() will be called to
857 * notify it is not used anymore (and have resources cleaned, if
860 * @see elm_gengrid_item_tooltip_content_cb_set()
864 EAPI void elm_gengrid_item_tooltip_unset(Elm_Object_Item *it);
867 * Set a different @b style for a given gengrid item's tooltip.
869 * @param it gengrid item with tooltip set
870 * @param style the <b>theme style</b> to use on tooltips (e.g. @c
871 * "default", @c "transparent", etc)
873 * Tooltips can have <b>alternate styles</b> to be displayed on,
874 * which are defined by the theme set on Elementary. This function
875 * works analogously as elm_object_tooltip_style_set(), but here
876 * applied only to gengrid item objects. The default style for
877 * tooltips is @c "default".
879 * @note before you set a style you should define a tooltip with
880 * elm_gengrid_item_tooltip_content_cb_set() or
881 * elm_gengrid_item_tooltip_text_set()
883 * @see elm_gengrid_item_tooltip_style_get()
887 EAPI void elm_gengrid_item_tooltip_style_set(Elm_Object_Item *it, const char *style);
890 * Get the style set a given gengrid item's tooltip.
892 * @param it gengrid item with tooltip already set on.
893 * @return style the theme style in use, which defaults to
894 * "default". If the object does not have a tooltip set,
895 * then @c NULL is returned.
897 * @see elm_gengrid_item_tooltip_style_set() for more details
901 EAPI const char *elm_gengrid_item_tooltip_style_get(const Elm_Object_Item *it);
904 * @brief Disable size restrictions on an object's tooltip
905 * @param it The tooltip's anchor object
906 * @param disable If EINA_TRUE, size restrictions are disabled
907 * @return EINA_FALSE on failure, EINA_TRUE on success
909 * This function allows a tooltip to expand beyond its parent window's canvas.
910 * It will instead be limited only by the size of the display.
912 EAPI Eina_Bool elm_gengrid_item_tooltip_window_mode_set(Elm_Object_Item *it, Eina_Bool disable);
915 * @brief Retrieve size restriction state of an object's tooltip
916 * @param it The tooltip's anchor object
917 * @return If EINA_TRUE, size restrictions are disabled
919 * This function returns whether a tooltip is allowed to expand beyond
920 * its parent window's canvas.
921 * It will instead be limited only by the size of the display.
923 EAPI Eina_Bool elm_gengrid_item_tooltip_window_mode_get(const Elm_Object_Item *it);
926 * Set the type of mouse pointer/cursor decoration to be shown,
927 * when the mouse pointer is over the given gengrid widget item
929 * @param it gengrid item to customize cursor on
930 * @param cursor the cursor type's name
932 * This function works analogously as elm_object_cursor_set(), but
933 * here the cursor's changing area is restricted to the item's
934 * area, and not the whole widget's. Note that that item cursors
935 * have precedence over widget cursors, so that a mouse over @p
936 * item will always show cursor @p type.
938 * If this function is called twice for an object, a previously set
939 * cursor will be unset on the second call.
941 * @see elm_object_cursor_set()
942 * @see elm_gengrid_item_cursor_get()
943 * @see elm_gengrid_item_cursor_unset()
947 EAPI void elm_gengrid_item_cursor_set(Elm_Object_Item *it, const char *cursor);
950 * Get the type of mouse pointer/cursor decoration set to be shown,
951 * when the mouse pointer is over the given gengrid widget item
953 * @param it gengrid item with custom cursor set
954 * @return the cursor type's name or @c NULL, if no custom cursors
955 * were set to @p item (and on errors)
957 * @see elm_object_cursor_get()
958 * @see elm_gengrid_item_cursor_set() for more details
959 * @see elm_gengrid_item_cursor_unset()
963 EAPI const char *elm_gengrid_item_cursor_get(const Elm_Object_Item *it);
966 * Unset any custom mouse pointer/cursor decoration set to be
967 * shown, when the mouse pointer is over the given gengrid widget
968 * item, thus making it show the @b default cursor again.
970 * @param it a gengrid item
972 * Use this call to undo any custom settings on this item's cursor
973 * decoration, bringing it back to defaults (no custom style set).
975 * @see elm_object_cursor_unset()
976 * @see elm_gengrid_item_cursor_set() for more details
980 EAPI void elm_gengrid_item_cursor_unset(Elm_Object_Item *it);
983 * Set a different @b style for a given custom cursor set for a
986 * @param it gengrid item with custom cursor set
987 * @param style the <b>theme style</b> to use (e.g. @c "default",
988 * @c "transparent", etc)
990 * This function only makes sense when one is using custom mouse
991 * cursor decorations <b>defined in a theme file</b> , which can
992 * have, given a cursor name/type, <b>alternate styles</b> on
993 * it. It works analogously as elm_object_cursor_style_set(), but
994 * here applied only to gengrid item objects.
996 * @warning Before you set a cursor style you should have defined a
997 * custom cursor previously on the item, with
998 * elm_gengrid_item_cursor_set()
1000 * @see elm_gengrid_item_cursor_engine_only_set()
1001 * @see elm_gengrid_item_cursor_style_get()
1005 EAPI void elm_gengrid_item_cursor_style_set(Elm_Object_Item *it, const char *style);
1008 * Get the current @b style set for a given gengrid item's custom
1011 * @param it gengrid item with custom cursor set.
1012 * @return style the cursor style in use. If the object does not
1013 * have a cursor set, then @c NULL is returned.
1015 * @see elm_gengrid_item_cursor_style_set() for more details
1019 EAPI const char *elm_gengrid_item_cursor_style_get(const Elm_Object_Item *it);
1022 * Set if the (custom) cursor for a given gengrid item should be
1023 * searched in its theme, also, or should only rely on the
1026 * @param it item with custom (custom) cursor already set on
1027 * @param engine_only Use @c EINA_TRUE to have cursors looked for
1028 * only on those provided by the rendering engine, @c EINA_FALSE to
1029 * have them searched on the widget's theme, as well.
1031 * @note This call is of use only if you've set a custom cursor
1032 * for gengrid items, with elm_gengrid_item_cursor_set().
1034 * @note By default, cursors will only be looked for between those
1035 * provided by the rendering engine.
1039 EAPI void elm_gengrid_item_cursor_engine_only_set(Elm_Object_Item *it, Eina_Bool engine_only);
1042 * Get if the (custom) cursor for a given gengrid item is being
1043 * searched in its theme, also, or is only relying on the rendering
1046 * @param it a gengrid item
1047 * @return @c EINA_TRUE, if cursors are being looked for only on
1048 * those provided by the rendering engine, @c EINA_FALSE if they
1049 * are being searched on the widget's theme, as well.
1051 * @see elm_gengrid_item_cursor_engine_only_set(), for more details
1055 EAPI Eina_Bool elm_gengrid_item_cursor_engine_only_get(const Elm_Object_Item *it);
1058 * Set the size for the items of a given gengrid widget
1060 * @param obj The gengrid object.
1061 * @param w The items' width.
1062 * @param h The items' height;
1064 * A gengrid, after creation, has still no information on the size
1065 * to give to each of its cells. So, you most probably will end up
1066 * with squares one @ref Fingers "finger" wide, the default
1067 * size. Use this function to force a custom size for you items,
1068 * making them as big as you wish.
1070 * @see elm_gengrid_item_size_get()
1074 EAPI void elm_gengrid_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h);
1077 * Get the size set for the items of a given gengrid widget
1079 * @param obj The gengrid object.
1080 * @param w Pointer to a variable where to store the items' width.
1081 * @param h Pointer to a variable where to store the items' height.
1083 * @note Use @c NULL pointers on the size values you're not
1084 * interested in: they'll be ignored by the function.
1086 * @see elm_gengrid_item_size_get() for more details
1090 EAPI void elm_gengrid_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h);
1093 * Set the size for the group items of a given gengrid widget
1095 * @param obj The gengrid object.
1096 * @param w The group items' width.
1097 * @param h The group items' height;
1099 * A gengrid, after creation, has still no information on the size
1100 * to give to each of its cells. So, you most probably will end up
1101 * with squares one @ref Fingers "finger" wide, the default
1102 * size. Use this function to force a custom size for you group items,
1103 * making them as big as you wish.
1105 * @see elm_gengrid_group_item_size_get()
1109 EAPI void elm_gengrid_group_item_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h);
1112 * Get the size set for the group items of a given gengrid widget
1114 * @param obj The gengrid object.
1115 * @param w Pointer to a variable where to store the group items' width.
1116 * @param h Pointer to a variable where to store the group items' height.
1118 * @note Use @c NULL pointers on the size values you're not
1119 * interested in: they'll be ignored by the function.
1121 * @see elm_gengrid_group_item_size_get() for more details
1125 EAPI void elm_gengrid_group_item_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h);
1128 * Set the items grid's alignment within a given gengrid widget
1130 * @param obj The gengrid object.
1131 * @param align_x Alignment in the horizontal axis (0 <= align_x <= 1).
1132 * @param align_y Alignment in the vertical axis (0 <= align_y <= 1).
1134 * This sets the alignment of the whole grid of items of a gengrid
1135 * within its given viewport. By default, those values are both
1136 * 0.5, meaning that the gengrid will have its items grid placed
1137 * exactly in the middle of its viewport.
1139 * @note If given alignment values are out of the cited ranges,
1140 * they'll be changed to the nearest boundary values on the valid
1143 * @see elm_gengrid_align_get()
1147 EAPI void elm_gengrid_align_set(Evas_Object *obj, double align_x, double align_y);
1150 * Get the items grid's alignment values within a given gengrid
1153 * @param obj The gengrid object.
1154 * @param align_x Pointer to a variable where to store the
1155 * horizontal alignment.
1156 * @param align_y Pointer to a variable where to store the vertical
1159 * @note Use @c NULL pointers on the alignment values you're not
1160 * interested in: they'll be ignored by the function.
1162 * @see elm_gengrid_align_set() for more details
1166 EAPI void elm_gengrid_align_get(const Evas_Object *obj, double *align_x, double *align_y);
1169 * Set whether a given gengrid widget is or not able have items
1172 * @param obj The gengrid object
1173 * @param reorder_mode Use @c EINA_TRUE to turn reordering on,
1174 * @c EINA_FALSE to turn it off
1176 * If a gengrid is set to allow reordering, a click held for more
1177 * than 0.5 over a given item will highlight it specially,
1178 * signaling the gengrid has entered the reordering state. From
1179 * that time on, the user will be able to, while still holding the
1180 * mouse button down, move the item freely in the gengrid's
1181 * viewport, replacing to said item to the locations it goes to.
1182 * The replacements will be animated and, whenever the user
1183 * releases the mouse button, the item being replaced gets a new
1184 * definitive place in the grid.
1186 * @see elm_gengrid_reorder_mode_get()
1190 EAPI void elm_gengrid_reorder_mode_set(Evas_Object *obj, Eina_Bool reorder_mode);
1193 * Get whether a given gengrid widget is or not able have items
1196 * @param obj The gengrid object
1197 * @return @c EINA_TRUE, if reordering is on, @c EINA_FALSE if it's
1200 * @see elm_gengrid_reorder_mode_set() for more details
1204 EAPI Eina_Bool elm_gengrid_reorder_mode_get(const Evas_Object *obj);
1208 * Set a given gengrid widget's scrolling page size, relative to
1209 * its viewport size.
1211 * @param obj The gengrid object
1212 * @param h_pagerel The horizontal page (relative) size
1213 * @param v_pagerel The vertical page (relative) size
1215 * The gengrid's scroller is capable of binding scrolling by the
1216 * user to "pages". It means that, while scrolling and, specially
1217 * after releasing the mouse button, the grid will @b snap to the
1218 * nearest displaying page's area. When page sizes are set, the
1219 * grid's continuous content area is split into (equal) page sized
1222 * This function sets the size of a page <b>relatively to the
1223 * viewport dimensions</b> of the gengrid, for each axis. A value
1224 * @c 1.0 means "the exact viewport's size", in that axis, while @c
1225 * 0.0 turns paging off in that axis. Likewise, @c 0.5 means "half
1226 * a viewport". Sane usable values are, than, between @c 0.0 and @c
1227 * 1.0. Values beyond those will make it behave behave
1228 * inconsistently. If you only want one axis to snap to pages, use
1229 * the value @c 0.0 for the other one.
1231 * There is a function setting page size values in @b absolute
1232 * values, too -- elm_gengrid_page_size_set(). Naturally, its use
1233 * is mutually exclusive to this one.
1235 * @see elm_gengrid_page_relative_get()
1239 EAPI void elm_gengrid_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel);
1242 * Get a given gengrid widget's scrolling page size, relative to
1243 * its viewport size.
1245 * @param obj The gengrid object
1246 * @param h_pagerel Pointer to a variable where to store the
1247 * horizontal page (relative) size
1248 * @param v_pagerel Pointer to a variable where to store the
1249 * vertical page (relative) size
1251 * @see elm_gengrid_page_relative_set() for more details
1255 EAPI void elm_gengrid_page_relative_get(const Evas_Object *obj, double *h_pagerel, double *v_pagerel);
1258 * Set a given gengrid widget's scrolling page size
1260 * @param obj The gengrid object
1261 * @param h_pagesize The horizontal page size, in pixels
1262 * @param v_pagesize The vertical page size, in pixels
1264 * The gengrid's scroller is capable of binding scrolling by the
1265 * user to "pages". It means that, while scrolling and, specially
1266 * after releasing the mouse button, the grid will @b snap to the
1267 * nearest displaying page's area. When page sizes are set, the
1268 * grid's continuous content area is split into (equal) page sized
1271 * This function sets the size of a page of the gengrid, in pixels,
1272 * for each axis. Sane usable values are, between @c 0 and the
1273 * dimensions of @p obj, for each axis. Values beyond those will
1274 * make it behave behave inconsistently. If you only want one axis
1275 * to snap to pages, use the value @c 0 for the other one.
1277 * There is a function setting page size values in @b relative
1278 * values, too -- elm_gengrid_page_relative_set(). Naturally, its
1279 * use is mutually exclusive to this one.
1283 EAPI void elm_gengrid_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize);
1286 * @brief Get gengrid current page number.
1288 * @param obj The gengrid object
1289 * @param h_pagenumber The horizontal page number
1290 * @param v_pagenumber The vertical page number
1292 * The page number starts from 0. 0 is the first page.
1293 * Current page means the page which meet the top-left of the viewport.
1294 * If there are two or more pages in the viewport, it returns the number of page
1295 * which meet the top-left of the viewport.
1297 * @see elm_gengrid_last_page_get()
1298 * @see elm_gengrid_page_show()
1299 * @see elm_gengrid_page_bring_in()
1301 EAPI void elm_gengrid_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber);
1304 * @brief Get gengrid last page number.
1306 * @param obj The gengrid object
1307 * @param h_pagenumber The horizontal page number
1308 * @param v_pagenumber The vertical page number
1310 * The page number starts from 0. 0 is the first page.
1311 * This returns the last page number among the pages.
1313 * @see elm_gengrid_current_page_get()
1314 * @see elm_gengrid_page_show()
1315 * @see elm_gengrid_page_bring_in()
1317 EAPI void elm_gengrid_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber);
1320 * Show a specific virtual region within the gengrid content object by page number.
1322 * @param obj The gengrid object
1323 * @param h_pagenumber The horizontal page number
1324 * @param v_pagenumber The vertical page number
1326 * 0, 0 of the indicated page is located at the top-left of the viewport.
1327 * This will jump to the page directly without animation.
1332 * sc = elm_gengrid_add(win);
1333 * elm_gengrid_content_set(sc, content);
1334 * elm_gengrid_page_relative_set(sc, 1, 0);
1335 * elm_gengrid_current_page_get(sc, &h_page, &v_page);
1336 * elm_gengrid_page_show(sc, h_page + 1, v_page);
1339 * @see elm_gengrid_page_bring_in()
1341 EAPI void elm_gengrid_page_show(const Evas_Object *obj, int h_pagenumber, int v_pagenumber);
1344 * Show a specific virtual region within the gengrid content object by page number.
1346 * @param obj The gengrid object
1347 * @param h_pagenumber The horizontal page number
1348 * @param v_pagenumber The vertical page number
1350 * 0, 0 of the indicated page is located at the top-left of the viewport.
1351 * This will slide to the page with animation.
1356 * sc = elm_gengrid_add(win);
1357 * elm_gengrid_content_set(sc, content);
1358 * elm_gengrid_page_relative_set(sc, 1, 0);
1359 * elm_gengrid_last_page_get(sc, &h_page, &v_page);
1360 * elm_gengrid_page_bring_in(sc, h_page, v_page);
1363 * @see elm_gengrid_page_show()
1365 EAPI void elm_gengrid_page_bring_in(const Evas_Object *obj, int h_pagenumber, int v_pagenumber);
1368 * Get a given gengrid item's position, relative to the whole
1369 * gengrid's grid area.
1371 * @param it The Gengrid item.
1372 * @param x Pointer to variable to store the item's <b>row number</b>.
1373 * @param y Pointer to variable to store the item's <b>column number</b>.
1375 * This returns the "logical" position of the item within the
1376 * gengrid. For example, @c (0, 1) would stand for first row,
1381 EAPI void elm_gengrid_item_pos_get(const Elm_Object_Item *it, unsigned int *x, unsigned int *y);
1384 * Set how the items grid's filled within a given gengrid widget
1386 * @param obj The gengrid object.
1387 * @param fill Filled if True
1389 * This sets the fill state of the whole grid of items of a gengrid
1390 * within its given viewport. By default, this value is false, meaning
1391 * that if the first line of items grid's isn't filled, the items are
1392 * centered with the alignment
1394 * @see elm_gengrid_filled_get()
1399 //XXX: Does this API working well?
1400 EAPI void elm_gengrid_filled_set(Evas_Object *obj, Eina_Bool fill);
1403 * Get how the items grid's filled within a given gengrid widget
1405 * @param obj The gengrid object.
1406 * @return @c EINA_TRUE, if filled is on, @c EINA_FALSE if it's
1409 * @note Use @c NULL pointers on the alignment values you're not
1410 * interested in: they'll be ignored by the function.
1412 * @see elm_gengrid_align_set() for more details
1416 //XXX: Does this API working well?
1417 EAPI Eina_Bool elm_gengrid_filled_get(const Evas_Object *obj);
1420 * Set the gengrid select mode.
1422 * @param obj The gengrid object
1423 * @param mode The select mode
1425 * elm_gengrid_select_mode_set() changes item select mode in the gengrid widget.
1426 * - ELM_OBJECT_NORMAL_SELECT : Items will only call their selection func and
1427 * callback when first becoming selected. Any further clicks will
1428 * do nothing, unless you set always select mode.
1429 * - ELM_OBJECT_ALWAYS_SELECT : This means that, even if selected,
1430 * every click will make the selected callbacks be called.
1431 * - ELM_OBJECT_NO_SELECT : This will turn off the ability to select items
1432 * entirely and they will neither appear selected nor call selected
1433 * callback functions.
1435 * @see elm_gengrid_select_mode_get()
1440 elm_gengrid_select_mode_set(Evas_Object *obj, Elm_Object_Select_Mode_Type mode);
1443 * Get the gengrid select mode.
1445 * @param obj The gengrid object
1446 * @return The select mode
1447 * (If getting mode is failed, it returns ELM_OBJECT_SELECT_MODE_MAX)
1449 * @see elm_gengrid_select_mode_set()
1453 EAPI Elm_Object_Select_Mode_Type
1454 elm_gengrid_select_mode_get(const Evas_Object *obj);