3 typedef struct _Elm_Params_Multibuttonentry
6 const char *guide_text;
7 } Elm_Params_Multibuttonentry;
10 external_multibuttonentry_state_set(void *data __UNUSED__, Evas_Object *obj, const void *from_params, const void *to_params, float pos __UNUSED__)
12 const Elm_Params_Multibuttonentry *p;
14 if (to_params) p = to_params;
15 else if (from_params) p = from_params;
19 elm_object_text_set(obj, p->label);
21 elm_object_part_text_set(obj, "guide", p->guide_text);
25 external_multibuttonentry_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_External_Param *param)
27 if (!strcmp(param->name, "label"))
29 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
31 elm_object_text_set(obj, param->s);
35 else if (!strcmp(param->name, "guide text"))
37 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
39 elm_object_part_text_set(obj, "guide", param->s);
44 ERR("unknown parameter '%s' of type '%s'",
45 param->name, edje_external_param_type_str(param->type));
51 external_multibuttonentry_param_get(void *data __UNUSED__, const Evas_Object *obj, Edje_External_Param *param)
53 if (!strcmp(param->name, "label"))
55 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
57 param->s = elm_object_text_get(obj);
61 else if (!strcmp(param->name, "guide text"))
63 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
65 param->s = elm_object_part_text_get(obj, "guide");
70 ERR("unknown parameter '%s' of type '%s'",
71 param->name, edje_external_param_type_str(param->type));
77 external_multibuttonentry_params_parse(void *data __UNUSED__, Evas_Object *obj __UNUSED__, const Eina_List *params)
79 Elm_Params_Multibuttonentry *mem = NULL;
80 Edje_External_Param *param;
83 //mem = external_common_params_parse(Elm_Params_Multibuttonentry, data, obj, params);
87 EINA_LIST_FOREACH(params, l, param)
89 if (!strcmp(param->name, "label"))
90 mem->label = eina_stringshare_add(param->s);
91 else if (!strcmp(param->name, "guide text"))
92 mem->guide_text = eina_stringshare_add(param->s);
98 static Evas_Object *external_multibuttonentry_content_get(void *data __UNUSED__, const Evas_Object *obj __UNUSED__, const char *content __UNUSED__)
105 external_multibuttonentry_params_free(void *params)
107 Elm_Params_Multibuttonentry *mem = params;
110 eina_stringshare_del(mem->label);
112 eina_stringshare_del(mem->guide_text);
113 external_common_params_free(params);
116 static Edje_External_Param_Info external_multibuttonentry_params[] = {
117 DEFINE_EXTERNAL_COMMON_PARAMS,
118 EDJE_EXTERNAL_PARAM_INFO_STRING("label"),
119 EDJE_EXTERNAL_PARAM_INFO_STRING("guide text"),
120 EDJE_EXTERNAL_PARAM_INFO_SENTINEL
123 DEFINE_EXTERNAL_ICON_ADD(multibuttonentry, "multibuttonentry")
124 DEFINE_EXTERNAL_TYPE_SIMPLE(multibuttonentry, "Multibuttonentry")