X-Git-Url: http://git.code-monkey.de/?p=ruby-evas.git;a=blobdiff_plain;f=src%2Frb_gradient.c;h=2129e01235b8b96f7aa223042ebed2c9cde77983;hp=a59f051fc5dbae8b3204f77019a7d7bceaa2e564;hb=1f6059ba8be27832fc4b6f88c99548e39f4264cb;hpb=45ab448e73c15a66cc6e4968df7cfdcf894cf6fe diff --git a/src/rb_gradient.c b/src/rb_gradient.c index a59f051..2129e01 100644 --- a/src/rb_gradient.c +++ b/src/rb_gradient.c @@ -1,5 +1,5 @@ /* - * $Id: rb_gradient.c 54 2004-08-09 10:51:39Z tilman $ + * $Id: rb_gradient.c 58 2004-08-10 14:10:02Z tilman $ * * 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); } +/* + * call-seq: + * Evas::Gradient.new(evas) => gradient + * + * Creates an Evas::Gradient object. + */ 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; } +/* + * call-seq: + * gradient.add_color(r, g, b, a, distance) => nil + * + * Adds a color to gradient. + */ 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; } +/* + * call-seq: + * gradient.clear_colors => nil + * + * Clears the colors of gradient. + */ 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; } +/* + * call-seq: + * gradient.angle => fixnum + * + * Returns the angle of gradient. + */ 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)); } +/* + * call-seq: + * gradient.angle(fixnum) + * + * Sets the angle of gradient. + */ static VALUE c_angle_set (VALUE self, VALUE val) { GET_OBJ (self, RbEvasObject, e);