summaryrefslogtreecommitdiff
path: root/legacy/ephysics/src/bin/ephysics_test.h
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2012-12-13 21:17:20 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-12-13 21:17:20 +0000
commitbc319eb9bbd67cda2e7ed8ee343b40f4c427f46e (patch)
tree328c2cdd67b05be0f5b5a2a77f51624e3a565b48 /legacy/ephysics/src/bin/ephysics_test.h
parentf1088d563156128fa30fe8a040b33c21266a8b2e (diff)
ephysics: get back example header
Used on ephysics docs Now make doc should works fine SVN revision: 80896
Diffstat (limited to '')
-rw-r--r--legacy/ephysics/src/bin/ephysics_test.h81
1 files changed, 81 insertions, 0 deletions
diff --git a/legacy/ephysics/src/bin/ephysics_test.h b/legacy/ephysics/src/bin/ephysics_test.h
new file mode 100644
index 0000000000..56db5957b1
--- /dev/null
+++ b/legacy/ephysics/src/bin/ephysics_test.h
@@ -0,0 +1,81 @@
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 CRIT
37# undef CRIT
38#endif
39#define CRIT(...) 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
51extern "C" {
52#endif
53
54extern int _ephysics_test_log_dom;
55
56typedef struct _Test_Data Test_Data;
57
58struct _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
68Test_Data *test_data_new(void);
69void test_data_del(Test_Data *test_data);
70
71void test_clean(Test_Data *test_data);
72
73void test_win_add(Test_Data *test_data, const char *title, Eina_Bool autodel);
74
75void update_object_cb(void *data, EPhysics_Body *body, void *event_info);
76
77#ifdef __cplusplus
78}
79#endif
80
81#endif