{
int timeout;
const char *transition;
+ const char *layout;
Eina_Bool loop:1;
Eina_Bool timeout_exists:1;
Eina_Bool loop_exists:1;
static const char *transitions[] = { "fade", "black_fade", "horizontal",
"vertical", "square", NULL};
+static const char *layout[] = { "fullscreen", "not_fullscreen", NULL};
static void
external_slideshow_state_set(void *data __UNUSED__, Evas_Object *obj, const void *from_params, const void *to_params, float pos __UNUSED__)
if (p->transition) {
elm_slideshow_transition_set(obj, p->transition);
}
+ if (p->layout) {
+ elm_slideshow_layout_set(obj, p->layout);
+ }
}
static Eina_Bool
return EINA_TRUE;
}
}
+ else if (!strcmp(param->name, "layout"))
+ {
+ if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
+ {
+ elm_slideshow_layout_set(obj, param->s);
+ return EINA_TRUE;
+ }
+ }
ERR("unknown parameter '%s' of type '%s'",
param->name, edje_external_param_type_str(param->type));
return EINA_TRUE;
}
}
+ else if (!strcmp(param->name, "layout"))
+ {
+ if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
+ {
+ param->s = elm_slideshow_layout_get(obj);
+ return EINA_TRUE;
+ }
+ }
ERR("unknown parameter '%s' of type '%s'",
param->name, edje_external_param_type_str(param->type));
{
mem->transition = param->s;
}
+ else if (!strcmp(param->name, "layout"))
+ {
+ mem->layout = param->s;
+ }
}
return mem;
EDJE_EXTERNAL_PARAM_INFO_INT("timeout"),
EDJE_EXTERNAL_PARAM_INFO_BOOL("loop"),
EDJE_EXTERNAL_PARAM_INFO_CHOICE_FULL("transition", "fade", transitions),
+ EDJE_EXTERNAL_PARAM_INFO_CHOICE_FULL("layout", "fullscreen", transitions),
EDJE_EXTERNAL_PARAM_INFO_SENTINEL
};