Sha256: 4b0f3788648090b55bc9d00c98dae2e093ad063215394a6a93c443ad85b09e5b

Contents?: true

Size: 579 Bytes

Versions: 2

Compression:

Stored size: 579 Bytes

Contents

#ifndef SPYGLASS_COLOR_H_
#define SPYGLASS_COLOR_H_

#include "spyglass.h"

namespace Spyglass {

  SG_GEN_GET_OBJECT_FUNCTION(SG_GET_COLOR, cv::Scalar);

  namespace Color {
    void define_ruby_class();
    VALUE get_ruby_class();

    static VALUE rb_alloc(VALUE self);
    static void rb_free(cv::Scalar *color);
    static VALUE rb_initialize(int argc, VALUE *argv, VALUE self);
    static VALUE rb_get_color(VALUE self, VALUE index);
    static VALUE rb_is_zeros(VALUE self);
    static VALUE rb_to_a(VALUE self);

    VALUE from_cvscalar(cv::Scalar *color);
  }
}

#endif

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spyglass-0.0.5.1 ext/spyglass/color.h
spyglass-0.0.5 ext/spyglass/color.h