3 typedef struct _Elm_Params_Label
9 external_label_state_set(void *data __UNUSED__, Evas_Object *obj __UNUSED__, const void *from_params, const void *to_params, float pos __UNUSED__)
11 const Elm_Params_Label *p;
13 if (to_params) p = to_params;
14 else if (from_params) p = from_params;
17 if (p->label) elm_label_label_set(obj, p->label);
21 external_label_param_set(void *data __UNUSED__, Evas_Object *obj, const Edje_External_Param *param)
23 if (!strcmp(param->name, "label"))
25 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
27 elm_label_label_set(obj, param->s);
32 ERR("unknown parameter '%s' of type '%s'",
33 param->name, edje_external_param_type_str(param->type));
39 external_label_param_get(void *data __UNUSED__, const Evas_Object *obj, Edje_External_Param *param)
41 if (!strcmp(param->name, "label"))
43 if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
45 param->s = elm_label_label_get(obj);
50 ERR("unknown parameter '%s' of type '%s'",
51 param->name, edje_external_param_type_str(param->type));
57 external_label_params_parse(void *data __UNUSED__, Evas_Object *obj __UNUSED__, const Eina_List *params __UNUSED__)
59 Elm_Params_Label *mem;
60 Edje_External_Param *param;
63 mem = ELM_NEW(Elm_Params_Label);
67 EINA_LIST_FOREACH(params, l, param)
69 if (!strcmp(param->name, "label"))
70 mem->label = eina_stringshare_add(param->s);
76 static Evas_Object *external_label_content_get(void *data __UNUSED__,
77 const Evas_Object *obj __UNUSED__, const char *content __UNUSED__)
84 external_label_params_free(void *params)
86 external_common_params_free(params);
89 static Edje_External_Param_Info external_label_params[] = {
90 DEFINE_EXTERNAL_COMMON_PARAMS,
91 EDJE_EXTERNAL_PARAM_INFO_SENTINEL
94 DEFINE_EXTERNAL_ICON_ADD(label, "label");
95 DEFINE_EXTERNAL_TYPE_SIMPLE(label, "label");