Class: Wui::Window
- Inherits:
-
Object
- Object
- Wui::Window
- Defined in:
- lib/wui.rb
Instance Method Summary collapse
Instance Method Details
#active(title) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/wui.rb', line 19 def active(title) setWindowHandle(title) checkHWND Wui.SetForegroundWindow(@hWnd) self end |
#setPos(x, y) ⇒ Object
26 27 28 29 30 |
# File 'lib/wui.rb', line 26 def setPos(x, y) checkHWND Wui.SetWindowPos(@hWnd, 0, x, y, 0, 0, 1) # SWP_NOSIZE self end |
#setSize(w, h) ⇒ Object
32 33 34 35 36 |
# File 'lib/wui.rb', line 32 def setSize(w, h) checkHWND Wui.SetWindowPos(@hWnd, 0, 0, 0, w, h, 2) # SWP_NOMOVE self end |