Sha256: c79c7a580992d513e8affb04b04379a3f3ffcf1daf315354fedbac70492bb7ac

Contents?: true

Size: 920 Bytes

Versions: 1

Compression:

Stored size: 920 Bytes

Contents

#ifndef SPYGLASS_WINDOW_H_
#define SPYGLASS_WINDOW_H_

#include "spyglass.h"

namespace Spyglass {

  typedef struct window_data {
    char *title;
    VALUE robj;
  } window_data;

  SG_GEN_GET_OBJECT_FUNCTION(SG_GET_WINDOW, window_data);

  namespace GUI {
    namespace Window {
      void define_ruby_class();
      VALUE get_ruby_class();

      static VALUE rb_alloc(VALUE self);
      static void rb_free(window_data *window);
      static VALUE rb_initialize(VALUE self, VALUE title);
      static VALUE rb_hide(VALUE self);
      static VALUE rb_move(VALUE self, VALUE x, VALUE y);
      static VALUE rb_on_click(VALUE self);
      static VALUE rb_on_double_click(VALUE self);
      static VALUE rb_on_right_click(VALUE self);
      static VALUE rb_on_move(VALUE self);
      static VALUE rb_show(VALUE self, VALUE image);
      static VALUE rb_get_title(VALUE self);
    }
  }
}


#endif // SPYGLASS_WINDOW_H_

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spyglass-0.0.5.1 ext/spyglass/window.h