Module: Windows::Window
- Defined in:
- lib/windows/window.rb
Constant Summary collapse
- SW_HIDE =
ShowWindow() constants
0- SW_SHOWNORMAL =
1- SW_NORMAL =
1- SW_SHOWMINIMIZED =
2- SW_SHOWMAXIMIZED =
3- SW_MAXIMIZE =
3- SW_SHOWNOACTIVATE =
4- SW_SHOW =
5- SW_MINIMIZE =
6- SW_SHOWMINNOACTIVE =
7- SW_SHOWNA =
8- SW_RESTORE =
9- SW_SHOWDEFAULT =
10- SW_FORCEMINIMIZE =
11- SW_MAX =
11- GetClientRect =
Win32API.new('user32', 'GetClientRect', 'LP', 'I')
- GetForegroundWindow =
Win32API.new('user32', 'GetForegroundWindow', 'V', 'L')
- GetWindowRect =
Win32API.new('user32', 'GetWindowRect', 'LP', 'I')
Instance Method Summary collapse
- #GetClientRect(hwnd, rect) ⇒ Object
- #GetForegroundWindow ⇒ Object
- #GetWindowRect(hwnd, rect) ⇒ Object
Instance Method Details
#GetClientRect(hwnd, rect) ⇒ Object
26 27 28 |
# File 'lib/windows/window.rb', line 26 def GetClientRect(hwnd, rect) GetClientRect.call(hwnd, rect) != 0 end |
#GetForegroundWindow ⇒ Object
30 31 32 |
# File 'lib/windows/window.rb', line 30 def GetForegroundWindow GetForegroundWindow.call end |
#GetWindowRect(hwnd, rect) ⇒ Object
34 35 36 |
# File 'lib/windows/window.rb', line 34 def GetWindowRect(hwnd, rect) GetWindowRect.call(hwnd, rect) != 0 end |