include/reflex/ruby/view.h in reflexion-0.1.32 vs include/reflex/ruby/view.h in reflexion-0.1.33

- old
+ new

@@ -8,10 +8,13 @@ #include <rucy/extension.h> #include <reflex/view.h> #include <reflex/ruby/event.h> +RUCY_DECLARE_WRAPPER_VALUE_FROM_TO(Reflex::View) + + namespace Reflex { Rucy::Class view_class (); @@ -234,10 +237,19 @@ this->value.call(on_timer, Rucy::value(e)); else Super::on_timer(e); } + virtual bool will_contact (View* v) + { + RUCY_SYM_Q(will_contact); + if (this->is_overridable()) + return this->value.call(will_contact, Rucy::value(v)); + else + return Super::will_contact(v); + } + virtual void on_contact (ContactEvent* e) { RUCY_SYM_B(on_contact); if (this->is_overridable()) this->value.call(on_contact, Rucy::value(e)); @@ -265,12 +277,9 @@ };// RubyView }// Reflex - - -RUCY_DECLARE_WRAPPER_VALUE_FROM_TO(Reflex::View) namespace Rucy {