summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_widget_item_eo.legacy.h
blob: 2937be3df0770d01dee668a71438d6b71040885d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
#ifndef _ELM_WIDGET_ITEM_EO_LEGACY_H_
#define _ELM_WIDGET_ITEM_EO_LEGACY_H_

#ifndef _ELM_WIDGET_ITEM_EO_CLASS_TYPE
#define _ELM_WIDGET_ITEM_EO_CLASS_TYPE

/**
 * @typedef Elm_Widget_Item
 * An Elementary widget item handle.
 * This is a sub component of an Elementary widget and it is the same as
 * Elementary object item, Elm_Object_Item.
 * Common functions for Elementary widget item are provided on this page.
 * Each Elementary widget also provides its own functions to use Elementary
 * widget item.
 * For more details about how Elementary widget item is used with Elementary
 * widget, please refer each Elementary widget's documents.
 * @ingroup Elm_General
 */
typedef Eo Elm_Widget_Item;

#endif

#ifndef _ELM_WIDGET_ITEM_EO_TYPES
#define _ELM_WIDGET_ITEM_EO_TYPES


#endif

/**
 * @brief Control size restriction state of an object's tooltip
 *
 * This function returns whether a tooltip is allowed to expand beyond its
 * parent window's canvas. It will instead be limited only by the size of the
 * display.
 *
 * @param[in] obj The object.
 * @param[in] disable If @c true, size restrictions are disabled
 *
 * @return @c false on failure, @c true on success
 *
 * @ingroup Elm_General
 */
EAPI Eina_Bool elm_object_item_tooltip_window_mode_set(Elm_Widget_Item *obj, Eina_Bool disable);

/**
 * @brief Control size restriction state of an object's tooltip
 *
 * This function returns whether a tooltip is allowed to expand beyond its
 * parent window's canvas. It will instead be limited only by the size of the
 * display.
 *
 * @param[in] obj The object.
 *
 * @return If @c true, size restrictions are disabled
 *
 * @ingroup Elm_General
 */
EAPI Eina_Bool elm_object_item_tooltip_window_mode_get(const Elm_Widget_Item *obj);

/**
 * @brief Control a different style for this item tooltip.
 *
 * @note before you set a style you should define a tooltip with
 * @ref elm_object_item_tooltip_content_cb_set or
 * @ref elm_object_item_tooltip_text_set
 *
 * See: elm_object_tooltip_style_set() for more details.
 *
 * @param[in] obj The object.
 * @param[in] style The theme style used/to use (default, transparent, ...)
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_tooltip_style_set(Elm_Widget_Item *obj, const char *style);

/**
 * @brief Control a different style for this item tooltip.
 *
 * @note before you set a style you should define a tooltip with
 * @ref elm_object_item_tooltip_content_cb_set or
 * @ref elm_object_item_tooltip_text_set
 *
 * See: elm_object_tooltip_style_set() for more details.
 *
 * @param[in] obj The object.
 *
 * @return The theme style used/to use (default, transparent, ...)
 *
 * @ingroup Elm_General
 */
EAPI const char *elm_object_item_tooltip_style_get(const Elm_Widget_Item *obj);

/**
 * @brief Control the type of mouse pointer/cursor decoration to be shown, when
 * the mouse pointer is over the given item
 *
 * This function works analogously as elm_object_cursor_set(), but here the
 * cursor's changing area is restricted to the item's area, and not the whole
 * widget's. Note that that item cursors have precedence over widget cursors,
 * so that a mouse over an item with custom cursor set will always show that
 * cursor.
 *
 * If this function is called twice for an object, a previously set cursor will
 * be unset on the second call.
 *
 * @param[in] obj The object.
 * @param[in] cursor The cursor type's name
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_cursor_set(Elm_Widget_Item *obj, const char *cursor);

/**
 * @brief Control the type of mouse pointer/cursor decoration to be shown, when
 * the mouse pointer is over the given item
 *
 * This function works analogously as elm_object_cursor_set(), but here the
 * cursor's changing area is restricted to the item's area, and not the whole
 * widget's. Note that that item cursors have precedence over widget cursors,
 * so that a mouse over an item with custom cursor set will always show that
 * cursor.
 *
 * If this function is called twice for an object, a previously set cursor will
 * be unset on the second call.
 *
 * @param[in] obj The object.
 *
 * @return The cursor type's name
 *
 * @ingroup Elm_General
 */
EAPI const char *elm_object_item_cursor_get(const Elm_Widget_Item *obj);

/**
 * @brief Control a different @c style for a given custom cursor set for an
 * item.
 *
 * This function only makes sense when one is using custom mouse cursor
 * decorations defined in a theme file, which can have, given a cursor
 * name/type, alternate styles on it. It works analogously as
 * elm_object_cursor_style_set(), but here applies only to item objects.
 *
 * @warning Before you set a cursor style you should have defined a custom
 * cursor previously on the item, with @ref elm_object_item_cursor_set
 *
 * @param[in] obj The object.
 * @param[in] style The theme style to use/in use (e.g. $"default",
 * $"transparent", etc)
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_cursor_style_set(Elm_Widget_Item *obj, const char *style);

/**
 * @brief Control a different @c style for a given custom cursor set for an
 * item.
 *
 * This function only makes sense when one is using custom mouse cursor
 * decorations defined in a theme file, which can have, given a cursor
 * name/type, alternate styles on it. It works analogously as
 * elm_object_cursor_style_set(), but here applies only to item objects.
 *
 * @warning Before you set a cursor style you should have defined a custom
 * cursor previously on the item, with @ref elm_object_item_cursor_set
 *
 * @param[in] obj The object.
 *
 * @return The theme style to use/in use (e.g. $"default", $"transparent", etc)
 *
 * @ingroup Elm_General
 */
EAPI const char *elm_object_item_cursor_style_get(const Elm_Widget_Item *obj);

/**
 * @brief Control if the (custom)cursor for a given item should be searched in
 * its theme, also, or should only rely on the rendering engine.
 *
 * @note This call is of use only if you've set a custom cursor for items, with
 * @ref elm_object_item_cursor_set.
 *
 * @note By default, cursors will only be looked for between those provided by
 * the rendering engine.
 *
 * @param[in] obj The object.
 * @param[in] engine_only Use @c true to have cursors looked for only on those
 * provided by the rendering engine, @c false to have them searched on the
 * widget's theme, as well.
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_cursor_engine_only_set(Elm_Widget_Item *obj, Eina_Bool engine_only);

/**
 * @brief Control if the (custom)cursor for a given item should be searched in
 * its theme, also, or should only rely on the rendering engine.
 *
 * @note This call is of use only if you've set a custom cursor for items, with
 * @ref elm_object_item_cursor_set.
 *
 * @note By default, cursors will only be looked for between those provided by
 * the rendering engine.
 *
 * @param[in] obj The object.
 *
 * @return Use @c true to have cursors looked for only on those provided by the
 * rendering engine, @c false to have them searched on the widget's theme, as
 * well.
 *
 * @ingroup Elm_General
 */
EAPI Eina_Bool elm_object_item_cursor_engine_only_get(const Elm_Widget_Item *obj);

/**
 * @brief Control a content of an object item
 *
 * This sets a new object to an item as a content object. If any object was
 * already set as a content object in the same part, previous object will be
 * deleted automatically.
 *
 * @param[in] obj The object.
 * @param[in] part The content part name  (NULL for the default content)
 * @param[in] content The content of the object item
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_part_content_set(Elm_Widget_Item *obj, const char *part, Efl_Canvas_Object *content);

/**
 * @brief Control a content of an object item
 *
 * This sets a new object to an item as a content object. If any object was
 * already set as a content object in the same part, previous object will be
 * deleted automatically.
 *
 * @param[in] obj The object.
 * @param[in] part The content part name  (NULL for the default content)
 *
 * @return The content of the object item
 *
 * @ingroup Elm_General
 */
EAPI Efl_Canvas_Object *elm_object_item_part_content_get(const Elm_Widget_Item *obj, const char *part);

/**
 * @brief Control a label of an object item
 *
 * @note Elementary object items may have many labels
 *
 * @param[in] obj The object.
 * @param[in] part The text part name (NULL for the default label)
 * @param[in] label Text of the label
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_part_text_set(Elm_Widget_Item *obj, const char *part, const char *label);

/**
 * @brief Control a label of an object item
 *
 * @note Elementary object items may have many labels
 *
 * @param[in] obj The object.
 * @param[in] part The text part name (NULL for the default label)
 *
 * @return Text of the label
 *
 * @ingroup Elm_General
 */
EAPI const char *elm_object_item_part_text_get(const Elm_Widget_Item *obj, const char *part);



/**
 * @brief Control the object item focused
 *
 * @param[in] obj The object.
 * @param[in] focused The focused state
 *
 * @since 1.10
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_focus_set(Elm_Widget_Item *obj, Eina_Bool focused);

/**
 * @brief Control the object item focused
 *
 * @param[in] obj The object.
 *
 * @return The focused state
 *
 * @since 1.10
 *
 * @ingroup Elm_General
 */
EAPI Eina_Bool elm_object_item_focus_get(const Elm_Widget_Item *obj);

/**
 * @brief Control the style of an object item
 *
 * @param[in] obj The object.
 * @param[in] style The style of object item
 *
 * @since 1.9
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_style_set(Elm_Widget_Item *obj, const char *style);

/**
 * @brief Control the style of an object item
 *
 * @param[in] obj The object.
 *
 * @return The style of object item
 *
 * @since 1.9
 *
 * @ingroup Elm_General
 */
EAPI const char *elm_object_item_style_get(const Elm_Widget_Item *obj);

/**
 * @brief Control the disabled state of a widget item.
 *
 * Elementary object item can be disabled, in which state they won't receive
 * input and, in general, will be themed differently from their normal state,
 * usually greyed out. Useful for contexts where you don't want your users to
 * interact with some of the parts of you interface.
 *
 * This sets the state for the widget item, either disabling it or enabling it
 * back.
 *
 * @param[in] obj The object.
 * @param[in] disable @c true, if the widget item is disabled, @c false if it's
 * enabled (or on errors)
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_disabled_set(Elm_Widget_Item *obj, Eina_Bool disable);

/**
 * @brief Control the disabled state of a widget item.
 *
 * Elementary object item can be disabled, in which state they won't receive
 * input and, in general, will be themed differently from their normal state,
 * usually greyed out. Useful for contexts where you don't want your users to
 * interact with some of the parts of you interface.
 *
 * This sets the state for the widget item, either disabling it or enabling it
 * back.
 *
 * @param[in] obj The object.
 *
 * @return @c true, if the widget item is disabled, @c false if it's enabled
 * (or on errors)
 *
 * @ingroup Elm_General
 */
EAPI Eina_Bool elm_object_item_disabled_get(const Elm_Widget_Item *obj);

/**
 * @brief Get highlight order
 *
 * @param[in] obj The object.
 *
 * @return List of evas canvas objects
 *
 * @since 1.8
 *
 * @ingroup Elm_General
 */
EAPI const Eina_List *elm_object_item_access_order_get(Elm_Widget_Item *obj);

/**
 * @brief Set highlight order
 *
 * @param[in] obj The object.
 * @param[in] objs Order of objects to pass highlight
 *
 * @since 1.8
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_access_order_set(Elm_Widget_Item *obj, Eina_List *objs);

/**
 * @brief Get the widget object's handle which contains a given item
 *
 * @note This returns the widget object itself that an item belongs to. Note:
 * Every elm_object_item supports this API
 *
 * @param[in] obj The object.
 *
 * @return The widget object
 *
 * @ingroup Elm_General
 */
EAPI Efl_Canvas_Object *elm_object_item_widget_get(const Elm_Widget_Item *obj);


/**
 * @brief Set the text to be shown in a given object item's tooltips.
 *
 * Setup the text as tooltip to object. The item can have only one tooltip, so
 * any previous tooltip data - set with this function or
 * @ref elm_object_item_tooltip_content_cb_set - is removed.
 *
 * See: elm_object_tooltip_text_set() for more details.
 *
 * @param[in] obj The object.
 * @param[in] text The text to set in the content.
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_tooltip_text_set(Elm_Widget_Item *obj, const char *text);


/**
 * @brief Unset tooltip from item.
 *
 * Remove tooltip from item. The callback provided as del_cb to
 * @ref elm_object_item_tooltip_content_cb_set will be called to notify it is
 * not used anymore.
 *
 * See: elm_object_tooltip_unset() for more details. See:
 * @ref elm_object_item_tooltip_content_cb_set
 * @param[in] obj The object.
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_tooltip_unset(Elm_Widget_Item *obj);

/**
 * @brief Unset any custom mouse pointer/cursor decoration set to be shown,
 * when the mouse pointer is over the given item, thus making it show the
 * default cursor again.
 *
 * Use this call to undo any custom settings on this item's cursor decoration,
 * bringing it back to defaults (no custom style set).
 *
 * See: elm_object_cursor_unset() See: @ref elm_object_item_cursor_set
 * @param[in] obj The object.
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_cursor_unset(Elm_Widget_Item *obj);

/**
 * @brief Unset a content of an object item
 *
 * @note Elementary object items may have many contents
 *
 * @param[in] obj The object.
 * @param[in] part The content part name to unset (NULL for the default
 * content)
 *
 * @return Content object
 *
 * @ingroup Elm_General
 */
EAPI Efl_Canvas_Object *elm_object_item_part_content_unset(Elm_Widget_Item *obj, const char *part);


/**
 * @brief Add a callback for a signal emitted by object item edje.
 *
 * This function connects a callback function to a signal emitted by the edje
 * object of the object item. Globs can occur in either the emission or source
 * name.
 *
 * @param[in] obj The object.
 * @param[in] emission The signal's name.
 * @param[in] source The signal's source.
 * @param[in] func The callback function to be executed when the signal is
 * emitted.
 * @param[in] data A pointer to data to pass to the callback function.
 *
 * @since 1.8
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_signal_callback_add(Elm_Widget_Item *obj, const char *emission, const char *source, Elm_Object_Item_Signal_Cb func, void *data);

/**
 * @brief Remove a signal-triggered callback from a object item edje object.
 *
 * This function removes the last callback, previously attached to a signal
 * emitted by an underlying Edje object of @c it, whose parameters @c emission,
 * @c source and @c func match exactly with those passed to a previous call to
 * @ref elm_object_item_signal_callback_add. The data pointer that was passed
 * to this call will be returned.
 *
 * See: @ref elm_object_item_signal_callback_add
 *
 * @param[in] obj The object.
 * @param[in] emission The signal's name.
 * @param[in] source The signal's source.
 * @param[in] func The callback function to be executed when the signal is
 * emitted.
 *
 * @return The data pointer of the signal callback or @c NULL, on errors.
 *
 * @since 1.8
 *
 * @ingroup Elm_General
 */
EAPI void *elm_object_item_signal_callback_del(Elm_Widget_Item *obj, const char *emission, const char *source, Elm_Object_Item_Signal_Cb func);

/**
 * @brief Send a signal to the edje object of the widget item.
 *
 * This function sends a signal to the edje object of the obj item. An edje
 * program can respond to a signal by specifying matching 'signal' and 'source'
 * fields. Don't use this unless you want to also handle resetting of part
 * states to default on every unrealize in case of genlist/gengrid.
 *
 * @param[in] obj The object.
 * @param[in] emission The signal's name.
 * @param[in] source The signal's source.
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_signal_emit(Elm_Widget_Item *obj, const char *emission, const char *source);

/**
 * @brief Set the text to read out when in accessibility mode
 *
 * @param[in] obj The object.
 * @param[in] txt The text that describes the widget to people with poor or no
 * vision
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_access_info_set(Elm_Widget_Item *obj, const char *txt);

/**
 * @brief Get an accessible object of the object item.
 *
 * @param[in] obj The object.
 *
 * @return Accessible object of the object item or NULL for any error
 *
 * @since 1.8
 *
 * @ingroup Elm_General
 */
EAPI Efl_Canvas_Object *elm_object_item_access_object_get(const Elm_Widget_Item *obj);

/**
 * @brief Set the text for an object item's part, marking it as translatable.
 *
 * The string to set as @c text must be the original one. Do not pass the
 * return of @c gettext() here. Elementary will translate the string internally
 * and set it on the object item using @ref elm_object_item_part_text_set, also
 * storing the original string so that it can be automatically translated when
 * the language is changed with elm_language_set(). The @c domain will be
 * stored along to find the translation in the correct catalog. It can be NULL,
 * in which case it will use whatever domain was set by the application with
 * @c textdomain(). This is useful in case you are building a library on top of
 * Elementary that will have its own translatable strings, that should not be
 * mixed with those of programs using the library.
 *
 * @param[in] obj The object.
 * @param[in] part The name of the part to set
 * @param[in] domain The translation domain to use
 * @param[in] label The original, non-translated text to set
 *
 * @since 1.8
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_domain_translatable_part_text_set(Elm_Widget_Item *obj, const char *part, const char *domain, const char *label);

/**
 * @brief Get the original string set as translatable for an object item.
 *
 * When setting translated strings, the function
 * @ref elm_object_item_part_text_get will return the translation returned by
 * @c gettext(). To get the original string use this function.
 *
 * @param[in] obj The object.
 * @param[in] part The name of the part that was set
 *
 * @return The original, untranslated string
 *
 * @since 1.8
 *
 * @ingroup Elm_General
 */
EAPI const char *elm_object_item_translatable_part_text_get(const Elm_Widget_Item *obj, const char *part);


/**
 * @brief Mark the part text to be translatable or not.
 *
 * Once you mark the part text to be translatable, the text will be translated
 * internally regardless of @ref elm_object_item_part_text_set and
 * @ref elm_object_item_domain_translatable_part_text_set. In other case, if
 * you set the Elementary policy that all text will be translatable in default,
 * you can set the part text to not be translated by calling this API.
 *
 * See: @ref elm_object_item_domain_translatable_part_text_set See:
 * @ref elm_object_item_part_text_set See: elm_policy()
 *
 * @param[in] obj The object.
 * @param[in] part The part name of the translatable text
 * @param[in] domain The translation domain to use
 * @param[in] translatable @c true, the part text will be translated
 * internally. @c false, otherwise.
 *
 * @since 1.8
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_domain_part_text_translatable_set(Elm_Widget_Item *obj, const char *part, const char *domain, Eina_Bool translatable);

/**
 * @brief This returns track object of the item.
 *
 * @note This gets a rectangle object that represents the object item's
 * internal object. If you want to check the geometry, visibility of the item,
 * you can call the evas apis such as evas_object_geometry_get(),
 * evas_object_visible_get() to the track object. Note that all of the widget
 * items may/may not have the internal object so this api may return @c NULL if
 * the widget item doesn't have it. Additionally, the widget item is
 * managed/controlled by the widget, the widget item could be changed(moved,
 * resized even deleted) anytime by it's own widget's decision. So please dont'
 * change the track object as well as don't keep the track object in your side
 * as possible but get the track object at the moment you need to refer.
 * Otherwise, you need to add some callbacks to the track object to track it's
 * attributes changes.
 *
 * @warning After use the track object, please call the
 * @ref elm_object_item_untrack() paired to elm_object_item_track definitely to
 * free the track object properly. Don't delete the track object.
 *
 * See: @ref elm_object_item_untrack See: @ref elm_object_item_track_get
 *
 * @param[in] obj The object.
 *
 * @return The track object
 *
 * @since 1.8
 *
 * @ingroup Elm_General
 */
EAPI Efl_Canvas_Object *elm_object_item_track(Elm_Widget_Item *obj);

/**
 * @brief This retrieve the track object of the item.
 *
 * @note This retrieves the track object that was returned from
 * @ref elm_object_item_track.
 *
 * See: @ref elm_object_item_track See: @ref elm_object_item_track_get
 *
 * @param[in] obj The object.
 *
 * @since 1.8
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_untrack(Elm_Widget_Item *obj);

/**
 * @brief Get the track object reference count.
 *
 * @note This gets the reference count for the track object. Whenever you call
 * the @ref elm_object_item_track, the reference count will be increased by
 * one. Likely the reference count will be decreased again when you call the
 * @ref elm_object_item_untrack. Unless the reference count reaches to zero,
 * the track object won't be deleted. So please be sure to call
 * @ref elm_object_item_untrack() paired to the elm_object_item_track call
 * count.
 *
 * See: @ref elm_object_item_track See: @ref elm_object_item_track_get
 *
 * @param[in] obj The object.
 *
 * @return Track object reference count
 *
 * @since 1.8
 *
 * @ingroup Elm_General
 */
EAPI int elm_object_item_track_get(const Elm_Widget_Item *obj);


/**
 * @brief Set the function to be called when an item from the widget is freed.
 *
 * @note Every elm_object_item supports this API
 *
 * @param[in] obj The object.
 * @param[in] del_cb The function called
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_del_cb_set(Elm_Widget_Item *obj, Evas_Smart_Cb del_cb);

/**
 * @brief Set the content to be shown in the tooltip item.
 *
 * Setup the tooltip to item. The item can have only one tooltip, so any
 * previous tooltip data is removed. @c func(with @c data) will be called every
 * time that need show the tooltip and it should return a valid Evas_Object.
 * This object is then managed fully by tooltip system and is deleted when the
 * tooltip is gone.
 *
 * See: elm_object_tooltip_content_cb_set() for more details.
 *
 * @param[in] obj The object.
 * @param[in] func The function used to create the tooltip contents.
 * @param[in] data What to provide to @c func as callback data/context.
 * @param[in] del_cb Called when data is not needed anymore, either when
 * another callback replaces @c func, the tooltip is unset with
 * @ref elm_object_item_tooltip_unset or the owner @c item dies. This callback
 * receives as the first parameter the given @c data, and @c event_info is the
 * item.
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_tooltip_content_cb_set(Elm_Widget_Item *obj, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb);

/**
 * @brief Register object item as an accessible object.
 *
 * @param[in] obj The object.
 *
 * @return Accessible object of the object item or NULL for any error
 *
 * @since 1.8
 *
 * @ingroup Elm_General
 */
EAPI Efl_Canvas_Object *elm_object_item_access_register(Elm_Widget_Item *obj);

/** Unregister accessible object of the object item.
 *
 * @since 1.8
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_access_unregister(Elm_Widget_Item *obj);

/** Unset highlight order
 *
 * @since 1.8
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_access_order_unset(Elm_Widget_Item *obj);



/**
 * @brief Get the next object with specific focus direction.
 *
 * @param[in] obj The object.
 * @param[in] dir Focus direction
 *
 * @return Focus next object
 *
 * @since 1.16
 *
 * @ingroup Elm_General
 */
EAPI Efl_Canvas_Object *elm_object_item_focus_next_object_get(const Elm_Widget_Item *obj, Elm_Focus_Direction dir);

/**
 * @brief Set the next object with specific focus direction.
 *
 * @param[in] obj The object.
 * @param[in] next Focus next object
 * @param[in] dir Focus direction
 *
 * @since 1.16
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_focus_next_object_set(Elm_Widget_Item *obj, Efl_Canvas_Object *next, Elm_Focus_Direction dir);

/**
 * @brief Get the next object item with specific focus direction.
 *
 * @param[in] obj The object.
 * @param[in] dir Focus direction
 *
 * @return Focus next object item
 *
 * @since 1.16
 *
 * @ingroup Elm_General
 */
EAPI Elm_Widget_Item *elm_object_item_focus_next_item_get(const Elm_Widget_Item *obj, Elm_Focus_Direction dir);

/**
 * @brief Set the next object item with specific focus direction.
 *
 * @param[in] obj The object.
 * @param[in] next_item Focus next object item
 * @param[in] dir Focus direction
 *
 * @since 1.16
 *
 * @ingroup Elm_General
 */
EAPI void elm_object_item_focus_next_item_set(Elm_Widget_Item *obj, Elm_Widget_Item *next_item, Elm_Focus_Direction dir);

#endif