Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_image.c ewl_image.h 


Log Message:
Able to retrieve proportional setting on an image.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_image.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -3 -r1.28 -r1.29
--- ewl_image.c 9 Mar 2006 04:54:22 -0000       1.28
+++ ewl_image.c 10 Mar 2006 07:16:27 -0000      1.29
@@ -267,6 +267,21 @@
 }
 
 /**
+ * @param i: the image to get the proportional setting value
+ * @return Returns TRUE if the image is forced proportional, FALSE otherwise.
+ * @brief Get boolean to determine how to scale
+ */
+char
+ewl_image_proportional_get(Ewl_Image *i)
+{
+       DENTER_FUNCTION(DLEVEL_STABLE);
+       DCHECK_PARAM_PTR_RET("i", i, FALSE);
+       DCHECK_TYPE_RET("i", i, EWL_IMAGE_TYPE, FALSE);
+
+       DRETURN_INT(i->proportional, DLEVEL_STABLE);
+}
+
+/**
  * @param i: the image to scale
  * @param wp: the percentage to scale width
  * @param hp: the percentage to scale height
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_image.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- ewl_image.h 9 Mar 2006 04:37:58 -0000       1.16
+++ ewl_image.h 10 Mar 2006 07:16:27 -0000      1.17
@@ -73,6 +73,7 @@
 const char     *ewl_image_file_key_get(Ewl_Image *i);
 
 void            ewl_image_proportional_set(Ewl_Image *i, char p);
+char            ewl_image_proportional_get(Ewl_Image *i);
 void            ewl_image_scale_set(Ewl_Image *i, double wp, double hp);
 void            ewl_image_scale_get(Ewl_Image *i, double *wp, double *hp);
 void            ewl_image_size_set(Ewl_Image *i, int w, int h);




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to