Package winappdbg :: Package win32 :: Module user32 :: Class Point
[hide private]
[frames] | no frames]

Class Point

source code


Python wrapper over the POINT class.

Instance Methods [hide private]
 
__init__(self, x=0, y=0)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__iter__(self) source code
 
__len__(self) source code
 
__getitem__(self, index) source code
 
__setitem__(self, index, value) source code
Point
screen_to_client(self, hWnd)
Translates window screen coordinates to client coordinates.
source code
Point
client_to_screen(self, hWnd)
Translates window client coordinates to screen coordinates.
source code
Point
translate(self, hWndFrom=0, hWndTo=0)
Translate coordinates from one window to another.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
int x
Horizontal coordinate
int y
Vertical coordinate
Properties [hide private]
  _as_parameter_
Compatibility with ctypes.

Inherited from object: __class__

Method Details [hide private]

__init__(self, x=0, y=0)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • x (int) - Horizontal coordinate
  • y (int) - Vertical coordinate
Overrides: object.__init__

See Also: POINT

screen_to_client(self, hWnd)

source code 

Translates window screen coordinates to client coordinates.

Parameters:
Returns: Point
New object containing the translated coordinates.

client_to_screen(self, hWnd)

source code 

Translates window client coordinates to screen coordinates.

Parameters:
Returns: Point
New object containing the translated coordinates.

translate(self, hWndFrom=0, hWndTo=0)

source code 

Translate coordinates from one window to another.

Parameters:
  • hWndFrom (int or HWND or system.Window) - Window handle to translate from. Use HWND_DESKTOP for screen coordinates.
  • hWndTo (int or HWND or system.Window) - Window handle to translate to. Use HWND_DESKTOP for screen coordinates.
Returns: Point
New object containing the translated coordinates.

Note: To translate multiple points it's more efficient to use the MapWindowPoints function instead.

See Also: client_to_screen, screen_to_client


Property Details [hide private]

_as_parameter_

Compatibility with ctypes. Allows passing transparently a Point object to an API call.

Get Method:
unreachable._as_parameter_(self) - Compatibility with ctypes.