Method: XDo::Window#resize
- Defined in:
- lib/x_do/window.rb
#resize(width, height, use_hints = false) ⇒ Object
Resizes this window.
Args:
width:: the new window's width
height:: the new window's height
use_hints:: if false, width and height are specified in pixels; otherwise,
the unit is relative to window size hints
89 90 91 92 93 94 95 96 97 |
# File 'lib/x_do/window.rb', line 89 def resize(width, height, use_hints = false) old_size = self.size return_value = resize_async width, height, use_hints 100.times do break unless self.size == old_size sleep 0.01 end return_value end |