Tizen Native API
|
Functions | |
Evas_Object * | elm_index_add (Evas_Object *parent) |
Adds a new index widget to the given parent Elementary (container) object. | |
void | elm_index_autohide_disabled_set (Evas_Object *obj, Eina_Bool disabled) |
Enables or disables the auto hiding feature for a given index widget. | |
Eina_Bool | elm_index_autohide_disabled_get (const Evas_Object *obj) |
Gets whether the auto hiding feature is enabled for a given index widget. | |
void | elm_index_item_level_set (Evas_Object *obj, int level) |
Sets the items level for a given index widget. | |
int | elm_index_item_level_get (const Evas_Object *obj) |
Gets the items level set for a given index widget. | |
void | elm_index_item_selected_set (Elm_Object_Item *it, Eina_Bool selected) |
Sets the selected state of an item. | |
Elm_Object_Item * | elm_index_selected_item_get (const Evas_Object *obj, int level) |
Gets the last selected item, for a given index widget. | |
Elm_Object_Item * | elm_index_item_append (Evas_Object *obj, const char *letter, Evas_Smart_Cb func, const void *data) |
Appends a new item on a given index widget. | |
Elm_Object_Item * | elm_index_item_prepend (Evas_Object *obj, const char *letter, Evas_Smart_Cb func, const void *data) |
Prepends a new item on a given index widget. | |
Elm_Object_Item * | elm_index_item_insert_after (Evas_Object *obj, Elm_Object_Item *after, const char *letter, Evas_Smart_Cb func, const void *data) |
Inserts a new item into the index object after the item after. | |
Elm_Object_Item * | elm_index_item_insert_before (Evas_Object *obj, Elm_Object_Item *before, const char *letter, Evas_Smart_Cb func, const void *data) |
Inserts a new item into the index object before the item before. | |
Elm_Object_Item * | elm_index_item_sorted_insert (Evas_Object *obj, const char *letter, Evas_Smart_Cb func, const void *data, Eina_Compare_Cb cmp_func, Eina_Compare_Cb cmp_data_func) |
Inserts a new item into the given index widget, using cmp_func function to sort items (by item handles). | |
Elm_Object_Item * | elm_index_item_find (Evas_Object *obj, const void *data) |
Finds a given index widget's item, using item data. | |
void | elm_index_item_clear (Evas_Object *obj) |
Removes all items from a given index widget. | |
void | elm_index_level_go (Evas_Object *obj, int level) |
Flushes the changes made to the index items so they work correctly. | |
const char * | elm_index_item_letter_get (const Elm_Object_Item *item) |
Gets the letter (string) set on a given index widget item. | |
void | elm_index_indicator_disabled_set (Evas_Object *obj, Eina_Bool disabled) |
Sets the indicator to be disabled. | |
Eina_Bool | elm_index_indicator_disabled_get (const Evas_Object *obj) |
Gets the value of the indicator's disabled status. | |
void | elm_index_horizontal_set (Evas_Object *obj, Eina_Bool horizontal) |
Enables or disables the horizontal mode on the index object. | |
Eina_Bool | elm_index_horizontal_get (const Evas_Object *obj) |
Gets a value that indicates whether the horizontal mode is enabled. | |
void | elm_index_delay_change_time_set (Evas_Object *obj, double delay_change_time) |
Sets a delay change time for the index object. | |
double | elm_index_delay_change_time_get (const Evas_Object *obj) |
Gets a delay change time for the index object. | |
void | elm_index_omit_enabled_set (Evas_Object *obj, Eina_Bool enabled) |
Enables or disables the omit feature for a given index widget. | |
Eina_Bool | elm_index_omit_enabled_get (const Evas_Object *obj) |
Gets whether the omit feature is enabled for a given index widget. |
An index widget gives you an index for fast access to whichever group of other UI items one might have.
It's a list of text items (usually letters, for alphabetically ordered access).
Index widgets are by default hidden and just appear when the user clicks over it's reserved area in the canvas. In its default theme, it's an area of one finger wide on the right side of the index widget's container.
When items on the index are selected, smart callbacks get called, so that its user can make other container objects to show a given area or child object depending on the index item selected. You would probably be using an index together with lists or generic lists.
This widget inherits from the Layout one, so that all the functions acting on it also work for index objects.
This widget emits the following signals, besides the ones sent from Layout :
"changed"
- When the selected index item changes. event_info
is the selected item's data pointer."delay,changed"
- When the selected index item changes, but after a small idling period. event_info is the selected item's data pointer."selected"
- When the user releases a mouse button and selects an item. event_info is the selected item's data pointer."level,up"
- When the user moves a finger from the first level to the second level."level,down"
- When the user moves a finger from the second level to the first level."language,changed"
- The program's language is changed.The "delay,changed"
event is so that it waits for a small period of time before actually reporting those events and, moreover, just the last event happening on those time frames is actually reported.
Evas_Object* elm_index_add | ( | Evas_Object * | parent | ) |
Adds a new index widget to the given parent Elementary (container) object.
This function inserts a new index widget on the canvas.
[in] | parent | The parent object |
NULL
in case of an error Eina_Bool elm_index_autohide_disabled_get | ( | const Evas_Object * | obj | ) |
Gets whether the auto hiding feature is enabled for a given index widget.
[in] | obj | The index object |
EINA_TRUE
if auto hiding is disabled, otherwise EINA_FALSE
void elm_index_autohide_disabled_set | ( | Evas_Object * | obj, |
Eina_Bool | disabled | ||
) |
Enables or disables the auto hiding feature for a given index widget.
[in] | obj | The index object |
[in] | disabled | If EINA_TRUE auto hiding is disabled, otherwise EINA_FALSE to enable it |
double elm_index_delay_change_time_get | ( | const Evas_Object * | obj | ) |
Gets a delay change time for the index object.
[in] | obj | The index object |
void elm_index_delay_change_time_set | ( | Evas_Object * | obj, |
double | delay_change_time | ||
) |
Sets a delay change time for the index object.
0.2
sec by default.[in] | obj | The index object |
[in] | delay_change_time | The delay change time to set. |
Eina_Bool elm_index_horizontal_get | ( | const Evas_Object * | obj | ) |
Gets a value that indicates whether the horizontal mode is enabled.
[in] | obj | The index object |
EINA_TRUE
means the horizontal mode selection is enabled, otherwise EINA_FALSE
indicates that it's disabled NULL
, EINA_FALSE
is returned.void elm_index_horizontal_set | ( | Evas_Object * | obj, |
Eina_Bool | horizontal | ||
) |
Enables or disables the horizontal mode on the index object.
[in] | obj | The index object |
[in] | horizontal | If EINA_TRUE the horizontal is enabled, otherwise EINA_FALSE to disable it, i.e., to enable the vertical mode It's an area of one finger wide at the bottom side of the index widget's container. |
Eina_Bool elm_index_indicator_disabled_get | ( | const Evas_Object * | obj | ) |
Gets the value of the indicator's disabled status.
[in] | obj | The index object |
EINA_TRUE
if the indicator is disabled, otherwise EINA_FALSE
void elm_index_indicator_disabled_set | ( | Evas_Object * | obj, |
Eina_Bool | disabled | ||
) |
Sets the indicator to be disabled.
[in] | obj | The index object |
[in] | disabled | If EINA_TRUE the indicator is disabled, otherwise EINA_FALSE to enable it |
Elm_Object_Item* elm_index_item_append | ( | Evas_Object * | obj, |
const char * | letter, | ||
Evas_Smart_Cb | func, | ||
const void * | data | ||
) |
Appends a new item on a given index widget.
"changed"
, "delay,changed"
, and "selected"
smart events.[in] | obj | The index object |
[in] | letter | The letter under which the item should be indexed |
[in] | func | The function to call when the item is selected |
[in] | data | The item data to set for the index's item |
NULL
in case of an error void elm_index_item_clear | ( | Evas_Object * | obj | ) |
Removes all items from a given index widget.
[in] | obj | The index object |
Elm_Object_Item* elm_index_item_find | ( | Evas_Object * | obj, |
const void * | data | ||
) |
Finds a given index widget's item, using item data.
[in] | obj | The index object |
[in] | data | The item data pointed to by the desired index item |
NULL
Elm_Object_Item* elm_index_item_insert_after | ( | Evas_Object * | obj, |
Elm_Object_Item * | after, | ||
const char * | letter, | ||
Evas_Smart_Cb | func, | ||
const void * | data | ||
) |
Inserts a new item into the index object after the item after.
"changed"
, "delay,changed"
, and "selected"
smart events.NULL
this function behaves like elm_index_item_append().[in] | obj | The index object |
[in] | after | The index item to insert after |
[in] | letter | The letter under which the item should be indexed |
[in] | func | The function to call when the item is clicked |
[in] | data | The item data to set for the index's item |
NULL
in case of an error Elm_Object_Item* elm_index_item_insert_before | ( | Evas_Object * | obj, |
Elm_Object_Item * | before, | ||
const char * | letter, | ||
Evas_Smart_Cb | func, | ||
const void * | data | ||
) |
Inserts a new item into the index object before the item before.
"changed"
, "delay,changed"
, and "selected"
smart events.NULL
this function behave like elm_index_item_prepend().[in] | obj | The index object |
[in] | before | The index item to insert after |
[in] | letter | The letter under which the item should be indexed |
[in] | func | The function to call when the item is clicked |
[in] | data | The item data to set for the index's item |
NULL
in case of an error const char* elm_index_item_letter_get | ( | const Elm_Object_Item * | item | ) |
Gets the letter (string) set on a given index widget item.
[in] | item | The index item handle |
int elm_index_item_level_get | ( | const Evas_Object * | obj | ) |
Gets the items level set for a given index widget.
[in] | obj | The index object |
0
or 1
, which are the levels that obj might be atvoid elm_index_item_level_set | ( | Evas_Object * | obj, |
int | level | ||
) |
Sets the items level for a given index widget.
[in] | obj | The index object |
[in] | level | 0 or 1 , the currently implemented levels |
Elm_Object_Item* elm_index_item_prepend | ( | Evas_Object * | obj, |
const char * | letter, | ||
Evas_Smart_Cb | func, | ||
const void * | data | ||
) |
Prepends a new item on a given index widget.
"changed"
, "delay,changed"
, and "selected"
smart events.[in] | obj | The index object |
[in] | letter | The letter under which the item should be indexed |
[in] | func | The function to call when the item is selected |
[in] | data | The item data to set for the index's item |
NULL
in case if an error void elm_index_item_selected_set | ( | Elm_Object_Item * | it, |
Eina_Bool | selected | ||
) |
Sets the selected state of an item.
This sets the selected state of the given item it. EINA_TRUE
for selected, EINA_FALSE
for not selected.
[in] | it | The index item |
[in] | selected | The selected state |
Elm_Object_Item* elm_index_item_sorted_insert | ( | Evas_Object * | obj, |
const char * | letter, | ||
Evas_Smart_Cb | func, | ||
const void * | data, | ||
Eina_Compare_Cb | cmp_func, | ||
Eina_Compare_Cb | cmp_data_func | ||
) |
Inserts a new item into the given index widget, using cmp_func function to sort items (by item handles).
"changed"
, "delay,changed"
, and "selected"
smart events.[in] | obj | The index object |
[in] | letter | The letter under which the item should be indexed |
[in] | func | The function to call when the item is clicked |
[in] | data | The item data to set for the index's item |
[in] | cmp_func | The comparing function to be used to sort index items by index item handles |
[in] | cmp_data_func | A callback function to be called for the sorting of index items by item data) It is used when cmp_func returns 0 (equality), which means an index item with provided item data already exists To decide which data item should be pointed to by the index item in question, cmp_data_func is used If cmp_data_func returns a non-negative value, the previous index item data is replaced by the given it pointer If the previous data needs to be freed, it should be done by the cmp_data_func function, because all references to it are lost If this function is not provided ( NULL is given), index items are duplicated, if cmp_func returns 0 . |
NULL
in case of an error void elm_index_level_go | ( | Evas_Object * | obj, |
int | level | ||
) |
Flushes the changes made to the index items so they work correctly.
This flushes any changes made to items indicating that the object is ready to go. You should call this before any expected changes work. This is similar to elm_list_go().
[in] | obj | The index object |
[in] | level | The index level (either 0 or 1 ) where changes were made |
Eina_Bool elm_index_omit_enabled_get | ( | const Evas_Object * | obj | ) |
Gets whether the omit feature is enabled for a given index widget.
[in] | obj | The index object |
EINA_TRUE
if the omit feature is enabled, otherwise EINA_FALSE
void elm_index_omit_enabled_set | ( | Evas_Object * | obj, |
Eina_Bool | enabled | ||
) |
Enables or disables the omit feature for a given index widget.
[in] | obj | The index object |
[in] | enabled | If EINA_TRUE the omit feature is enabled, otherwise EINA_FALSE to disable it |
Elm_Object_Item* elm_index_selected_item_get | ( | const Evas_Object * | obj, |
int | level | ||
) |
Gets the last selected item, for a given index widget.
[in] | obj | The index object |
[in] | level | 0 or 1 , the currently implemented levels |
NULL
on errors)