translate_coordinates


Description:

public bool translate_coordinates (Surface to, double x, double y)

Translates the given coordinates from being relative to the this surface to being relative to the to surface.

Note that this only works if to and this are popups or transient-for to the same toplevel ( directly or indirectly).

Parameters:

this

the origin surface

to

the target surface

x

coordinates to translate

y

coordinates to translate

Returns:

true if the coordinates were successfully translated