Sha256: 1954b8eb23e0f6e17cbcd9d5841b64cb09c6dc41e5393f4bab42b759e8c0a67f
Contents?: true
Size: 1.02 KB
Versions: 27
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> RUCY_DECLARE_WRAPPER_VALUE_FROM_TO(Reflex::Filter) 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 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
27 entries across 27 versions & 1 rubygems