Class: Gdk::EventButton

Inherits:
Object show all
Defined in:
lib/knj/jruby-gtk2/eventbutton.rb,
lib/knj/ironruby-gtk2/gdk_eventbutton.rb

Instance Method Summary collapse

Constructor Details

#initialize(*paras) ⇒ EventButton

Returns a new instance of EventButton.



2
3
4
5
6
7
8
9
10
11
12
# File 'lib/knj/jruby-gtk2/eventbutton.rb', line 2

def initialize(eventtype)
  if Gtk.takeob
    @ob = Gtk.takeob
    Gtk.takeob = nil
  else
    splitted = self.class.to_s.split("::")
    classname =  splitted[splitted.length - 1]
    class_spawn = Gtk.evalob("org.gnome.gdk." + classname)
    #@ob = class_spawn.new
  end
end

Instance Method Details

#buttonObject



14
15
16
# File 'lib/knj/jruby-gtk2/eventbutton.rb', line 14

def button
  return 2
end

#timeObject



18
19
20
# File 'lib/knj/jruby-gtk2/eventbutton.rb', line 18

def time
  return 0
end