Documentation arrived.
[ruby-evas.git] / src / rb_polygon.c
index 8c4cc139af03a3052b4295fc26108a1918601538..9a8913c116ea010397a0318a67de27958373eebb 100644 (file)
@@ -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 <i>polygon</i>.
+ */
 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 <i>polygon</i>.
+ */
 static VALUE c_clear_points (VALUE self)
 {
        GET_OBJ (self, RbEvasObject, e);