/*
- * $Id: rb_esmart_container.c 217 2005-02-10 14:24:57Z tilman $
+ * $Id: rb_esmart_container.c 218 2005-02-10 14:53:47Z tilman $
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
return ary;
}
+static VALUE c_elements_length_get (VALUE self)
+{
+ double l;
+
+ GET_OBJ (self, RbEvasObject, e);
+
+ l = esmart_container_elements_length_get (e->real);
+
+ return rb_float_new (l);
+}
+
+static VALUE c_elements_orig_length_get (VALUE self)
+{
+ double l;
+
+ GET_OBJ (self, RbEvasObject, e);
+
+ l = esmart_container_elements_orig_length_get (e->real);
+
+ return rb_float_new (l);
+}
+
static VALUE c_direction_get (VALUE self)
{
GET_OBJ (self, RbEvasObject, e);
rb_define_method (c, "prepend_element", c_prepend_element, 1);
rb_define_method (c, "remove_element", c_remove_element, 1);
rb_define_method (c, "elements", c_elements_get, 0);
+ rb_define_method (c, "elements_length", c_elements_length_get, 0);
+ rb_define_method (c, "elements_orig_length",
+ c_elements_orig_length_get, 0);
rb_define_method (c, "scroll", c_scroll, 1);
rb_define_const (c, "HORIZONTAL",