Class: Gtk::Window
- Inherits:
-
Object
- Object
- Gtk::Window
- Defined in:
- lib/merrol/gtk/window.rb
Instance Method Summary collapse
Instance Method Details
#default_position=(coords) ⇒ Object
7 8 9 10 |
# File 'lib/merrol/gtk/window.rb', line 7 def default_position= coords coords = coords.split(',') move coords[0].to_i, coords[1].to_i end |
#default_size=(size) ⇒ Object
12 13 14 15 |
# File 'lib/merrol/gtk/window.rb', line 12 def default_size= size size = size.split(',') set_default_size size[0].to_i, size[1].to_i end |
#icon=(path) ⇒ Object
3 4 5 |
# File 'lib/merrol/gtk/window.rb', line 3 def icon= path set_icon File.app_relative(path) end |