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_polygon.c
diff --git
a/src/rb_polygon.c
b/src/rb_polygon.c
index 8c4cc139af03a3052b4295fc26108a1918601538..9a8913c116ea010397a0318a67de27958373eebb 100644
(file)
--- a/
src/rb_polygon.c
+++ b/
src/rb_polygon.c
@@
-1,5
+1,5
@@
/*
/*
- * $Id: rb_polygon.c 5
4 2004-08-09 10:51:39
Z tilman $
+ * $Id: rb_polygon.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::Polygon.new(evas) => polygon
+ *
+ * Creates an new Evas::Polygon 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:
+ * 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);
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;
}
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);
static VALUE c_clear_points (VALUE self)
{
GET_OBJ (self, RbEvasObject, e);