Sha256: 537cc5917f51a3fad810849431fd2d54047a12f47d36ad2371d3d7b39df06a9f
Contents?: true
Size: 1.83 KB
Versions: 3
Compression:
Stored size: 1.83 KB
Contents
// -*- c++ -*- #pragma once #ifndef __REFLEX_RUBY_VIEW_H__ #define __REFLEX_RUBY_VIEW_H__ #include <rucy/rucy.h> #include <rucy/class.h> #include <rucy/extension.h> #include <rays/ruby/bounds.h> #include <rays/ruby/painter.h> #include <reflex/view.h> #include <reflex/ruby/key.h> #include <reflex/ruby/points.h> namespace Reflex { Rucy::Class view_class (); // class Reflex::View template <typename T> class RubyView : public Rucy::ClassWrapper<T> { public: virtual bool show () { SYM(show); return this->value.call(show); } virtual bool hide () { SYM(hide); return this->value.call(hide); } virtual void update (float dt) { SYM(update); this->value.call(update, dt); } virtual void draw (Painter* p, const Bounds& b) { SYM(draw); this->value.call(draw, Rucy::value(p), Rucy::value(b)); } virtual void moved (coord dx, coord dy) { SYM(moved); this->value.call(moved, dx, dy); } virtual void resized (coord dwidth, coord dheight) { SYM(resized); this->value.call(resized, dwidth, dheight); } virtual void key_down (const Key& key) { SYM(key_down); this->value.call(key_down, Rucy::value(key)); } virtual void key_up (const Key& key) { SYM(key_up); this->value.call(key_up, Rucy::value(key)); } virtual void points_down (const Points& points) { SYM(points_down); this->value.call(points_down, Rucy::value(points)); } virtual void points_up (const Points& points) { SYM(points_up); this->value.call(points_up, Rucy::value(points)); } virtual void points_moved (const Points& points) { SYM(points_moved); this->value.call(points_moved, Rucy::value(points)); } };// RubyView }// Reflex RUCY_WRAPPER_VALUE_FROM_TO(Reflex::View, Reflex::view_class()) #endif//EOH
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
reflexion-0.1.6 | include/reflex/ruby/view.h |
reflexion-0.1.5 | include/reflex/ruby/view.h |
reflexion-0.1.4 | include/reflex/ruby/view.h |