summaryrefslogtreecommitdiff
path: root/src/lib/emotion
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2014-09-01 15:08:49 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2015-12-23 23:59:40 -0200
commita3db1dddd3ba67c81118f7f2c0bc753dc8aac551 (patch)
tree233ee1be7bfa299bff560207135d20940c4e411f /src/lib/emotion
parent1a3cb45f1cc7fdf8d481879e6bd7349d9cb0b3fa (diff)
efl-js: JavaScript Eolian binding
To configure efl sources with bindings to use in nodejs add ––with-js=nodejs in configure flags to generate node files $ configure --with-js=nodejs and compile normally with: $ make $ make install To use, you have to require efl: efl = require('efl') The bindings is divided in two parts: generated and manually written. The generation uses the Eolian library for parsing Eo files and generate C++ code that is compiled against V8 interpreter library to create a efl.node file that can be required in a node.js instance. @feature
Diffstat (limited to 'src/lib/emotion')
-rw-r--r--src/lib/emotion/Emotion.h39
-rw-r--r--src/lib/emotion/emotion_smart.c1
2 files changed, 21 insertions, 19 deletions
diff --git a/src/lib/emotion/Emotion.h b/src/lib/emotion/Emotion.h
index e2d7a7a704..3ea786391d 100644
--- a/src/lib/emotion/Emotion.h
+++ b/src/lib/emotion/Emotion.h
@@ -120,6 +120,10 @@
120# endif 120# endif
121#endif /* ! _WIN32 */ 121#endif /* ! _WIN32 */
122 122
123#ifdef __cplusplus
124extern "C" {
125#endif
126
123#ifndef EFL_NOLEGACY_API_SUPPORT 127#ifndef EFL_NOLEGACY_API_SUPPORT
124#include "Emotion_Legacy.h" 128#include "Emotion_Legacy.h"
125#endif 129#endif
@@ -266,26 +270,23 @@ typedef enum _Emotion_Aspect Emotion_Aspect; /**< Aspect ratio option. */
266#define EMOTION_CHANNEL_AUTO -1 270#define EMOTION_CHANNEL_AUTO -1
267#define EMOTION_CHANNEL_DEFAULT 0 271#define EMOTION_CHANNEL_DEFAULT 0
268 272
269#ifdef __cplusplus
270extern "C" {
271#endif
272
273#define EMOTION_VERSION_MAJOR EFL_VERSION_MAJOR 273#define EMOTION_VERSION_MAJOR EFL_VERSION_MAJOR
274#define EMOTION_VERSION_MINOR EFL_VERSION_MINOR 274#define EMOTION_VERSION_MINOR EFL_VERSION_MINOR
275 /** 275
276 * @typedef Emotion_Version 276/**
277 * Represents the current version of Emotion 277 * @typedef Emotion_Version
278 */ 278 * Represents the current version of Emotion
279 typedef struct _Emotion_Version 279 */
280 { 280typedef struct _Emotion_Version
281 int major; /** < major (binary or source incompatible changes) */ 281 {
282 int minor; /** < minor (new features, bugfixes, major improvements version) */ 282 int major; /** < major (binary or source incompatible changes) */
283 int micro; /** < micro (bugfix, internal improvements, no new features version) */ 283 int minor; /** < minor (new features, bugfixes, major improvements version) */
284 int revision; /** < git revision (0 if a proper release or the git revision number Emotion is built from) */ 284 int micro; /** < micro (bugfix, internal improvements, no new features version) */
285 } Emotion_Version; 285 int revision; /** < git revision (0 if a proper release or the git revision number Emotion is built from) */
286 286 } Emotion_Version;
287 EAPI extern Emotion_Version *emotion_version; 287
288 288EAPI extern Emotion_Version *emotion_version;
289
289/* api calls available */ 290/* api calls available */
290 291
291/** 292/**
@@ -873,7 +874,7 @@ EAPI Eina_Bool emotion_object_smooth_scale_get (const Evas_Object *obj);
873 * @param obj The object target of the event. 874 * @param obj The object target of the event.
874 * @param ev The emotion event. 875 * @param ev The emotion event.
875 * 876 *
876 * @see Emotion_Event 877 * @see Emotion_Event
877 */ 878 */
878EAPI void emotion_object_event_simple_send (Evas_Object *obj, Emotion_Event ev); 879EAPI void emotion_object_event_simple_send (Evas_Object *obj, Emotion_Event ev);
879 880
diff --git a/src/lib/emotion/emotion_smart.c b/src/lib/emotion/emotion_smart.c
index ea1130e3fd..969780a172 100644
--- a/src/lib/emotion/emotion_smart.c
+++ b/src/lib/emotion/emotion_smart.c
@@ -1964,6 +1964,7 @@ _emotion_object_evas_object_smart_clip_unset(Evas_Object *obj EINA_UNUSED, Emoti
1964 if (sd->crop.clipper) evas_object_clip_unset(sd->crop.clipper); 1964 if (sd->crop.clipper) evas_object_clip_unset(sd->crop.clipper);
1965 else evas_object_clip_unset(sd->obj); 1965 else evas_object_clip_unset(sd->obj);
1966 evas_object_clip_unset(sd->bg); 1966 evas_object_clip_unset(sd->bg);
1967
1967} 1968}
1968 1969
1969#include "emotion_object.eo.c" 1970#include "emotion_object.eo.c"