Class: Gtk::Window

Inherits:
Bin show all
Defined in:
lib/gtk/window.rb

Instance Attribute Summary

Attributes inherited from GObject

#native, #type

Instance Method Summary collapse

Methods inherited from Widget

#get_style_context

Methods inherited from GObject

#method_missing, #signal_connect, type_register, #unref

Constructor Details

#initialize(type = :toplevel) ⇒ Window

Returns a new instance of Window.



10
11
12
13
14
# File 'lib/gtk/window.rb', line 10

def initialize(type = :toplevel)
  @native = Lib.gtk_window_new(
    WindowType[type]
  )
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Gtk::GObject