Class: Gtk::Window
- Defined in:
- lib/gtk/window.rb
Instance Attribute Summary
Attributes inherited from GObject
Instance Method Summary collapse
-
#initialize(type = :toplevel) ⇒ Window
constructor
A new instance of Window.
Methods inherited from Widget
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