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_multibuttonentry_label_set(obj, p->label);
21 elm_multibuttonentry_guide_text_set(obj, 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_multibuttonentry_label_set(obj, param->s);
35 else if (!strcmp(param->name, "guide text"))
37 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
39 elm_multibuttonentry_guide_text_set(obj, 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_multibuttonentry_label_get(obj);
61 else if (!strcmp(param->name, "guide text"))
63 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
65 param->s = elm_multibuttonentry_guide_text_get(obj);
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;
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__,
99 const Evas_Object *obj, const char *content)
106 external_multibuttonentry_params_free(void *params)
108 Elm_Params_Multibuttonentry *mem = params;
111 eina_stringshare_del(mem->label);
113 eina_stringshare_del(mem->guide_text);
114 external_common_params_free(params);
117 static Edje_External_Param_Info external_multibuttonentry_params[] = {
118 DEFINE_EXTERNAL_COMMON_PARAMS,
119 EDJE_EXTERNAL_PARAM_INFO_STRING("label"),
120 EDJE_EXTERNAL_PARAM_INFO_STRING("guide text"),
121 EDJE_EXTERNAL_PARAM_INFO_SENTINEL
124 DEFINE_EXTERNAL_ICON_ADD(multibuttonentry, "multibuttonentry")
125 DEFINE_EXTERNAL_TYPE_SIMPLE(multibuttonentry, "Multibuttonentry")