/*
- * $Id: rb_evas_object.c 104 2004-08-29 15:38:46Z tilman $
+ * $Id: rb_evas_object.c 105 2004-08-29 15:45:48Z tilman $
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
return Qnil;
}
+/*
+ * call-seq:
+ * e.repeat_events? => true or false
+ *
+ * Returns true if <i>e</i> repeats events to EvasObjects that are
+ * below itself, else returns false.
+ */
+static VALUE c_repeat_events_get (VALUE self)
+{
+ GET_OBJ (self, RbEvasObject, e);
+
+ return evas_object_repeat_events_get (e->real) ? Qtrue : Qfalse;
+}
+
+/*
+ * call-seq:
+ * e.repeat_events(true or false)
+ *
+ * Sets whether <i>e</i> repeats events to EvasObjects that are
+ * below itself.
+ */
+static VALUE c_repeat_events_set (VALUE self, VALUE val)
+{
+ GET_OBJ (self, RbEvasObject, e);
+
+ CHECK_BOOL (val);
+
+ evas_object_repeat_events_set (e->real, val == Qtrue);
+
+ return Qnil;
+}
+
/*
* call-seq:
* e.raise => nil
rb_define_method (cEvasObject, "layer=", c_layer_set, 1);
rb_define_method (cEvasObject, "get_color", c_get_color, 0);
rb_define_method (cEvasObject, "set_color", c_set_color, 4);
- rb_define_method (cEvasObject, "pass_events?", c_pass_events_get, 0);
- rb_define_method (cEvasObject, "pass_events=", c_pass_events_set, 1);
+ rb_define_method (cEvasObject, "pass_events?",
+ c_pass_events_get, 0);
+ rb_define_method (cEvasObject, "pass_events=",
+ c_pass_events_set, 1);
+ rb_define_method (cEvasObject, "repeat_events?",
+ c_repeat_events_get, 0);
+ rb_define_method (cEvasObject, "repeat_events=",
+ c_repeat_events_set, 1);
rb_define_method (cEvasObject, "raise", c_raise, 0);
rb_define_method (cEvasObject, "lower", c_lower, 0);
rb_define_method (cEvasObject, "stack_above", c_stack_above, 1);