Sha256: b27f6bc50bfb8dd43f81f0116c02b7a6ad6acd4d26d2e9818678158b42d71059
Contents?: true
Size: 1.02 KB
Versions: 4
Compression:
Stored size: 1.02 KB
Contents
// -*- c++ -*- #pragma once #ifndef __REFLEX_RUBY_FILTER_H__ #define __REFLEX_RUBY_FILTER_H__ #include <rucy/class.h> #include <rucy/extension.h> #include <rays/ruby/image.h> #include <rays/ruby/painter.h> #include <reflex/filter.h> namespace Reflex { Rucy::Class filter_class (); // class Reflex::Filter template <typename T> class RubyFilter : public Rucy::ClassWrapper<T> { typedef Rucy::ClassWrapper<T> Super; public: virtual void apply (Painter* painter, const Image& image) const { RUCY_SYM(apply); if (this->is_overridable()) this->value.call(apply, Rucy::value(painter), Rucy::value(image)); else Super::apply(painter, image); } };// RubyFilter }// Reflex RUCY_DECLARE_WRAPPER_VALUE_FROM_TO(Reflex::Filter) namespace Rucy { template <> inline Class get_ruby_class<Reflex::Filter> () { return Reflex::filter_class(); } inline Value value (Reflex::Filter::Ref& ref, Value klass = Reflex::filter_class()) { return value(ref.get(), klass); } }// Rucy #endif//EOH
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
reflexion-0.1.32 | include/reflex/ruby/filter.h |
reflexion-0.1.31 | include/reflex/ruby/filter.h |
reflexion-0.1.30 | include/reflex/ruby/filter.h |
reflexion-0.1.29 | include/reflex/ruby/filter.h |