This example shows how to apply the transition effects:
- flip
- resizable_flip
- fade
- blend over two objects. This kind of transition effect is used to make one object disappear and another one appear on its place.
You can mix more than one effect of this type on the same objects, and the transition will apply both.
#include <Elementary.h>
static void
{
}
static void
{
}
static void
{
}
static void
{
}
static struct {
const char *label;
} _transitions[] = {
{
"Resizable Flip", _transit_resizable_flip,
EINA_FALSE },
};
static void
{
elm_object_text_set(check, label);
}
static void
{
int i;
for (i = 0; _transitions[i].label; i++)
{
if (_transitions[i].checked)
_transitions[i].transition_add_cb(trans);
}
}
EAPI_MAIN int
{
char buf[PATH_MAX];
int i;
elm_object_text_set(btn, "Transformed object!");
elm_object_text_set(btn, "Another object!");
for (i = 0; _transitions[i].label; i++)
_checkbox_transition_add(hbox, _transitions[i].label, &_transitions[i].checked);
elm_object_text_set(btn, "Transit!");
return 0;
}