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)
| 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 | """ |
no test coverage detected