Class: Gdk::EventButton
- Defined in:
- lib/knj/jruby-gtk2/eventbutton.rb,
lib/knj/ironruby-gtk2/gdk_eventbutton.rb
Instance Method Summary collapse
- #button ⇒ Object
-
#initialize(*paras) ⇒ EventButton
constructor
A new instance of EventButton.
- #time ⇒ Object
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 |