4 #ifndef EFL_BETA_API_SUPPORT
5 #define EFL_BETA_API_SUPPORT
8 #ifndef EFL_EO_API_SUPPORT
9 #define EFL_EO_API_SUPPORT
16 #include <Ecore_Evas.h>
17 #include <Ecore_Input.h>
22 typedef void (*appCb)(void *userData, void *extra);
26 EvasApp(int w, int h);
28 void resize(int w, int h);
29 int width() const{ return mw;}
30 int height() const{ return mh;}
32 Ecore_Evas * ee() const{return mEcoreEvas;}
33 Evas * evas() const {return mEvas;}
34 Efl_VG * root() const {return mRoot;}
35 void addExitCb(appCb exitcb, void *data) {mExitCb = exitcb; mExitData = data;}
36 void addResizeCb(appCb resizecb, void *data) {mResizeCb = resizecb; mResizeData = data;}
37 void addKeyCb(appCb keycb, void *data) {mKeyCb = keycb; mKeyData = data;}
38 void addRenderPreCb(appCb renderPrecb, void *data) {mRenderPreCb = renderPrecb; mRenderPreData = data;}
39 static std::vector<std::string> jsonFiles(const std::string &dir, bool recurse=false);
43 Ecore_Evas *mEcoreEvas;
47 Evas_Object *mBackground;