summaryrefslogtreecommitdiff
path: root/src/lib/efl_wl/Efl_Wl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/efl_wl/Efl_Wl.h')
-rw-r--r--src/lib/efl_wl/Efl_Wl.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/src/lib/efl_wl/Efl_Wl.h b/src/lib/efl_wl/Efl_Wl.h
new file mode 100644
index 0000000000..16332b5cbd
--- /dev/null
+++ b/src/lib/efl_wl/Efl_Wl.h
@@ -0,0 +1,57 @@
+#ifdef EFL_BETA_API_SUPPORT
+
+#ifndef EFL_WL_H
+# define EFL_WL_H
+#include <Evas.h>
+#include <Ecore.h>
+
+#ifdef EAPI
+# undef EAPI
+#endif
+
+#ifdef _WIN32
+# ifdef EFL_EINA_BUILD
+# ifdef DLL_EXPORT
+# define EAPI __declspec(dllexport)
+# else
+# define EAPI
+# endif /* ! DLL_EXPORT */
+# else
+# define EAPI __declspec(dllimport)
+# endif /* ! EFL_EINA_BUILD */
+# define EAPI_WEAK
+#else
+# ifdef __GNUC__
+# if __GNUC__ >= 4
+# define EAPI __attribute__ ((visibility("default")))
+# define EAPI_WEAK __attribute__ ((weak))
+# else
+# define EAPI
+# define EAPI_WEAK
+# endif
+# else
+/**
+ * @def EAPI
+ * @brief Used to export functions(by changing visibility).
+ */
+# define EAPI
+# endif
+#endif
+
+typedef enum
+{
+ EFL_WL_ROTATION_0,
+ EFL_WL_ROTATION_90,
+ EFL_WL_ROTATION_180,
+ EFL_WL_ROTATION_270
+} Efl_Wl_Rotation;
+
+EAPI Evas_Object *efl_wl_add(Evas *e);
+EAPI Ecore_Exe *efl_wl_run(Evas_Object *obj, const char *cmd);
+EAPI Eina_Bool efl_wl_next(Evas_Object *obj);
+EAPI Eina_Bool efl_wl_prev(Evas_Object *obj);
+EAPI void efl_wl_rotate(Evas_Object *obj, Efl_Wl_Rotation rot, Eina_Bool rtl);
+EAPI void efl_wl_scale_set(Evas_Object *obj, double scale);
+#endif
+
+#endif