Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src
Modified Files:
ewl_spinner.c ewl_spinner.h
Log Message:
- break ewl_spinner api
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_spinner.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -3 -r1.57 -r1.58
--- ewl_spinner.c 18 Aug 2004 03:15:20 -0000 1.57
+++ ewl_spinner.c 18 Aug 2004 03:40:45 -0000 1.58
@@ -107,7 +107,7 @@
*
* Sets the current value of the spinner @a s to @a value.
*/
-void ewl_spinner_set_value(Ewl_Spinner * s, double value)
+void ewl_spinner_value_set(Ewl_Spinner * s, double value)
{
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR("s", s);
@@ -122,7 +122,7 @@
* @return Returns the current value in @a s on success, 0.0 on failure.
* @brief Get the current value of a spinner widget
*/
-double ewl_spinner_get_value(Ewl_Spinner * s)
+double ewl_spinner_value_get(Ewl_Spinner * s)
{
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR_RET("s", s, 0.00);
@@ -138,7 +138,7 @@
*
* Changes the digits displayed by @a s to @a digits.
*/
-void ewl_spinner_set_digits(Ewl_Spinner * s, unsigned char digits)
+void ewl_spinner_digits_set(Ewl_Spinner * s, unsigned char digits)
{
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR("s", s);
@@ -154,7 +154,7 @@
* @brief Retrieves the minimum value for the spinner.
* @return Returns the currently set minimum value for the specified spinner.
*/
-double ewl_spinner_get_min_val(Ewl_Spinner *s)
+double ewl_spinner_min_val_get(Ewl_Spinner *s)
{
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR_RET("s", s, 0.0);
@@ -170,7 +170,7 @@
*
* Sets the smallest value that @a s can obtain to @a val.
*/
-void ewl_spinner_set_min_val(Ewl_Spinner * s, double val)
+void ewl_spinner_min_val_set(Ewl_Spinner * s, double val)
{
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR("s", s);
@@ -186,7 +186,7 @@
* @brief Retrieves the maximum value for the spinner.
* @return Returns the currently set maximum value for the specified spinner.
*/
-double ewl_spinner_get_max_val(Ewl_Spinner *s)
+double ewl_spinner_max_val_get(Ewl_Spinner *s)
{
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR_RET("s", s, 100.0);
@@ -202,7 +202,7 @@
*
* Sets the largest value that @a s can obtain to @a val.
*/
-void ewl_spinner_set_max_val(Ewl_Spinner * s, double val)
+void ewl_spinner_max_val_set(Ewl_Spinner * s, double val)
{
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR("s", s);
@@ -222,7 +222,7 @@
* Changes the increment that @a s changes by with each click of it's spinner
* buttons to @a step.
*/
-void ewl_spinner_set_step(Ewl_Spinner * s, double step)
+void ewl_spinner_step_set(Ewl_Spinner * s, double step)
{
Ewl_Widget *w;
@@ -566,7 +566,7 @@
s = EWL_SPINNER(data);
dt = ecore_time_get() - s->start_time;
- value = ewl_spinner_get_value(s);
+ value = ewl_spinner_value_get(s);
range = s->max_val - s->min_val;
/*
@@ -599,7 +599,7 @@
printf("\tDelay: %g\n", tmpt);
value += (double)(s->direction) * ((1 - exp(-dt)) + tmpt);
- ewl_spinner_set_value(s, value);
+ ewl_spinner_value_set(s, value);
return 1;
}
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_spinner.h,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -3 -r1.24 -r1.25
--- ewl_spinner.h 31 May 2004 05:52:51 -0000 1.24
+++ ewl_spinner.h 18 Aug 2004 03:40:46 -0000 1.25
@@ -48,14 +48,14 @@
Ewl_Widget *ewl_spinner_new(void);
int ewl_spinner_init(Ewl_Spinner * s);
-void ewl_spinner_set_value(Ewl_Spinner * s, double value);
-double ewl_spinner_get_value(Ewl_Spinner * s);
-void ewl_spinner_set_digits(Ewl_Spinner * s, unsigned char digits);
-double ewl_spinner_get_min_val(Ewl_Spinner * s);
-void ewl_spinner_set_min_val(Ewl_Spinner * s, double val);
-double ewl_spinner_get_max_val(Ewl_Spinner * s);
-void ewl_spinner_set_max_val(Ewl_Spinner * s, double val);
-void ewl_spinner_set_step(Ewl_Spinner * s, double step);
+void ewl_spinner_value_set(Ewl_Spinner * s, double value);
+double ewl_spinner_value_get(Ewl_Spinner * s);
+void ewl_spinner_digits_set(Ewl_Spinner * s, unsigned char digits);
+double ewl_spinner_min_val_get(Ewl_Spinner * s);
+void ewl_spinner_min_val_set(Ewl_Spinner * s, double val);
+double ewl_spinner_max_val_get(Ewl_Spinner * s);
+void ewl_spinner_max_val_set(Ewl_Spinner * s, double val);
+void ewl_spinner_step_set(Ewl_Spinner * s, double step);
/*
* Internally used callbacks, override at your own risk.
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs