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

Version Path
reflexion-0.2.1 .doc/ext/reflex/screen.cpp
reflexion-0.2 .doc/ext/reflex/screen.cpp
reflexion-0.1.57 .doc/ext/reflex/screen.cpp
reflexion-0.1.56 .doc/ext/reflex/screen.cpp
reflexion-0.1.55 .doc/ext/reflex/screen.cpp
reflexion-0.1.54 .doc/ext/reflex/screen.cpp
reflexion-0.1.53 .doc/ext/reflex/screen.cpp
reflexion-0.1.52 .doc/ext/reflex/screen.cpp
reflexion-0.1.51 .doc/ext/reflex/screen.cpp
reflexion-0.1.50 .doc/ext/reflex/screen.cpp
reflexion-0.1.49 .doc/ext/reflex/screen.cpp
reflexion-0.1.48 .doc/ext/reflex/screen.cpp
reflexion-0.1.47 .doc/ext/reflex/screen.cpp
reflexion-0.1.46 .doc/ext/reflex/screen.cpp
reflexion-0.1.45 .doc/ext/reflex/screen.cpp
reflexion-0.1.44 .doc/ext/reflex/screen.cpp
reflexion-0.1.43 .doc/ext/reflex/screen.cpp
reflexion-0.1.42 .doc/ext/reflex/screen.cpp
reflexion-0.1.41 .doc/ext/reflex/screen.cpp