summaryrefslogtreecommitdiff
path: root/legacy/edje
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2012-12-11 18:52:35 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-12-11 18:52:35 +0000
commit42b7ef900b78797906e8dddf4cdebd707e8ef7bc (patch)
treec8c60d67521f4f6160598dd65c5170d3489b301a /legacy/edje
parent1f87c5e933829d959e094b4193c9a39f171048f9 (diff)
edje: handle z-axis body attributes
SVN revision: 80678
Diffstat (limited to 'legacy/edje')
-rw-r--r--legacy/edje/data/include/edje.inc4
-rw-r--r--legacy/edje/src/bin/edje_cc_handlers.c50
-rw-r--r--legacy/edje/src/examples/physics_3d.edc2
-rw-r--r--legacy/edje/src/examples/physics_actions.edc8
-rw-r--r--legacy/edje/src/lib/edje_calc.c31
-rw-r--r--legacy/edje/src/lib/edje_data.c4
-rw-r--r--legacy/edje/src/lib/edje_embryo.c20
-rw-r--r--legacy/edje/src/lib/edje_private.h8
8 files changed, 116 insertions, 11 deletions
diff --git a/legacy/edje/data/include/edje.inc b/legacy/edje/data/include/edje.inc
index 3c2c996393..5fc9ec2b3f 100644
--- a/legacy/edje/data/include/edje.inc
+++ b/legacy/edje/data/include/edje.inc
@@ -223,7 +223,9 @@ enum State_Param
223 STATE_PHYSICS_HARDNESS = 52, 223 STATE_PHYSICS_HARDNESS = 52,
224 STATE_PHYSICS_MOV_FREEDOM_LIN = 53, 224 STATE_PHYSICS_MOV_FREEDOM_LIN = 53,
225 STATE_PHYSICS_MOV_FREEDOM_ANG = 54, 225 STATE_PHYSICS_MOV_FREEDOM_ANG = 54,
226 STATE_PHYSICS_BACK_CULL = 55 226 STATE_PHYSICS_BACK_CULL = 55,
227 STATE_PHYSICS_Z = 56,
228 STATE_PHYSICS_DEPTH = 57
227}; 229};
228 230
229native set_state_val(part_id, State_Param:p, ...); 231native set_state_val(part_id, State_Param:p, ...);
diff --git a/legacy/edje/src/bin/edje_cc_handlers.c b/legacy/edje/src/bin/edje_cc_handlers.c
index 02c7fc2f4c..da54fd750d 100644
--- a/legacy/edje/src/bin/edje_cc_handlers.c
+++ b/legacy/edje/src/bin/edje_cc_handlers.c
@@ -328,6 +328,8 @@ static void st_collections_group_parts_part_description_physics_density(void);
328static void st_collections_group_parts_part_description_physics_hardness(void); 328static void st_collections_group_parts_part_description_physics_hardness(void);
329static void st_collections_group_parts_part_description_physics_ignore_part_pos(void); 329static void st_collections_group_parts_part_description_physics_ignore_part_pos(void);
330static void st_collections_group_parts_part_description_physics_light_on(void); 330static void st_collections_group_parts_part_description_physics_light_on(void);
331static void st_collections_group_parts_part_description_physics_z(void);
332static void st_collections_group_parts_part_description_physics_depth(void);
331static void st_collections_group_parts_part_description_physics_movement_freedom_linear(void); 333static void st_collections_group_parts_part_description_physics_movement_freedom_linear(void);
332static void st_collections_group_parts_part_description_physics_movement_freedom_angular(void); 334static void st_collections_group_parts_part_description_physics_movement_freedom_angular(void);
333static void st_collections_group_parts_part_description_physics_backface_cull(void); 335static void st_collections_group_parts_part_description_physics_backface_cull(void);
@@ -635,6 +637,8 @@ New_Statement_Handler statement_handlers[] =
635 {"collections.group.parts.part.description.physics.movement_freedom.angular", st_collections_group_parts_part_description_physics_movement_freedom_angular}, 637 {"collections.group.parts.part.description.physics.movement_freedom.angular", st_collections_group_parts_part_description_physics_movement_freedom_angular},
636 {"collections.group.parts.part.description.physics.ignore_part_pos", st_collections_group_parts_part_description_physics_ignore_part_pos}, 638 {"collections.group.parts.part.description.physics.ignore_part_pos", st_collections_group_parts_part_description_physics_ignore_part_pos},
637 {"collections.group.parts.part.description.physics.light_on", st_collections_group_parts_part_description_physics_light_on}, 639 {"collections.group.parts.part.description.physics.light_on", st_collections_group_parts_part_description_physics_light_on},
640 {"collections.group.parts.part.description.physics.z", st_collections_group_parts_part_description_physics_z},
641 {"collections.group.parts.part.description.physics.depth", st_collections_group_parts_part_description_physics_depth},
638 {"collections.group.parts.part.description.physics.backface_cull", st_collections_group_parts_part_description_physics_backface_cull}, 642 {"collections.group.parts.part.description.physics.backface_cull", st_collections_group_parts_part_description_physics_backface_cull},
639 {"collections.group.parts.part.description.physics.faces.face.type", st_collections_group_parts_part_description_physics_face_type}, 643 {"collections.group.parts.part.description.physics.faces.face.type", st_collections_group_parts_part_description_physics_face_type},
640 {"collections.group.parts.part.description.physics.faces.face.source", st_collections_group_parts_part_description_physics_face_source}, 644 {"collections.group.parts.part.description.physics.faces.face.source", st_collections_group_parts_part_description_physics_face_source},
@@ -1149,6 +1153,8 @@ _edje_part_description_alloc(unsigned char type, const char *collection, const c
1149 result->physics.mov_freedom.lin.x = 1; 1153 result->physics.mov_freedom.lin.x = 1;
1150 result->physics.mov_freedom.lin.y = 1; 1154 result->physics.mov_freedom.lin.y = 1;
1151 result->physics.mov_freedom.ang.z = 1; 1155 result->physics.mov_freedom.ang.z = 1;
1156 result->physics.z = -15;
1157 result->physics.depth = 30;
1152#endif 1158#endif
1153 1159
1154 return result; 1160 return result;
@@ -7265,6 +7271,8 @@ st_collections_group_parts_part_description_table_min(void)
7265 density: 3.2; 7271 density: 3.2;
7266 hardness: 0.42; 7272 hardness: 0.42;
7267 light_on: 1; 7273 light_on: 1;
7274 z: -15;
7275 depth: 30;
7268 movement_freedom { 7276 movement_freedom {
7269 .. 7277 ..
7270 } 7278 }
@@ -7568,6 +7576,48 @@ st_collections_group_parts_part_description_physics_light_on(void)
7568/** 7576/**
7569 @page edcref 7577 @page edcref
7570 @property 7578 @property
7579 z
7580 @parameters
7581 [body position in z axis]
7582 @effect
7583 Defines body position in z axis. It's set to -15 by default.
7584 @endproperty
7585 @since 1.8.0
7586*/
7587#ifdef HAVE_EPHYSICS
7588static void
7589st_collections_group_parts_part_description_physics_z(void)
7590{
7591 check_arg_count(1);
7592
7593 current_desc->physics.z = parse_int(0);
7594}
7595#endif
7596
7597/**
7598 @page edcref
7599 @property
7600 depth
7601 @parameters
7602 [body's depth]
7603 @effect
7604 Defines body's depth (z axis). It's set to 30 by default.
7605 @endproperty
7606 @since 1.8.0
7607*/
7608#ifdef HAVE_EPHYSICS
7609static void
7610st_collections_group_parts_part_description_physics_depth(void)
7611{
7612 check_arg_count(1);
7613
7614 current_desc->physics.depth = parse_int(0);
7615}
7616#endif
7617
7618/**
7619 @page edcref
7620 @property
7571 backface_cull 7621 backface_cull
7572 @parameters 7622 @parameters
7573 [1 or 0] 7623 [1 or 0]
diff --git a/legacy/edje/src/examples/physics_3d.edc b/legacy/edje/src/examples/physics_3d.edc
index 0c1d7592c5..7e58dcbca5 100644
--- a/legacy/edje/src/examples/physics_3d.edc
+++ b/legacy/edje/src/examples/physics_3d.edc
@@ -156,6 +156,8 @@ collections {
156 aspect: 1 1; 156 aspect: 1 1;
157 physics { 157 physics {
158 mass: 30; 158 mass: 30;
159 z: -24;
160 depth: 48;
159 restitution: 0.85; 161 restitution: 0.85;
160 movement_freedom { 162 movement_freedom {
161 linear: 1 1 1; 163 linear: 1 1 1;
diff --git a/legacy/edje/src/examples/physics_actions.edc b/legacy/edje/src/examples/physics_actions.edc
index 7ff18942dd..945e808775 100644
--- a/legacy/edje/src/examples/physics_actions.edc
+++ b/legacy/edje/src/examples/physics_actions.edc
@@ -514,6 +514,8 @@ collections {
514 set_state_val(PART:"red_circle", STATE_PHYSICS_LIGHT_ON, 1); 514 set_state_val(PART:"red_circle", STATE_PHYSICS_LIGHT_ON, 1);
515 set_state_val(PART:"red_circle", 515 set_state_val(PART:"red_circle",
516 STATE_PHYSICS_IGNORE_PART_POS, 1); 516 STATE_PHYSICS_IGNORE_PART_POS, 1);
517 set_state_val(PART:"red_circle", STATE_PHYSICS_Z, -40);
518 set_state_val(PART:"red_circle", STATE_PHYSICS_DEPTH, 80);
517 set_state(PART:"red_circle", "custom", 0.0); 519 set_state(PART:"red_circle", "custom", 0.0);
518 520
519 get_state_val(PART:"red_circle", STATE_PHYSICS_MASS, mass); 521 get_state_val(PART:"red_circle", STATE_PHYSICS_MASS, mass);
@@ -541,6 +543,12 @@ collections {
541 get_state_val(PART:"red_circle", 543 get_state_val(PART:"red_circle",
542 STATE_PHYSICS_IGNORE_PART_POS, val); 544 STATE_PHYSICS_IGNORE_PART_POS, val);
543 send_message(MSG_STRING_INT, 1, "Ignore Part Pos", val); 545 send_message(MSG_STRING_INT, 1, "Ignore Part Pos", val);
546
547 get_state_val(PART:"red_circle", STATE_PHYSICS_Z, val);
548 send_message(MSG_STRING_INT, 1, "Z", val);
549
550 get_state_val(PART:"red_circle", STATE_PHYSICS_DEPTH, val);
551 send_message(MSG_STRING_INT, 1, "Depth", val);
544 } 552 }
545 } 553 }
546 554
diff --git a/legacy/edje/src/lib/edje_calc.c b/legacy/edje/src/lib/edje_calc.c
index 8c884d9ac4..86c8a74d19 100644
--- a/legacy/edje/src/lib/edje_calc.c
+++ b/legacy/edje/src/lib/edje_calc.c
@@ -2314,6 +2314,8 @@ _edje_part_recalc_single(Edje *ed,
2314 params->physics.mov_freedom.ang.y = desc->physics.mov_freedom.ang.y; 2314 params->physics.mov_freedom.ang.y = desc->physics.mov_freedom.ang.y;
2315 params->physics.mov_freedom.ang.z = desc->physics.mov_freedom.ang.z; 2315 params->physics.mov_freedom.ang.z = desc->physics.mov_freedom.ang.z;
2316 params->physics.backcull = desc->physics.backcull; 2316 params->physics.backcull = desc->physics.backcull;
2317 params->physics.z = desc->physics.z;
2318 params->physics.depth = desc->physics.depth;
2317#endif 2319#endif
2318 _edje_part_recalc_single_map(ed, ep, center, light, persp, desc, chosen_desc, params); 2320 _edje_part_recalc_single_map(ed, ep, center, light, persp, desc, chosen_desc, params);
2319} 2321}
@@ -2478,22 +2480,28 @@ _edje_physics_body_props_update(Edje_Real_Part *ep, Edje_Calc_Params *pf, Eina_B
2478 pf->physics.mov_freedom.ang.x, 2480 pf->physics.mov_freedom.ang.x,
2479 pf->physics.mov_freedom.ang.y, 2481 pf->physics.mov_freedom.ang.y,
2480 pf->physics.mov_freedom.ang.z); 2482 pf->physics.mov_freedom.ang.z);
2483
2481 /* Boundaries geometry and mass shouldn't be changed */ 2484 /* Boundaries geometry and mass shouldn't be changed */
2482 if (ep->part->physics_body < EDJE_PART_PHYSICS_BODY_BOUNDARY_TOP) 2485 if (ep->part->physics_body < EDJE_PART_PHYSICS_BODY_BOUNDARY_TOP)
2483 { 2486 {
2487 Evas_Coord x, y, z, w, h, d;
2488
2484 if (pos_update) 2489 if (pos_update)
2485 { 2490 {
2486 Evas_Coord z;
2487 ephysics_body_geometry_get(ep->body, NULL, NULL, &z,
2488 NULL, NULL, NULL);
2489 ephysics_body_move(ep->body, ep->edje->x + pf->x, 2491 ephysics_body_move(ep->body, ep->edje->x + pf->x,
2490 ep->edje->y + pf->y, z); 2492 ep->edje->y + pf->y, pf->physics.z);
2491 ep->x = pf->x; 2493 ep->x = pf->x;
2492 ep->y = pf->y; 2494 ep->y = pf->y;
2493 ep->w = pf->w; 2495 ep->w = pf->w;
2494 ep->h = pf->h; 2496 ep->h = pf->h;
2495 } 2497 }
2496 2498
2499 ephysics_body_geometry_get(ep->body, &x, &y, &z, &w, &h, &d);
2500 if ((d) && (d != pf->physics.depth))
2501 ephysics_body_resize(ep->body, w, h, pf->physics.depth);
2502 if (z != pf->physics.z)
2503 ephysics_body_move(ep->body, x, y, pf->physics.z);
2504
2497 ephysics_body_material_set(ep->body, pf->physics.material); 2505 ephysics_body_material_set(ep->body, pf->physics.material);
2498 if (!pf->physics.material) 2506 if (!pf->physics.material)
2499 { 2507 {
@@ -3008,6 +3016,9 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta
3008 p3->physics.sleep.angular = TO_DOUBLE(FINTP( 3016 p3->physics.sleep.angular = TO_DOUBLE(FINTP(
3009 p1->physics.sleep.angular, p2->physics.sleep.angular, pos)); 3017 p1->physics.sleep.angular, p2->physics.sleep.angular, pos));
3010 3018
3019 p3->physics.z = INTP(p1->physics.z, p2->physics.z, pos);
3020 p3->physics.depth = INTP(p1->physics.depth, p2->physics.depth, pos);
3021
3011 if ((p1->physics.ignore_part_pos) && (p2->physics.ignore_part_pos)) 3022 if ((p1->physics.ignore_part_pos) && (p2->physics.ignore_part_pos))
3012 p3->physics.ignore_part_pos = 1; 3023 p3->physics.ignore_part_pos = 1;
3013 else 3024 else
@@ -3241,6 +3252,8 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta
3241 case EDJE_PART_TYPE_EXTERNAL: 3252 case EDJE_PART_TYPE_EXTERNAL:
3242 /* visibility and color have no meaning on SWALLOW and GROUP part. */ 3253 /* visibility and color have no meaning on SWALLOW and GROUP part. */
3243#ifdef HAVE_EPHYSICS 3254#ifdef HAVE_EPHYSICS
3255 eo_do(ep->object,
3256 evas_obj_size_set(pf->w, pf->h));
3244 if ((ep->part->physics_body) && (!ep->body)) 3257 if ((ep->part->physics_body) && (!ep->body))
3245 { 3258 {
3246 if (_edje_physics_world_geometry_check(ep->edje->world)) 3259 if (_edje_physics_world_geometry_check(ep->edje->world))
@@ -3258,13 +3271,13 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags, Edje_Calc_Params *sta
3258 ep, pf, !pf->physics.ignore_part_pos); 3271 ep, pf, !pf->physics.ignore_part_pos);
3259 } 3272 }
3260 else 3273 else
3261#endif 3274 eo_do(ep->object,
3262 { 3275 evas_obj_position_set(ed->x + pf->x, ed->y + pf->y));
3263 eo_do(ep->object, 3276#else
3264 evas_obj_position_set(ed->x + pf->x, ed->y + pf->y));
3265 }
3266 eo_do(ep->object, 3277 eo_do(ep->object,
3278 evas_obj_position_set(ed->x + pf->x, ed->y + pf->y),
3267 evas_obj_size_set(pf->w, pf->h)); 3279 evas_obj_size_set(pf->w, pf->h));
3280#endif
3268 3281
3269 if (ep->nested_smart) 3282 if (ep->nested_smart)
3270 { /* Move, Resize all nested parts */ 3283 { /* Move, Resize all nested parts */
diff --git a/legacy/edje/src/lib/edje_data.c b/legacy/edje/src/lib/edje_data.c
index 204aa95035..48370853d9 100644
--- a/legacy/edje/src/lib/edje_data.c
+++ b/legacy/edje/src/lib/edje_data.c
@@ -537,6 +537,8 @@ _edje_edd_init(void)
537 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.material", physics.material, EET_T_UCHAR); \ 537 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.material", physics.material, EET_T_UCHAR); \
538 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.density", physics.density, EET_T_DOUBLE); \ 538 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.density", physics.density, EET_T_DOUBLE); \
539 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.hardness", physics.hardness, EET_T_DOUBLE); \ 539 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.hardness", physics.hardness, EET_T_DOUBLE); \
540 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.z", physics.z, EET_T_INT); \
541 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.depth", physics.depth, EET_T_INT); \
540 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.ignore_part_pos", physics.ignore_part_pos, EET_T_UCHAR); \ 542 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.ignore_part_pos", physics.ignore_part_pos, EET_T_UCHAR); \
541 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.light_on", physics.light_on, EET_T_UCHAR); \ 543 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.light_on", physics.light_on, EET_T_UCHAR); \
542 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.backcull", physics.backcull, EET_T_UCHAR); \ 544 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.backcull", physics.backcull, EET_T_UCHAR); \
@@ -621,6 +623,8 @@ _edje_edd_init(void)
621 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.material", Dec.physics.material, EET_T_UCHAR); \ 623 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.material", Dec.physics.material, EET_T_UCHAR); \
622 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.density", Dec.physics.density, EET_T_DOUBLE); \ 624 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.density", Dec.physics.density, EET_T_DOUBLE); \
623 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.hardness", Dec.physics.hardness, EET_T_DOUBLE); \ 625 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.hardness", Dec.physics.hardness, EET_T_DOUBLE); \
626 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.z", Dec.physics.z, EET_T_INT); \
627 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.depth", Dec.physics.depth, EET_T_INT); \
624 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.ignore_part_pos", Dec.physics.ignore_part_pos, EET_T_UCHAR); \ 628 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.ignore_part_pos", Dec.physics.ignore_part_pos, EET_T_UCHAR); \
625 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.light_on", Dec.physics.light_on, EET_T_UCHAR); \ 629 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.light_on", Dec.physics.light_on, EET_T_UCHAR); \
626 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.backcull", Dec.physics.backcull, EET_T_UCHAR); \ 630 EET_DATA_DESCRIPTOR_ADD_BASIC(Edd, Type, "physics.backcull", Dec.physics.backcull, EET_T_UCHAR); \
diff --git a/legacy/edje/src/lib/edje_embryo.c b/legacy/edje/src/lib/edje_embryo.c
index 898df51407..a8668eebbd 100644
--- a/legacy/edje/src/lib/edje_embryo.c
+++ b/legacy/edje/src/lib/edje_embryo.c
@@ -2338,6 +2338,16 @@ _edje_embryo_fn_set_state_val(Embryo_Program *ep, Embryo_Cell *params)
2338 2338
2339 GETINT(rp->custom->description->physics.backcull, params[3]); 2339 GETINT(rp->custom->description->physics.backcull, params[3]);
2340 break; 2340 break;
2341 case EDJE_STATE_PARAM_PHYSICS_Z:
2342 CHKPARAM(3);
2343
2344 GETINT(rp->custom->description->physics.z, params[3]);
2345 break;
2346 case EDJE_STATE_PARAM_PHYSICS_DEPTH:
2347 CHKPARAM(3);
2348
2349 GETINT(rp->custom->description->physics.depth, params[3]);
2350 break;
2341#endif 2351#endif
2342 default: 2352 default:
2343 break; 2353 break;
@@ -2866,6 +2876,16 @@ _edje_embryo_fn_get_state_val(Embryo_Program *ep, Embryo_Cell *params)
2866 2876
2867 SETINT(rp->custom->description->physics.backcull, params[3]); 2877 SETINT(rp->custom->description->physics.backcull, params[3]);
2868 break; 2878 break;
2879 case EDJE_STATE_PARAM_PHYSICS_Z:
2880 CHKPARAM(3);
2881
2882 SETINT(rp->custom->description->physics.z, params[3]);
2883 break;
2884 case EDJE_STATE_PARAM_PHYSICS_DEPTH:
2885 CHKPARAM(3);
2886
2887 SETINT(rp->custom->description->physics.depth, params[3]);
2888 break;
2869#endif 2889#endif
2870 default: 2890 default:
2871 break; 2891 break;
diff --git a/legacy/edje/src/lib/edje_private.h b/legacy/edje/src/lib/edje_private.h
index 2f6e317705..e20fe0dfc6 100644
--- a/legacy/edje/src/lib/edje_private.h
+++ b/legacy/edje/src/lib/edje_private.h
@@ -428,7 +428,9 @@ typedef struct _Edje_Markup_Filter_Callback Edje_Markup_Filter_Callback;
428#define EDJE_STATE_PARAM_PHYSICS_MOV_FREEDOM_LIN 53 428#define EDJE_STATE_PARAM_PHYSICS_MOV_FREEDOM_LIN 53
429#define EDJE_STATE_PARAM_PHYSICS_MOV_FREEDOM_ANG 54 429#define EDJE_STATE_PARAM_PHYSICS_MOV_FREEDOM_ANG 54
430#define EDJE_STATE_PARAM_PHYSICS_BACK_CULL 55 430#define EDJE_STATE_PARAM_PHYSICS_BACK_CULL 55
431#define EDJE_STATE_PARAM_LAST 56 431#define EDJE_STATE_PARAM_PHYSICS_Z 56
432#define EDJE_STATE_PARAM_PHYSICS_DEPTH 57
433#define EDJE_STATE_PARAM_LAST 58
432 434
433#define EDJE_ENTRY_EDIT_MODE_NONE 0 435#define EDJE_ENTRY_EDIT_MODE_NONE 0
434#define EDJE_ENTRY_EDIT_MODE_SELECTABLE 1 436#define EDJE_ENTRY_EDIT_MODE_SELECTABLE 1
@@ -1016,6 +1018,8 @@ struct _Edje_Part_Description_Common
1016 double linear; 1018 double linear;
1017 double angular; 1019 double angular;
1018 } sleep; 1020 } sleep;
1021 int z;
1022 int depth;
1019 Eina_List *faces; /* faces for 3d effects */ 1023 Eina_List *faces; /* faces for 3d effects */
1020 struct { 1024 struct {
1021 struct { 1025 struct {
@@ -1379,6 +1383,8 @@ struct _Edje_Calc_Params
1379 double linear; //8 1383 double linear; //8
1380 double angular; //8 1384 double angular; //8
1381 } sleep; // 16 1385 } sleep; // 16
1386 int z; // 4
1387 int depth; // 4
1382 struct { 1388 struct {
1383 struct { 1389 struct {
1384 unsigned char x; 1390 unsigned char x;