class Gtk::Window
Public Class Methods
new(title = "")
click to toggle source
# File lib/knj/ironruby-gtk2/window.rb, line 6 def initialize(title = "") if Gtk.takeob @ob = Gtk.takeob Gtk.takeob = nil else splitted = self.class.to_s.split("::") @ob = RealGtk.const_get(splitted.last).new(title) end if !@ob raise "Object was not spawned: #{self.class.to_s}" end end
Public Instance Methods
add(widget)
click to toggle source
# File lib/knj/ironruby-gtk2/window.rb, line 20 def add(widget) @ob.add(widget.ob) end
destroy()
click to toggle source
# File lib/knj/jruby-gtk2/window.rb, line 4 def destroy @ob.hide #destroy does not exist in the Java-version? - knj end
set_frame_dimensions(arg1, arg2, arg3, arg4)
click to toggle source
# File lib/knj/jruby-gtk2/window.rb, line 8 def set_frame_dimensions(arg1, arg2, arg3, arg4) @ob.border_width = arg1 end