Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_button.c ewl_button.h 


Log Message:
Additional controls for button internals.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_button.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -3 -r1.29 -r1.30
--- ewl_button.c        22 Feb 2006 04:53:30 -0000      1.29
+++ ewl_button.c        22 Feb 2006 18:16:41 -0000      1.30
@@ -323,10 +323,9 @@
 }
 
 /**
- * @param b: The button to set the content alignment
- * @param align: The new alignment for button contents
+ * @param b: The button to get the content alignment
  * @return Returns no value.
- * @brief Set the alignment of the contents of the button.
+ * @brief Gets the alignment of the contents of the button.
  */
 unsigned int
 ewl_button_alignment_get(Ewl_Button *b)
@@ -339,6 +338,41 @@
                        DLEVEL_STABLE);
 }
 
+/**
+ * @param b: The button to set the content fill policy
+ * @param align: The new fill policy for button contents
+ * @return Returns no value.
+ * @brief Set the fill policy of the contents of the button.
+ */
+void
+ewl_button_fill_policy_set(Ewl_Button *b, unsigned int fill)
+{
+       DENTER_FUNCTION(DLEVEL_STABLE);
+       DCHECK_PARAM_PTR("b", b);
+       DCHECK_TYPE("b", b, EWL_BUTTON_TYPE);
+
+       ewl_object_fill_policy_set(EWL_OBJECT(b->body), fill);
+
+       DLEAVE_FUNCTION(DLEVEL_STABLE);
+}
+
+/**
+ * @param b: The button to set the content fill policy
+ * @param align: The new fill policy for button contents
+ * @return Returns no value.
+ * @brief Set the fill policy of the contents of the button.
+ */
+unsigned int
+ewl_button_fill_policy_get(Ewl_Button *b)
+{
+       DENTER_FUNCTION(DLEVEL_STABLE);
+       DCHECK_PARAM_PTR_RET("b", b, 0);
+       DCHECK_TYPE_RET("b", b, EWL_BUTTON_TYPE, 0);
+
+       DRETURN_INT(ewl_object_fill_policy_get(EWL_OBJECT(b->body)),
+                       DLEVEL_STABLE);
+}
+
 void
 ewl_button_cb_key_down(Ewl_Widget *w, void *ev, void *data __UNUSED__)
 {
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_button.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- ewl_button.h        22 Feb 2006 04:53:30 -0000      1.13
+++ ewl_button.h        22 Feb 2006 18:16:41 -0000      1.14
@@ -55,6 +55,8 @@
 void             ewl_button_image_scale_to(Ewl_Button *b, int width, int 
height);
 unsigned int     ewl_button_alignment_get(Ewl_Button *b);
 void             ewl_button_alignment_set(Ewl_Button *b, unsigned int align);
+unsigned int     ewl_button_fill_policy_get(Ewl_Button *b);
+void             ewl_button_fill_policy_set(Ewl_Button *b, unsigned int fill);
 
 /*
  * Internal




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to