summaryrefslogtreecommitdiff
path: root/src/lib/emotion/Emotion.h
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-08-06 13:36:06 +0100
committerTom Hacohen <tom@stosb.com>2014-08-21 11:02:11 +0100
commit5ec2aecd83271663081ffec15332bd9ccb4450e5 (patch)
tree9e82b47b43fcc063c0e5aa01edee02130ca9fb62 /src/lib/emotion/Emotion.h
parent0f3ccbfd172ca6746910a00cb4e598a971d89d81 (diff)
Emotion object: Convert from a smart object to an eo object.
Diffstat (limited to 'src/lib/emotion/Emotion.h')
-rw-r--r--src/lib/emotion/Emotion.h55
1 files changed, 7 insertions, 48 deletions
diff --git a/src/lib/emotion/Emotion.h b/src/lib/emotion/Emotion.h
index f11cbc71ec..b07cbd3062 100644
--- a/src/lib/emotion/Emotion.h
+++ b/src/lib/emotion/Emotion.h
@@ -120,6 +120,13 @@
120# endif 120# endif
121#endif /* ! _WIN32 */ 121#endif /* ! _WIN32 */
122 122
123#ifndef EFL_NOLEGACY_API_SUPPORT
124#include "Emotion_Legacy.h"
125#endif
126#ifdef EFL_EO_API_SUPPORT
127#include "Emotion_Eo.h"
128#endif
129
123/** 130/**
124 * @file Emotion.h 131 * @file Emotion.h
125 * @brief The file that provides Emotion the API, with functions available for 132 * @brief The file that provides Emotion the API, with functions available for
@@ -360,8 +367,6 @@ extern "C" {
360EAPI Eina_Bool emotion_init(void); 367EAPI Eina_Bool emotion_init(void);
361EAPI Eina_Bool emotion_shutdown(void); 368EAPI Eina_Bool emotion_shutdown(void);
362 369
363#include "emotion_object.eo.h"
364
365/** 370/**
366 * @brief Add an emotion object to the canvas. 371 * @brief Add an emotion object to the canvas.
367 * 372 *
@@ -390,52 +395,6 @@ EAPI Eina_Bool emotion_shutdown(void);
390EAPI Evas_Object *emotion_object_add (Evas *evas); 395EAPI Evas_Object *emotion_object_add (Evas *evas);
391 396
392/** 397/**
393 * @brief Set the specified option for the current module.
394 *
395 * @param obj The emotion object which the option is being set to.
396 * @param opt The option that is being set. Currently supported optiosn: "video"
397 * and "audio".
398 * @param val The value of the option. Currently only supports "off" (?!?!?!)
399 *
400 * This function allows one to mute the video or audio of the emotion object.
401 *
402 * @note Please don't use this function, consider using
403 * emotion_object_audio_mute_set() and emotion_object_video_mute_set() instead.
404 *
405 * @see emotion_object_audio_mute_set()
406 * @see emotion_object_video_mute_set()
407 *
408 * @ingroup Emotion_Init
409 */
410EAPI void emotion_object_module_option_set (Evas_Object *obj, const char *opt, const char *val);
411
412/**
413 * @brief Initializes an emotion object with the specified module.
414 *
415 * @param obj The emotion object to be initialized.
416 * @param module_filename The name of the module to be used (gstreamer or xine).
417 * @return @c EINA_TRUE if the specified module was successfully initialized for
418 * this object, @c EINA_FALSE otherwise.
419 *
420 * This function is required after creating the emotion object, in order to
421 * specify which module will be used with this object. Different objects can
422 * use different modules to play a media file. The current supported modules are
423 * @b gstreamer and @b xine.
424 *
425 * To use any of them, you need to make sure that support for them was compiled
426 * correctly.
427 *
428 * @note It's possible to disable the build of a module with
429 * --disable-module_name.
430 *
431 * @see emotion_object_add()
432 * @see emotion_object_file_set()
433 *
434 * @ingroup Emotion_Init
435 */
436EAPI Eina_Bool emotion_object_init (Evas_Object *obj, const char *module_filename);
437
438/**
439 * @brief Set borders for the emotion object. 398 * @brief Set borders for the emotion object.
440 * 399 *
441 * @param obj The emotion object where borders are being set. 400 * @param obj The emotion object where borders are being set.