Module: Builder::Gtk

Defined in:
lib/gtkbuilder.rb,
lib/proxies/box.rb,
lib/proxies/layout.rb,
lib/proxies/window.rb

Defined Under Namespace

Modules: LayoutProxy Classes: BoxProxy, WindowProxy

Class Method Summary collapse

Class Method Details

.new(*args, &block) ⇒ Object

Defines a new Gtk window

Parameters:

  • block

    A block that will be passed a builder proxy object

Returns:

  • the created window



8
9
10
11
12
# File 'lib/gtkbuilder.rb', line 8

def self.new(*args, &block)
  proxy = Builder::Gtk::WindowProxy.new(*args)
  block.call(proxy) if block
  return proxy.widget
end