MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / get_client_rect

Method get_client_rect

pydevd_attach_to_process/winappdbg/window.py:353–365  ·  view source on GitHub ↗

Get the window's client area coordinates in the desktop. @rtype: L{win32.Rect} @return: Rectangle occupied by the window's client area in the desktop. @raise WindowsError: An error occured while processing this request.

(self)

Source from the content-addressed store, hash-verified

351 return win32.GetWindowRect(self.get_handle())
352
353 def get_client_rect(self):
354 """
355 Get the window's client area coordinates in the desktop.
356
357 @rtype: L{win32.Rect}
358 @return: Rectangle occupied by the window's client area in the desktop.
359
360 @raise WindowsError: An error occured while processing this request.
361 """
362 cr = win32.GetClientRect(self.get_handle())
363 cr.left, cr.top = self.client_to_screen(cr.left, cr.top)
364 cr.right, cr.bottom = self.client_to_screen(cr.right, cr.bottom)
365 return cr
366
367 # XXX TODO
368 # * properties x, y, width, height

Callers

nothing calls this directly

Calls 2

get_handleMethod · 0.95
client_to_screenMethod · 0.95

Tested by

no test coverage detected