X-Git-Url: http://git.code-monkey.de/?p=ruby-evas.git;a=blobdiff_plain;f=src%2Frb_polygon.c;h=9a8913c116ea010397a0318a67de27958373eebb;hp=8c4cc139af03a3052b4295fc26108a1918601538;hb=1f6059ba8be27832fc4b6f88c99548e39f4264cb;hpb=45ab448e73c15a66cc6e4968df7cfdcf894cf6fe
diff --git a/src/rb_polygon.c b/src/rb_polygon.c
index 8c4cc13..9a8913c 100644
--- a/src/rb_polygon.c
+++ b/src/rb_polygon.c
@@ -1,5 +1,5 @@
/*
- * $Id: rb_polygon.c 54 2004-08-09 10:51:39Z tilman $
+ * $Id: rb_polygon.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::Polygon.new(evas) => polygon
+ *
+ * Creates an new Evas::Polygon 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:
+ * polygon.add_point(x, y) => nil
+ *
+ * Adds a point to polygon.
+ */
static VALUE c_add_point (VALUE self, VALUE x, VALUE y)
{
GET_OBJ (self, RbEvasObject, e);
@@ -61,6 +73,12 @@ static VALUE c_add_point (VALUE self, VALUE x, VALUE y)
return Qnil;
}
+/*
+ * call-seq:
+ * polygon.clear_points => nil
+ *
+ * Clears the points of polygon.
+ */
static VALUE c_clear_points (VALUE self)
{
GET_OBJ (self, RbEvasObject, e);