Class: Gtk::VBox
- Defined in:
- lib/knj/jruby-gtk2/vbox.rb,
lib/knj/ironruby-gtk2/vbox.rb
Instance Method Summary collapse
-
#initialize ⇒ VBox
constructor
A new instance of VBox.
- #pack_start(widget, arg1 = false, arg2 = false) ⇒ Object
Constructor Details
#initialize ⇒ VBox
Returns a new instance of VBox.
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/knj/jruby-gtk2/vbox.rb', line 2 def initialize if Gtk.takeob @ob = Gtk.takeob Gtk.takeob = nil else splitted = self.class.to_s.split("::") javaname = "org.gnome." + splitted.first.downcase + "." + splitted.last @ob = Gtk.evalob(javaname).new(false, 0) end end |
Instance Method Details
#pack_start(widget, arg1 = false, arg2 = false) ⇒ Object
2 3 4 |
# File 'lib/knj/ironruby-gtk2/vbox.rb', line 2 def pack_start(, arg1 = false, arg2 = false) @ob.PackStart(.ob) end |