Eina_Bool inverted_exists:1;
Eina_Bool horizontal:1;
Eina_Bool horizontal_exists:1;
+ Eina_Bool pulse:1;
+ Eina_Bool pulse_exists:1;
} Elm_Params_Progressbar;
static void
elm_progressbar_horizontal_set(obj, p->horizontal);
if (p->unit)
elm_progressbar_unit_format_set(obj, p->unit);
+ if (p->pulse_exists)
+ elm_progressbar_pulse(obj, p->pulse);
}
static Eina_Bool
return EINA_TRUE;
}
}
+ else if (!strcmp(param->name, "pulse"))
+ {
+ if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
+ {
+ elm_progressbar_pulse(obj, param->i);
+ return EINA_TRUE;
+ }
+ }
else if (!strcmp(param->name, "inverted"))
{
if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
return EINA_TRUE;
}
}
+ else if (!strcmp(param->name, "pulse"))
+ {
+ if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
+ {
+ param->i = elm_progressbar_pulse_get(obj);
+ return EINA_TRUE;
+ }
+ }
else if (!strcmp(param->name, "inverted"))
{
if (param->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
mem->horizontal = !!param->i;
mem->horizontal_exists = EINA_TRUE;
}
+ else if (!strcmp(param->name, "pulse"))
+ {
+ mem->pulse = !!param->i;
+ mem->pulse_exists = EINA_TRUE;
+ }
else if (!strcmp(param->name, "unit format"))
mem->unit = eina_stringshare_add(param->s);
else if (!strcmp(param->name, "label"))
EDJE_EXTERNAL_PARAM_INFO_STRING("icon"),
EDJE_EXTERNAL_PARAM_INFO_DOUBLE("value"),
EDJE_EXTERNAL_PARAM_INFO_BOOL("horizontal"),
+ EDJE_EXTERNAL_PARAM_INFO_BOOL("pulse"),
EDJE_EXTERNAL_PARAM_INFO_BOOL("inverted"),
EDJE_EXTERNAL_PARAM_INFO_INT("span"),
EDJE_EXTERNAL_PARAM_INFO_STRING_DEFAULT("unit format", "%1.2f"),