class Gtk::VBox

Public Class Methods

new() click to toggle source
# 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

Public Instance Methods

pack_start(widget, arg1 = false, arg2 = false) click to toggle source
# File lib/knj/ironruby-gtk2/vbox.rb, line 2
def pack_start(widget, arg1 = false, arg2 = false)
  @ob.PackStart(widget.ob)
end