\hypertarget{test_slider_c_ephysics-test-h}{}\section{ephysics\+\_\+test.\+h}\label{test_slider_c_ephysics-test-h}

\begin{DoxyCodeInclude}
\textcolor{preprocessor}{#ifndef \_EPHYSICS\_PRIVATE\_H}
\textcolor{preprocessor}{#define \_EPHYSICS\_PRIVATE\_H}

\textcolor{preprocessor}{#include <\mbox{\hyperlink{Edje_8h}{Edje.h}}>}
\textcolor{preprocessor}{#include <Elementary.h>}
\textcolor{preprocessor}{#include <\mbox{\hyperlink{Eina_8h}{Eina.h}}>}
\textcolor{preprocessor}{#include <Evas.h>}

\textcolor{preprocessor}{#include "\mbox{\hyperlink{EPhysics_8h}{EPhysics.h}}"}

\textcolor{preprocessor}{#ifdef EPHYSICS\_LOG\_COLOR}
\textcolor{preprocessor}{#undef EPHYSICS\_LOG\_COLOR}
\textcolor{preprocessor}{#endif}
\textcolor{preprocessor}{#define EPHYSICS\_LOG\_COLOR EINA\_COLOR\_BLUE}

\textcolor{preprocessor}{#ifdef ERR}
\textcolor{preprocessor}{# undef ERR}
\textcolor{preprocessor}{#endif}
\textcolor{preprocessor}{#define ERR(...) EINA\_LOG\_DOM\_ERR(\_ephysics\_test\_log\_dom, \_\_VA\_ARGS\_\_)}

\textcolor{preprocessor}{#ifdef DBG}
\textcolor{preprocessor}{# undef DBG}
\textcolor{preprocessor}{#endif}
\textcolor{preprocessor}{#define DBG(...) EINA\_LOG\_DOM\_DBG(\_ephysics\_test\_log\_dom, \_\_VA\_ARGS\_\_)}

\textcolor{preprocessor}{#ifdef INF}
\textcolor{preprocessor}{# undef INF}
\textcolor{preprocessor}{#endif}
\textcolor{preprocessor}{#define INF(...) EINA\_LOG\_DOM\_INFO(\_ephysics\_test\_log\_dom, \_\_VA\_ARGS\_\_)}

\textcolor{preprocessor}{#ifdef WRN}
\textcolor{preprocessor}{# undef WRN}
\textcolor{preprocessor}{#endif}
\textcolor{preprocessor}{#define WRN(...) EINA\_LOG\_DOM\_WARN(\_ephysics\_test\_log\_dom, \_\_VA\_ARGS\_\_)}

\textcolor{preprocessor}{#ifdef CRI}
\textcolor{preprocessor}{# undef CRI}
\textcolor{preprocessor}{#endif}
\textcolor{preprocessor}{#define CRI(...) EINA\_LOG\_DOM\_CRIT(\_ephysics\_test\_log\_dom, \_\_VA\_ARGS\_\_)}

\textcolor{preprocessor}{#define EPHYSICS\_TEST\_THEME "ephysics\_test"}
\textcolor{preprocessor}{#define WIDTH (512)}
\textcolor{preprocessor}{#define HEIGHT (384)}
\textcolor{preprocessor}{#define DEPTH (100)}
\textcolor{preprocessor}{#define SHADOW\_ALPHA\_ID (1)}
\textcolor{preprocessor}{#define FLOOR\_Y (344)}
\textcolor{preprocessor}{#define FLOOR\_WIDTH (750)}
\textcolor{preprocessor}{#define SH\_THRESHOLD (200)}

\textcolor{preprocessor}{#ifdef \_\_cplusplus}
\textcolor{keyword}{extern} \textcolor{stringliteral}{"C"} \{
\textcolor{preprocessor}{#endif}

\textcolor{keyword}{extern} \textcolor{keywordtype}{int} \_ephysics\_test\_log\_dom;

\textcolor{keyword}{typedef} \textcolor{keyword}{struct }\_Test\_Data Test\_Data;

\textcolor{keyword}{struct }\_Test\_Data \{
     \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\_World}} *world;
     \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *layout;
     \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *win;
     \mbox{\hyperlink{struct__Eina__List}{Eina\_List}} *constraints;
     \mbox{\hyperlink{struct__Eina__List}{Eina\_List}} *evas\_objs;
     \mbox{\hyperlink{struct__Eina__List}{Eina\_List}} *bodies;
     \textcolor{keywordtype}{void} *data;
\};

Test\_Data *test\_data\_new(\textcolor{keywordtype}{void});
\textcolor{keywordtype}{void} test\_data\_del(Test\_Data *test\_data);

\textcolor{keywordtype}{void} test\_clean(Test\_Data *test\_data);

\textcolor{keywordtype}{void} test\_win\_add(Test\_Data *test\_data, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *title, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\_Bool}} autodel);

\textcolor{keywordtype}{void} update\_object\_cb(\textcolor{keywordtype}{void} *data, \mbox{\hyperlink{group__EPhysics__Body_gaf39ad724f8a2f81f9139c63263900bf1}{EPhysics\_Body}} *body, \textcolor{keywordtype}{void} *event\_info);

\textcolor{preprocessor}{#ifdef \_\_cplusplus}
\}
\textcolor{preprocessor}{#endif}

\textcolor{preprocessor}{#endif}
\end{DoxyCodeInclude}
\hypertarget{test_bouncing_ball_c_test-bouncing-ball-c}{}\section{test\+\_\+bouncing\+\_\+ball.\+c}\label{test_bouncing_ball_c_test-bouncing-ball-c}
 
\begin{DoxyCodeInclude}
test\_clean(Test\_Data *test\_data)
\{
   \mbox{\hyperlink{group__EPhysics__Constraint_ga6cdc4a630836a63a51489b885c09c7e3}{EPhysics\_Constraint}} *constraint;
   \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *evas\_obj;
   \mbox{\hyperlink{group__EPhysics__Body_gaf39ad724f8a2f81f9139c63263900bf1}{EPhysics\_Body}} *body;

   \mbox{\hyperlink{group__Eina__List__Group_gae27a2c686a0a11693f9b06957c9bba83}{EINA\_LIST\_FREE}}(test\_data->constraints, constraint)
      \mbox{\hyperlink{group__EPhysics__Constraint_ga9108a722eb302109e47dd086a1db1fd4}{ephysics\_constraint\_del}}(constraint);

   \mbox{\hyperlink{group__Eina__List__Group_gae27a2c686a0a11693f9b06957c9bba83}{EINA\_LIST\_FREE}}(test\_data->bodies, body)
      \mbox{\hyperlink{group__EPhysics__Body_ga9f47ada6fe8ee0abb234bc4aaab7dd1c}{ephysics\_body\_del}}(body);

   \mbox{\hyperlink{group__Eina__List__Group_gae27a2c686a0a11693f9b06957c9bba83}{EINA\_LIST\_FREE}}(test\_data->evas\_objs, evas\_obj)
      \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga7e7a625dab7a3890532aa13b43117076}{evas\_object\_del}}(evas\_obj);
\}

\end{DoxyCodeInclude}



\begin{DoxyCodeInclude}
test\_data\_new(\textcolor{keywordtype}{void})
\{
   Test\_Data *test\_data;

   test\_data = calloc(1, \textcolor{keyword}{sizeof}(Test\_Data));
   \textcolor{keywordflow}{if} (!test\_data)
     \mbox{\hyperlink{group__Eina__File__Group_ga24e93be9c5baa3aeab7021b64e290672}{ERR}}(\textcolor{stringliteral}{"Failed to create test data"});

   \textcolor{keywordflow}{return} test\_data;
\}

\end{DoxyCodeInclude}



\begin{DoxyCodeInclude}
test\_win\_add(Test\_Data *test\_data, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *title, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\_Bool}} autodel)
\{
   \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *win, *ly;

   win = \mbox{\hyperlink{group__Elm__Win_gad127cc5ae04689c4f2c5b633056d0ac8}{elm\_win\_add}}(NULL, title, ELM\_WIN\_BASIC);
   \mbox{\hyperlink{group__Elm__Win_ga0e0b613ac6b5d1e0e71f2ec17e80cb07}{elm\_win\_title\_set}}(win, title);
   elm\_win\_autodel\_set(win, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}});
   \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga9cbc13661584e49fb9d9cdab514a1eeb}{evas\_object\_show}}(win);
   test\_data->win = win;
   \textcolor{keywordflow}{if} (autodel)
     \mbox{\hyperlink{group__Evas__Object__Group__Events_ga23be30ac5cdfb780f1ff82e9108ec26b}{evas\_object\_event\_callback\_add}}(win, 
      \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968a4471afbcbb4a754b7b0bbde00fb9a277}{EVAS\_CALLBACK\_DEL}},
                                    \_subwin\_del\_cb, test\_data);

   ly = \mbox{\hyperlink{group__Elm__Layout_gaca5aee4ad4d92c68f13d1080c70baf8b}{elm\_layout\_add}}(win);
   \mbox{\hyperlink{group__Elm__Win_ga505d6bd217e5ee01e82b548ec35986eb}{elm\_win\_resize\_object\_add}}(win, ly);
   evas\_object\_size\_hint\_min\_set(ly, WIDTH, HEIGHT);
   evas\_object\_size\_hint\_max\_set(ly, WIDTH, HEIGHT);
   \mbox{\hyperlink{group__Elm__Layout_ga8d1105463d52787a7b0ca8d7402cd3ea}{elm\_layout\_file\_set}}(ly, PACKAGE\_DATA\_DIR \textcolor{stringliteral}{"/"} EPHYSICS\_TEST\_THEME \textcolor{stringliteral}{".edj"},
                       \textcolor{stringliteral}{"frame"});
   \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga9cbc13661584e49fb9d9cdab514a1eeb}{evas\_object\_show}}(ly);
   test\_data->layout = ly;
\}

\end{DoxyCodeInclude}



\begin{DoxyCodeInclude}
\textcolor{preprocessor}{#ifdef HAVE\_CONFIG\_H}
\textcolor{preprocessor}{# include <config.h>}
\textcolor{preprocessor}{#endif}

\textcolor{preprocessor}{#include "ephysics\_test.h"}

\textcolor{keyword}{static} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\_Bool}}
\_on\_keydown(\textcolor{keywordtype}{void} *data, \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *obj \_\_UNUSED\_\_, \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *src \_\_UNUSED\_\_, 
      \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968}{Evas\_Callback\_Type}} type, \textcolor{keywordtype}{void} *event\_info)
\{
   \mbox{\hyperlink{struct__Evas__Event__Key__Down}{Evas\_Event\_Key\_Down}} *ev = event\_info;
   \mbox{\hyperlink{group__EPhysics__Body_gaf39ad724f8a2f81f9139c63263900bf1}{EPhysics\_Body}} *body = data;

   \textcolor{keywordflow}{if} (type != \mbox{\hyperlink{Evas__Common_8h_ad64cde0da38a60e7cb7905b3ab216968ac436b50ad665089f8a24b0fb827cec5f}{EVAS\_CALLBACK\_KEY\_UP}})
     \textcolor{keywordflow}{return} \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\_FALSE}};

   \textcolor{keywordflow}{if} (strcmp(ev->\mbox{\hyperlink{struct__Evas__Event__Key__Down_a70473bba88a1afaee180a54150513824}{key}}, \textcolor{stringliteral}{"Up"}) == 0)
     \mbox{\hyperlink{group__EPhysics__Body_ga9109b39047a724640f6a18c683c9eb07}{ephysics\_body\_central\_impulse\_apply}}(body, 0, -300, 0);
   \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (strcmp(ev->\mbox{\hyperlink{struct__Evas__Event__Key__Down_a70473bba88a1afaee180a54150513824}{key}}, \textcolor{stringliteral}{"Down"}) == 0)
     \mbox{\hyperlink{group__EPhysics__Body_ga9109b39047a724640f6a18c683c9eb07}{ephysics\_body\_central\_impulse\_apply}}(body, 0, 300, 0);
   \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (strcmp(ev->\mbox{\hyperlink{struct__Evas__Event__Key__Down_a70473bba88a1afaee180a54150513824}{key}}, \textcolor{stringliteral}{"Right"}) == 0)
     \mbox{\hyperlink{group__EPhysics__Body_ga9109b39047a724640f6a18c683c9eb07}{ephysics\_body\_central\_impulse\_apply}}(body, 300, 0, 0);
   \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (strcmp(ev->\mbox{\hyperlink{struct__Evas__Event__Key__Down_a70473bba88a1afaee180a54150513824}{key}}, \textcolor{stringliteral}{"Left"}) == 0)
     \mbox{\hyperlink{group__EPhysics__Body_ga9109b39047a724640f6a18c683c9eb07}{ephysics\_body\_central\_impulse\_apply}}(body, -300, 0, 0);

   \textcolor{keywordflow}{return} \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}};
\}

\textcolor{keyword}{static} \textcolor{keywordtype}{void}
\_world\_populate(Test\_Data *test\_data)
\{
   \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *sphere, *shadow;
   \mbox{\hyperlink{group__EPhysics__Body_gaf39ad724f8a2f81f9139c63263900bf1}{EPhysics\_Body}} *fall\_body;

   shadow = \mbox{\hyperlink{group__Elm__Layout_gaca5aee4ad4d92c68f13d1080c70baf8b}{elm\_layout\_add}}(test\_data->win);
   \mbox{\hyperlink{group__Elm__Layout_ga8d1105463d52787a7b0ca8d7402cd3ea}{elm\_layout\_file\_set}}(
      shadow, PACKAGE\_DATA\_DIR \textcolor{stringliteral}{"/"} EPHYSICS\_TEST\_THEME \textcolor{stringliteral}{".edj"}, \textcolor{stringliteral}{"shadow-ball"});
   evas\_object\_move(shadow, WIDTH / 3, FLOOR\_Y);
   evas\_object\_resize(shadow, 70, 3);
   \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga9cbc13661584e49fb9d9cdab514a1eeb}{evas\_object\_show}}(shadow);
   test\_data->evas\_objs = \mbox{\hyperlink{group__Eina__List__Group_ga92ec14d1a1040a361c4d8cd0ab7b0ecc}{eina\_list\_append}}(test\_data->evas\_objs, shadow);

   sphere = \mbox{\hyperlink{group__Elm__Image_ga5d211c8af4f6e297a24fc4e8737c81a9}{elm\_image\_add}}(test\_data->win);
   \mbox{\hyperlink{group__Elm__Image_gad1a96ede5f513042cef3c1dac4572f73}{elm\_image\_file\_set}}(
      sphere, PACKAGE\_DATA\_DIR \textcolor{stringliteral}{"/"} EPHYSICS\_TEST\_THEME \textcolor{stringliteral}{".edj"}, \textcolor{stringliteral}{"big-blue-ball"});
   evas\_object\_move(sphere, WIDTH / 3, HEIGHT / 8);
   evas\_object\_resize(sphere, 70, 70);
   \mbox{\hyperlink{group__Evas__Object__Group__Basic_ga9cbc13661584e49fb9d9cdab514a1eeb}{evas\_object\_show}}(sphere);
   test\_data->evas\_objs = \mbox{\hyperlink{group__Eina__List__Group_ga92ec14d1a1040a361c4d8cd0ab7b0ecc}{eina\_list\_append}}(test\_data->evas\_objs, sphere);

   fall\_body = \mbox{\hyperlink{group__EPhysics__Body_gab26c09b5a98dabfb0323dbdb7f2a64af}{ephysics\_body\_sphere\_add}}(test\_data->world);
   \mbox{\hyperlink{group__EPhysics__Body_ga39cb9e95bbe1d097926a09365c501db3}{ephysics\_body\_evas\_object\_set}}(fall\_body, sphere, 
      \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}});
   \mbox{\hyperlink{group__EPhysics__Body_ga731c9a6443f7c4294fce23fc1287b778}{ephysics\_body\_restitution\_set}}(fall\_body, 0.95);
   \mbox{\hyperlink{group__EPhysics__Body_ga986d45060bf6ba1689a56889a2bcabce}{ephysics\_body\_friction\_set}}(fall\_body, 0.1);
   \mbox{\hyperlink{group__EPhysics__Body_gada176f4748a4c2fc4ba2042021ea7067}{ephysics\_body\_event\_callback\_add}}(fall\_body, 
      \mbox{\hyperlink{group__EPhysics__Body_gga904d0d1462e71c1f32cb27f540b5277cacb2363cd59bc8642e74ad916c6658e0a}{EPHYSICS\_CALLBACK\_BODY\_UPDATE}},
                                    update\_object\_cb, shadow);
   test\_data->bodies = \mbox{\hyperlink{group__Eina__List__Group_ga92ec14d1a1040a361c4d8cd0ab7b0ecc}{eina\_list\_append}}(test\_data->bodies, fall\_body);
   test\_data->data = fall\_body;
\}

\textcolor{keyword}{static} \textcolor{keywordtype}{void}
\_restart(\textcolor{keywordtype}{void} *data, \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *obj \_\_UNUSED\_\_, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *emission \_\_UNUSED\_\_, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *
      source \_\_UNUSED\_\_)
\{
   Test\_Data *test\_data = data;

   \mbox{\hyperlink{group__Eina__File__Group_gae8924623ca601364965e3d88fb7f40fa}{DBG}}(\textcolor{stringliteral}{"Restart pressed"});
   \mbox{\hyperlink{group__Elm__General_gac408fbe965f361030746adf3a904c791}{elm\_object\_event\_callback\_del}}(test\_data->win, \_on\_keydown, test\_data->data)
      ;
   test\_clean(test\_data);
   \_world\_populate(test\_data);
   \mbox{\hyperlink{group__Elm__General_gae2d2f3ef544f5aa59a0d89fbb67584e5}{elm\_object\_event\_callback\_add}}(test\_data->win, \_on\_keydown, test\_data->data)
      ;
\}

\textcolor{keywordtype}{void}
test\_bouncing\_ball(\textcolor{keywordtype}{void} *data \_\_UNUSED\_\_, \mbox{\hyperlink{group__Evas__Object__Group_ga9e19e6dd1f517a0ba437c0114d3e7c97}{Evas\_Object}} *obj \_\_UNUSED\_\_, \textcolor{keywordtype}{void} *event\_info 
      \_\_UNUSED\_\_)
\{
   \mbox{\hyperlink{group__EPhysics__Body_gaf39ad724f8a2f81f9139c63263900bf1}{EPhysics\_Body}} *boundary;
   \mbox{\hyperlink{group__EPhysics__World_ga83c0d22744748525aa2dac11726c58e6}{EPhysics\_World}} *world;
   Test\_Data *test\_data;

   \textcolor{keywordflow}{if} (!\mbox{\hyperlink{group__EPhysics_gaca8fc170d73b3f688349cc4dbaf219fd}{ephysics\_init}}())
     \textcolor{keywordflow}{return};

   test\_data = test\_data\_new();
   test\_win\_add(test\_data, \textcolor{stringliteral}{"Bouncing Ball"}, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}});

   \mbox{\hyperlink{group__Elm__Layout_gab462343e62b70cc098c35a662d2702a5}{elm\_layout\_signal\_callback\_add}}(test\_data->layout, \textcolor{stringliteral}{"restart"}, \textcolor{stringliteral}{"test-theme"},
                                  \_restart, test\_data);
   \mbox{\hyperlink{group__Elm__General_ga1beada7edf5d714c0dba5459bcc993fc}{elm\_object\_signal\_emit}}(test\_data->layout, \textcolor{stringliteral}{"borders,show"}, \textcolor{stringliteral}{"ephysics\_test"});
   \mbox{\hyperlink{group__Elm__General_ga1beada7edf5d714c0dba5459bcc993fc}{elm\_object\_signal\_emit}}(test\_data->layout, \textcolor{stringliteral}{"arrows,show"}, \textcolor{stringliteral}{"ephysics\_test"});

   world = \mbox{\hyperlink{group__EPhysics__World_ga108e2d7df8c81321b8d5bde8497f0d45}{ephysics\_world\_new}}();
   \mbox{\hyperlink{group__EPhysics__World_ga9ccd111c05eafbdc99dc70e7c0ca5b22}{ephysics\_world\_light\_all\_bodies\_set}}(world, 
      \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\_TRUE}});
   \mbox{\hyperlink{group__EPhysics__World_gaabf8abaf9c41b0c1e5daa4acf3df0356}{ephysics\_world\_render\_geometry\_set}}(world, 50, 40, -50,
                                      WIDTH - 100, FLOOR\_Y - 40, DEPTH);
   test\_data->world = world;

   boundary = \mbox{\hyperlink{group__EPhysics__Body_gac5fc5a1817ac81e2f1fcdcd8908614f2}{ephysics\_body\_bottom\_boundary\_add}}(test\_data->world);
   \mbox{\hyperlink{group__EPhysics__Body_ga731c9a6443f7c4294fce23fc1287b778}{ephysics\_body\_restitution\_set}}(boundary, 0.65);
   \mbox{\hyperlink{group__EPhysics__Body_ga986d45060bf6ba1689a56889a2bcabce}{ephysics\_body\_friction\_set}}(boundary, 4);

   boundary = \mbox{\hyperlink{group__EPhysics__Body_gab7e598db12a5270311c429f0ee12271c}{ephysics\_body\_right\_boundary\_add}}(test\_data->world);
   \mbox{\hyperlink{group__EPhysics__Body_ga731c9a6443f7c4294fce23fc1287b778}{ephysics\_body\_restitution\_set}}(boundary, 0.4);
   \mbox{\hyperlink{group__EPhysics__Body_ga986d45060bf6ba1689a56889a2bcabce}{ephysics\_body\_friction\_set}}(boundary, 3);

   boundary = \mbox{\hyperlink{group__EPhysics__Body_ga4ad52252b2537c6f41e14b9135847fe9}{ephysics\_body\_left\_boundary\_add}}(test\_data->world);
   \mbox{\hyperlink{group__EPhysics__Body_ga731c9a6443f7c4294fce23fc1287b778}{ephysics\_body\_restitution\_set}}(boundary, 0.4);
   \mbox{\hyperlink{group__EPhysics__Body_ga986d45060bf6ba1689a56889a2bcabce}{ephysics\_body\_friction\_set}}(boundary, 3);

   \mbox{\hyperlink{group__EPhysics__Body_ga2a3e40784ef30f15d5d7e9f1f2a814b3}{ephysics\_body\_top\_boundary\_add}}(test\_data->world);

   \_world\_populate(test\_data);
   \mbox{\hyperlink{group__Elm__General_gae2d2f3ef544f5aa59a0d89fbb67584e5}{elm\_object\_event\_callback\_add}}(test\_data->win, \_on\_keydown, test\_data->data)
      ;
\}
\end{DoxyCodeInclude}
 