summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/lib/Emotion.h
diff options
context:
space:
mode:
authorRafael Antognolli <antognolli@gmail.com>2011-09-15 18:51:27 +0000
committerRafael Antognolli <antognolli@gmail.com>2011-09-15 18:51:27 +0000
commit5c3474beedf7618b927844b699b5e38ad62548b0 (patch)
tree1c00725f685e32bbee221caf8c2fa1b2b7576f9a /legacy/emotion/src/lib/Emotion.h
parent77f43424a6c0fa2d467ae9fd622012d5719c6d7a (diff)
emotion/border: Add support for selecting the border colors.
This is a simple API that implements colors for the borders specified by emotion_object_border_set(), using a background rectangle behind the emotion object. SVN revision: 63415
Diffstat (limited to '')
-rw-r--r--legacy/emotion/src/lib/Emotion.h36
1 files changed, 34 insertions, 2 deletions
diff --git a/legacy/emotion/src/lib/Emotion.h b/legacy/emotion/src/lib/Emotion.h
index af74eb84f5..ba2f15c955 100644
--- a/legacy/emotion/src/lib/Emotion.h
+++ b/legacy/emotion/src/lib/Emotion.h
@@ -395,11 +395,11 @@ EAPI Eina_Bool emotion_object_init (Evas_Object *obj, const
395 * that respective side of the video will be cropped. 395 * that respective side of the video will be cropped.
396 * 396 *
397 * It's possible to set a color for the added borders (default is transparent) 397 * It's possible to set a color for the added borders (default is transparent)
398 * with emotion_object_border_color_set(). By default, an Emotion object doesn't 398 * with emotion_object_bg_color_set(). By default, an Emotion object doesn't
399 * have any border. 399 * have any border.
400 * 400 *
401 * @see emotion_object_border_get() 401 * @see emotion_object_border_get()
402 * @see emotion_object_border_color_set() 402 * @see emotion_object_bg_color_set()
403 */ 403 */
404EAPI void emotion_object_border_set(Evas_Object *obj, int l, int r, int t, int b); 404EAPI void emotion_object_border_set(Evas_Object *obj, int l, int r, int t, int b);
405 405
@@ -417,6 +417,38 @@ EAPI void emotion_object_border_set(Evas_Object *obj, int l, int r, int t, int b
417EAPI void emotion_object_border_get(const Evas_Object *obj, int *l, int *r, int *t, int *b); 417EAPI void emotion_object_border_get(const Evas_Object *obj, int *l, int *r, int *t, int *b);
418 418
419/** 419/**
420 * @brief Set a color for the background rectangle of this emotion object.
421 *
422 * @param obj The emotion object where the background color is being set.
423 * @param r Red component of the color.
424 * @param g Green component of the color.
425 * @param b Blue component of the color.
426 * @param a Alpha channel of the color.
427 *
428 * This is useful when a border is added to any side of the Emotion object. The
429 * area between the edge of the video and the edge of the object will be filled
430 * with the specified color.
431 *
432 * The default color is 0, 0, 0, 0 (transparent).
433 *
434 * @see emotion_object_bg_color_get()
435 */
436EAPI void emotion_object_bg_color_set(Evas_Object *obj, int r, int g, int b, int a);
437
438/**
439 * @brief Get the background color set for the emotion object.
440 *
441 * @param obj The emotion object from which the background color is being retrieved.
442 * @param r Red component of the color.
443 * @param g Green component of the color.
444 * @param b Blue component of the color.
445 * @param a AAlpha channel of the color.
446 *
447 * @see emotion_object_bg_color_set()
448 */
449EAPI void emotion_object_bg_color_get(const Evas_Object *obj, int *r, int *g, int *b, int *a);
450
451/**
420 * @brief Set the file to be played in the Emotion object. 452 * @brief Set the file to be played in the Emotion object.
421 * 453 *
422 * @param obj The emotion object where the file is being loaded. 454 * @param obj The emotion object where the file is being loaded.