#include <Elementary.h>
#include <assert.h>
static const char *dict[] = \
{
#include "dict.txt"
};
static void
{
printf("Deleting index node (%s). Comparing index "
"item data reported via callback with the one returned by "
"index's API on items: %s.\n",
"FAIL, something went wrong");
}
static void
{
if (!it) return;
printf("Deleting last selected index item, which had letter"
}
static void
{
}
static void
{
printf("Toggling index programmatically to %s.\n",
!disabled ? "On" : "Off");
}
static void
{
}
static void
{
printf("New index item selected. Comparing item reported"
" via callback with the selection returned by the API: "
"FAIL, something went wrong");
}
EAPI_MAIN int
{
unsigned int i;
char curr = 0;
for (i = 0; i < (sizeof(dict) / sizeof(dict[0])); i++)
{
if (curr != dict[i][0])
{
char buf[32];
curr = dict[i][0];
snprintf(buf, sizeof(buf), "%c", curr);
}
}
NULL);
elm_separator_horizontal_set(sep,
EINA_TRUE);
elm_object_text_set(bt, "bring in index");
elm_object_text_set(bt, "delete last selected item");
elm_object_text_set(bt, "delete all items");
return 0;
}
#define evas_object_size_hint_fill_set
Convenience macro to make it easier to understand that align is also used for fill properties (as fil...
Definition: Evas_Common.h:299
#define EVAS_HINT_EXPAND
Use with evas_object_size_hint_weight_set(), evas_object_size_hint_weight_get(), evas_object_size_hin...
Definition: Evas_Common.h:297
#define EVAS_HINT_FILL
Use with evas_object_size_hint_align_set(), evas_object_size_hint_align_get(), evas_object_size_hint_...
Definition: Evas_Common.h:298
#define EINA_TRUE
boolean value TRUE (numerical value 1)
Definition: eina_types.h:539
unsigned char Eina_Bool
Type to mimic a boolean.
Definition: eina_types.h:527
#define EINA_UNUSED
Used to indicate that a function parameter is purposely unused.
Definition: eina_types.h:339
void elm_box_horizontal_set(Elm_Box *obj, Eina_Bool horizontal)
Set the horizontal orientation.
Definition: elm_box_eo.legacy.c:27
Evas_Object * elm_box_add(Evas_Object *parent)
Add a new box to the parent.
Definition: elm_box.c:363
void elm_box_pack_end(Elm_Box *obj, Efl_Canvas_Object *subobj)
Add an object at the end of the pack list.
Definition: elm_box_eo.legacy.c:57
Eo Elm_Object_Item
An Elementary Object item handle.
Definition: elm_object_item.h:6
void elm_object_item_del_cb_set(Elm_Widget_Item *obj, Evas_Smart_Cb del_cb)
Set the function to be called when an item from the widget is freed.
Definition: elm_widget_item_eo.legacy.c:231
#define ELM_MAIN()
macro to be used after the elm_main() function
Definition: elm_general.h:556
void * elm_object_item_data_get(const Elm_Object_Item *it)
Get the data associated with an object item.
Definition: efl_ui_widget.c:3796
Eina_Bool elm_policy_set(unsigned int policy, int value)
Set a new policy's value (for a given policy group/identifier).
Definition: elm_main.c:1380
void elm_object_item_del(Eo *obj)
Delete the given item.
Definition: elm_main.c:2017
void elm_run(void)
Run Elementary's main loop.
Definition: elm_main.c:1357
@ ELM_POLICY_QUIT_LAST_WINDOW_CLOSED
quit when the application's last window is closed
Definition: elm_general.h:248
@ ELM_POLICY_QUIT
under which circumstances the application should quit automatically.
Definition: elm_general.h:227
Elm_Widget_Item * elm_index_item_find(Elm_Index *obj, const void *data)
Find a given index widget's item, using item data.
Definition: elm_index_eo.legacy.c:99
void elm_index_level_go(Elm_Index *obj, int level)
Flush the changes made to the index items so they work correctly.
Definition: elm_index_eo.legacy.c:75
Eina_Bool elm_index_autohide_disabled_get(const Elm_Index *obj)
Enable or disable auto hiding feature for a given index widget.
Definition: elm_index_eo.legacy.c:9
Elm_Widget_Item * elm_index_item_append(Elm_Index *obj, const char *letter, Evas_Smart_Cb func, const void *data)
Append a new item on a given index widget.
Definition: elm_index_eo.legacy.c:111
void elm_index_autohide_disabled_set(Elm_Index *obj, Eina_Bool disabled)
Enable or disable auto hiding feature for a given index widget.
Definition: elm_index_eo.legacy.c:3
Elm_Widget_Item * elm_index_selected_item_get(const Elm_Index *obj, int level)
Returns the last selected item, for a given index widget.
Definition: elm_index_eo.legacy.c:117
void elm_index_item_clear(Elm_Index *obj)
Removes all items from a given index widget.
Definition: elm_index_eo.legacy.c:87
Evas_Object * elm_index_add(Evas_Object *parent)
Add a new index widget to the given parent Elementary (container) object.
Definition: elm_index.c:1186
const char * elm_index_item_letter_get(const Elm_Index_Item *obj)
Get the letter (string) set on a given index widget item.
Definition: elm_index_item_eo.legacy.c:15
Elm_Widget_Item * elm_list_item_append(Elm_List *obj, const char *label, Efl_Canvas_Object *icon, Efl_Canvas_Object *end, Evas_Smart_Cb func, const void *data)
Append a new item to the list object.
Definition: elm_list_eo.legacy.c:129
Evas_Object * elm_list_add(Evas_Object *parent)
Add a new list widget to the given parent Elementary (container) object.
Definition: elm_list.c:2513
Evas_Object * elm_separator_add(Evas_Object *parent)
Add a separator object to parent.
Definition: elm_separator.c:49
Evas_Object * elm_win_util_standard_add(const char *name, const char *title)
Adds a window object with standard setup.
Definition: efl_ui_win.c:9582
void elm_win_resize_object_add(Eo *obj, Evas_Object *subobj)
Add subobj as a resize object of window obj.
Definition: efl_ui_win.c:8997
void elm_win_autodel_set(Eo *obj, Eina_Bool autodel)
Set the window's autodel state.
Definition: efl_ui_win.c:6194
EVAS_API void evas_object_show(Evas_Object *eo_obj)
Makes the given Evas object visible.
Definition: evas_object_main.c:1814
EVAS_API void evas_object_size_hint_weight_set(Evas_Object *obj, double x, double y)
Sets the hints for an object's weight.
Definition: evas_object_main.c:2638
Efl_Canvas_Object Evas_Object
An Evas Object handle.
Definition: Evas_Common.h:185
EVAS_API void evas_object_size_hint_align_set(Evas_Object *obj, double x, double y)
Sets the hints for an object's alignment.
Definition: evas_object_main.c:2650
EVAS_API void evas_object_resize(Evas_Object *obj, Evas_Coord w, Evas_Coord h)
Changes the size of the given Evas object.
Definition: evas_object_main.c:1236
EVAS_API void evas_object_smart_callback_add(Evas_Object *eo_obj, const char *event, Evas_Smart_Cb func, const void *data)
Add (register) a callback function to the smart event specified by event on the smart object obj.
Definition: evas_object_smart.c:1040