1 #ifndef _EPHYSICS_PRIVATE_H 2 #define _EPHYSICS_PRIVATE_H 3 4 #include <Edje.h> 5 #include <Elementary.h> 6 #include <Eina.h> 7 #include <Evas.h> 8 9 #include "EPhysics.h" 10 11 #ifdef EPHYSICS_LOG_COLOR 12 #undef EPHYSICS_LOG_COLOR 13 #endif 14 #define EPHYSICS_LOG_COLOR EINA_COLOR_BLUE 15 16 #ifdef ERR 17 # undef ERR 18 #endif 19 #define ERR(...) EINA_LOG_DOM_ERR(_ephysics_test_log_dom, __VA_ARGS__) 20 21 #ifdef DBG 22 # undef DBG 23 #endif 24 #define DBG(...) EINA_LOG_DOM_DBG(_ephysics_test_log_dom, __VA_ARGS__) 25 26 #ifdef INF 27 # undef INF 28 #endif 29 #define INF(...) EINA_LOG_DOM_INFO(_ephysics_test_log_dom, __VA_ARGS__) 30 31 #ifdef WRN 32 # undef WRN 33 #endif 34 #define WRN(...) EINA_LOG_DOM_WARN(_ephysics_test_log_dom, __VA_ARGS__) 35 36 #ifdef CRI 37 # undef CRI 38 #endif 39 #define CRI(...) EINA_LOG_DOM_CRIT(_ephysics_test_log_dom, __VA_ARGS__) 40 41 #define EPHYSICS_TEST_THEME "ephysics_test" 42 #define WIDTH (512) 43 #define HEIGHT (384) 44 #define DEPTH (100) 45 #define SHADOW_ALPHA_ID (1) 46 #define FLOOR_Y (344) 47 #define FLOOR_WIDTH (750) 48 #define SH_THRESHOLD (200) 49 50 #ifdef __cplusplus 51 extern "C" { 52 #endif 53 54 extern int _ephysics_test_log_dom; 55 56 typedef struct _Test_Data Test_Data; 57 58 struct _Test_Data { 59 EPhysics_World *world; 60 Evas_Object *layout; 61 Evas_Object *win; 62 Eina_List *constraints; 63 Eina_List *evas_objs; 64 Eina_List *bodies; 65 void *data; 66 }; 67 68 Test_Data *test_data_new(void); 69 void test_data_del(Test_Data *test_data); 70 71 void test_clean(Test_Data *test_data); 72 73 void test_win_add(Test_Data *test_data, const char *title, Eina_Bool autodel); 74 75 void update_object_cb(void *data, EPhysics_Body *body, void *event_info); 76 77 #ifdef __cplusplus 78 } 79 #endif 80 81 #endif 82