Class: Gtk::HBox
Instance Method Summary collapse
-
#initialize(homogeneous = false, spacing = 0) ⇒ HBox
constructor
A new instance of HBox.
Constructor Details
#initialize(homogeneous = false, spacing = 0) ⇒ HBox
Returns a new instance of HBox.
2 3 4 5 6 7 8 9 |
# File 'lib/knj/jruby-gtk2/hbox.rb', line 2 def initialize(homogeneous = false, spacing = 0) if Gtk.takeob @ob = Gtk.takeob Gtk.takeob = nil else @ob = Gtk.evalob("org.gnome.gtk.HBox").new(homogeneous, spacing) end end |