Changeset View
Changeset View
Standalone View
Standalone View
src/examples/ephysics/test_bouncing_text.c
Show All 23 Lines | 9 | { | |||
---|---|---|---|---|---|
24 | ephysics_body_evas_object_set(text_body, text, EINA_FALSE); | 24 | ephysics_body_evas_object_set(text_body, text, EINA_FALSE); | ||
25 | ephysics_body_geometry_set(text_body, x, y, -15, w * 5 / 6, 46, 30); | 25 | ephysics_body_geometry_set(text_body, x, y, -15, w * 5 / 6, 46, 30); | ||
26 | ephysics_body_restitution_set(text_body, 0.95); | 26 | ephysics_body_restitution_set(text_body, 0.95); | ||
27 | ephysics_body_friction_set(text_body, 0.1); | 27 | ephysics_body_friction_set(text_body, 0.1); | ||
28 | test_data->bodies = eina_list_append(test_data->bodies, text_body); | 28 | test_data->bodies = eina_list_append(test_data->bodies, text_body); | ||
29 | } | 29 | } | ||
30 | 30 | | |||
31 | static void | 31 | static void | ||
32 | _restart(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__) | 32 | _restart(void *data, Evas_Object *obj EINA_UNUSED, const char *emission EINA_UNUSED, const char *source EINA_UNUSED) | ||
33 | { | 33 | { | ||
34 | Test_Data *test_data = data; | 34 | Test_Data *test_data = data; | ||
35 | 35 | | |||
36 | DBG("Restart pressed"); | 36 | DBG("Restart pressed"); | ||
37 | test_clean(test_data); | 37 | test_clean(test_data); | ||
38 | _world_populate(test_data); | 38 | _world_populate(test_data); | ||
39 | } | 39 | } | ||
40 | 40 | | |||
41 | void | 41 | void | ||
42 | test_bouncing_text(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) | 42 | test_bouncing_text(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) | ||
43 | { | 43 | { | ||
44 | EPhysics_Body *boundary; | 44 | EPhysics_Body *boundary; | ||
45 | EPhysics_World *world; | 45 | EPhysics_World *world; | ||
46 | Test_Data *test_data; | 46 | Test_Data *test_data; | ||
47 | 47 | | |||
48 | if (!ephysics_init()) | 48 | if (!ephysics_init()) | ||
49 | return; | 49 | return; | ||
50 | 50 | | |||
Show All 17 Lines |