projects
/
ruby-evas.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Documentation arrived.
[ruby-evas.git]
/
src
/
rb_gradient.c
diff --git
a/src/rb_gradient.c
b/src/rb_gradient.c
index a59f051fc5dbae8b3204f77019a7d7bceaa2e564..2129e01235b8b96f7aa223042ebed2c9cde77983 100644
(file)
--- a/
src/rb_gradient.c
+++ b/
src/rb_gradient.c
@@
-1,5
+1,5
@@
/*
/*
- * $Id: rb_gradient.c 5
4 2004-08-09 10:51:39
Z tilman $
+ * $Id: rb_gradient.c 5
8 2004-08-10 14:10:02
Z tilman $
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
@@
-31,6
+31,12
@@
static void c_free (RbEvasObject *e)
c_evas_object_free (e, true);
}
c_evas_object_free (e, true);
}
+/*
+ * call-seq:
+ * Evas::Gradient.new(evas) => gradient
+ *
+ * Creates an Evas::Gradient object.
+ */
static VALUE c_new (VALUE klass, VALUE evas)
{
VALUE self, argv[1];
static VALUE c_new (VALUE klass, VALUE evas)
{
VALUE self, argv[1];
@@
-49,6
+55,12
@@
static VALUE c_new (VALUE klass, VALUE evas)
return self;
}
return self;
}
+/*
+ * call-seq:
+ * gradient.add_color(r, g, b, a, distance) => nil
+ *
+ * Adds a color to <i>gradient</i>.
+ */
static VALUE c_add_color (VALUE self, VALUE r, VALUE g, VALUE b,
VALUE a, VALUE distance)
{
static VALUE c_add_color (VALUE self, VALUE r, VALUE g, VALUE b,
VALUE a, VALUE distance)
{
@@
-67,6
+79,12
@@
static VALUE c_add_color (VALUE self, VALUE r, VALUE g, VALUE b,
return Qnil;
}
return Qnil;
}
+/*
+ * call-seq:
+ * gradient.clear_colors => nil
+ *
+ * Clears the colors of <i>gradient</i>.
+ */
static VALUE c_clear_colors (VALUE self)
{
GET_OBJ (self, RbEvasObject, e);
static VALUE c_clear_colors (VALUE self)
{
GET_OBJ (self, RbEvasObject, e);
@@
-76,6
+94,12
@@
static VALUE c_clear_colors (VALUE self)
return Qnil;
}
return Qnil;
}
+/*
+ * call-seq:
+ * gradient.angle => fixnum
+ *
+ * Returns the angle of <i>gradient</i>.
+ */
static VALUE c_angle_get (VALUE self)
{
GET_OBJ (self, RbEvasObject, e);
static VALUE c_angle_get (VALUE self)
{
GET_OBJ (self, RbEvasObject, e);
@@
-83,6
+107,12
@@
static VALUE c_angle_get (VALUE self)
return INT2FIX (evas_object_gradient_angle_get (e->real));
}
return INT2FIX (evas_object_gradient_angle_get (e->real));
}
+/*
+ * call-seq:
+ * gradient.angle(fixnum)
+ *
+ * Sets the angle of <i>gradient</i>.
+ */
static VALUE c_angle_set (VALUE self, VALUE val)
{
GET_OBJ (self, RbEvasObject, e);
static VALUE c_angle_set (VALUE self, VALUE val)
{
GET_OBJ (self, RbEvasObject, e);