Class: Gtk::Window
- Inherits:
-
Object
- Object
- Gtk::Window
- Extended by:
- GLib::Deprecatable
- Defined in:
- lib/gtk3/window.rb,
lib/gtk3/deprecated.rb
Instance Method Summary collapse
-
#initialize(type = :toplevel) ⇒ Window
constructor
A new instance of Window.
- #initialize_raw ⇒ Object
Constructor Details
#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 |
Instance Method Details
#initialize_raw ⇒ Object
19 |
# File 'lib/gtk3/window.rb', line 19 alias_method :initialize_raw, :initialize |