Sha256: a4ba163b076d2e7b3f074196d128e38720de851b7fb9dd51debf06e0c90fec2e
Contents?: true
Size: 778 Bytes
Versions: 19
Compression:
Stored size: 778 Bytes
Contents
#include "reflex/ruby/screen.h" #include <rays/ruby/bounds.h> #include "defs.h" RUCY_DEFINE_VALUE_FROM_TO(Reflex::Screen) #define THIS to<Reflex::Screen*>(self) #define CHECK RUCY_CHECK_OBJECT(Reflex::Screen, self) static VALUE alloc(VALUE klass) { Reflex::reflex_error(__FILE__, __LINE__, "can not instantiate Screen class."); } static VALUE get_frame(VALUE self) { CHECK; return value(THIS->frame()); } static Class cScreen; void Init_reflex_screen () { Module mReflex = rb_define_module("Reflex"); cScreen = rb_define_class_under(mReflex, "Screen", rb_cObject); rb_define_alloc_func(cScreen, alloc); rb_define_method(cScreen, "frame", RUBY_METHOD_FUNC(get_frame), 0); } namespace Reflex { Class screen_class () { return cScreen; } }// Reflex
Version data entries
19 entries across 19 versions & 1 rubygems