Enlightenment CVS committal Author : werkt Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src Modified Files: ewl_object.c ewl_object.h Log Message: Made ewl_object_get_alignment and ewl_object_get_fill_policy real functions. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_object.c,v retrieving revision 1.51 retrieving revision 1.52 diff -u -3 -r1.51 -r1.52 --- ewl_object.c 9 Apr 2004 06:15:31 -0000 1.51 +++ ewl_object.c 21 Jul 2004 18:59:21 -0000 1.52 @@ -1301,6 +1301,34 @@ } /** + * @param o: the parameter to retrieve the current value of object alignment + * @return Returns the current setting of the object alignment for @a o. + * @brief Retrieves the current setting of the object alignment for @a o. + */ +unsigned int +ewl_object_get_alignment(Ewl_Object *o) +{ + DENTER_FUNCTION(DLEVEL_STABLE); + DCHECK_PARAM_PTR("o", o); + + DRETURN_INT(ewl_object_get_flags(o, EWL_FLAGS_ALIGN_MASK), DLEVEL_STABLE); +} + +/** + * @param o: the parameter to retrieve the current value of object fill policy + * @return Returns the current setting of the object fill policy for @a o. + * @brief Retrieves the current setting of the object fill policy for @a o. + */ +unsigned int +ewl_object_get_fill_policy(Ewl_Object *o) +{ + DENTER_FUNCTION(DLEVEL_STABLE); + DCHECK_PARAM_PTR("o", o); + + DRETURN_INT(ewl_object_get_flags(o, EWL_FLAGS_FILL_MASK), DLEVEL_STABLE); +} + +/** * @param o: the parameter to retrieve the current value of object flags * @param mask: get only the flags specified in mask * @return Returns the current setting of the object flags for @a o. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_object.h,v retrieving revision 1.40 retrieving revision 1.41 diff -u -3 -r1.40 -r1.41 --- ewl_object.h 17 Feb 2004 05:18:38 -0000 1.40 +++ ewl_object.h 21 Jul 2004 18:59:21 -0000 1.41 @@ -133,30 +133,13 @@ inline int ewl_object_get_maximum_w(Ewl_Object * o); inline int ewl_object_get_maximum_h(Ewl_Object * o); +unsigned int ewl_object_get_alignment(Ewl_Object * o); inline void ewl_object_set_alignment(Ewl_Object * o, unsigned int align); void ewl_object_place(Ewl_Object *o, int x, int y, int w, int h); -/** - * @def ewl_object_get_alignment(o) - * @param o: the object to retrieve the alignment value - * @return Returns the value stored in the objects alignment attribute. - * @brief Retrieve the value of the objects alignment - */ -#define ewl_object_get_alignment(o) \ - ewl_object_get_flags(o, EWL_FLAGS_ALIGN_MASK) - - +unsigned int ewl_object_get_fill_policy(Ewl_Object * o); inline void ewl_object_set_fill_policy(Ewl_Object * o, unsigned int fill); -/** - * @def ewl_object_get_fill_policy(o) - * @param o: the object to retrieve the fill policy value - * @return Returns the value stored in the objects fill policy attribute. - * @brief Retrieve the value of the objects fill policy - */ -#define ewl_object_get_fill_policy(o) \ - ewl_object_get_flags(o, EWL_FLAGS_FILL_MASK) - /* * Padding setting and retrieval functions. */ ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ enlightenment-cvs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs