3 typedef struct _Elm_Params_Index
7 Eina_Bool active_exists:1;
12 external_index_state_set(void *data __UNUSED__, Evas_Object *obj, const void *from_params, const void *to_params, float pos __UNUSED__)
14 const Elm_Params_Index *p;
16 if (to_params) p = to_params;
17 else if (from_params) p = from_params;
21 elm_index_autohide_disabled_set(obj, p->active_exists);
25 external_index_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_External_Param *param)
27 if (!strcmp(param->name, "active"))
29 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
31 elm_index_autohide_disabled_set(obj, param->i);
35 ERR("unknown parameter '%s' of type '%s'",
36 param->name, edje_external_param_type_str(param->type));
42 external_index_param_get(void *data __UNUSED__, const Evas_Object *obj, Edje_External_Param *param)
44 if (!strcmp(param->name, "active"))
46 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
48 param->i = elm_index_autohide_disabled_get(obj);
53 ERR("unknown parameter '%s' of type '%s'",
54 param->name, edje_external_param_type_str(param->type));
60 external_index_params_parse(void *data __UNUSED__, Evas_Object *obj __UNUSED__, const Eina_List *params)
62 Elm_Params_Index *mem;
63 Edje_External_Param *param;
66 mem = calloc(1, sizeof(Elm_Params_Index));
70 EINA_LIST_FOREACH(params, l, param)
72 if (!strcmp(param->name, "active"))
74 mem->active = !!param->i;
75 mem->active_exists = EINA_TRUE;
82 static Evas_Object *external_index_content_get(void *data __UNUSED__,
83 const Evas_Object *obj __UNUSED__, const char *content __UNUSED__)
90 external_index_params_free(void *params)
92 Elm_Params_Index *mem = params;
96 static Edje_External_Param_Info external_index_params[] = {
97 DEFINE_EXTERNAL_COMMON_PARAMS,
98 EDJE_EXTERNAL_PARAM_INFO_BOOL("active"),
99 EDJE_EXTERNAL_PARAM_INFO_SENTINEL
102 DEFINE_EXTERNAL_ICON_ADD(index, "index");
103 DEFINE_EXTERNAL_TYPE_SIMPLE(index, "index");