Method: Gtk::Window#initialize

Defined in:
lib/gtk3/window.rb

#initialize(type = :toplevel) ⇒ Window

Returns a new instance of Window.



20
21
22
23
24
25
26
27
# File 'lib/gtk3/window.rb', line 20

def initialize(type=:toplevel)
  if type.is_a?(String)
    initialize_raw(:toplevel)
    self.title = type
  else
    initialize_raw(type)
  end
end