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

Method client_to_screen

pydevd_attach_to_process/winappdbg/window.py:381–400  ·  view source on GitHub ↗

Translates window client coordinates to screen coordinates. @note: This is a simplified interface to some of the functionality of the L{win32.Point} class. @see: {win32.Point.client_to_screen} @type x: int @param x: Horizontal coordinate.

(self, x, y)

Source from the content-addressed store, hash-verified

379 # ------------------------------------------------------------------------------
380
381 def client_to_screen(self, x, y):
382 """
383 Translates window client coordinates to screen coordinates.
384
385 @note: This is a simplified interface to some of the functionality of
386 the L{win32.Point} class.
387
388 @see: {win32.Point.client_to_screen}
389
390 @type x: int
391 @param x: Horizontal coordinate.
392 @type y: int
393 @param y: Vertical coordinate.
394
395 @rtype: tuple( int, int )
396 @return: Translated coordinates in a tuple (x, y).
397
398 @raise WindowsError: An error occured while processing this request.
399 """
400 return tuple(win32.ClientToScreen(self.get_handle(), (x, y)))
401
402 def screen_to_client(self, x, y):
403 """

Callers 1

get_client_rectMethod · 0.95

Calls 1

get_handleMethod · 0.95

Tested by

no test coverage detected