Class: Gtk::Image
- Defined in:
- lib/knj/jruby-gtk2/image.rb,
lib/knj/ironruby-gtk2/image.rb
Instance Method Summary collapse
-
#initialize(*paras) ⇒ Image
constructor
A new instance of Image.
Constructor Details
#initialize(*paras) ⇒ Image
Returns a new instance of Image.
2 3 4 5 6 7 8 9 |
# File 'lib/knj/jruby-gtk2/image.rb', line 2 def initialize(arg1, arg2) if Gtk.takeob @ob = Gtk.takeob Gtk.takeob = nil else @ob = Gtk.evalob("org.gnome.gtk.Image").new(arg1, arg2) end end |