Sha256: a739a537117b828cb82dbff3ef158e694dcbca86475ef510a948093071370897
Contents?: true
Size: 1.05 KB
Versions: 5
Compression:
Stored size: 1.05 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_EXPORT, Reflex::Filter) namespace Reflex { REFLEX_EXPORT 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
5 entries across 5 versions & 1 rubygems