compute_point


Description:

public bool compute_point (Widget target, Point point, out Point out_point)

Translates the given point in this's coordinates to coordinates in target’s coordinate system.

In order to perform this operation, both widgets must share a a common ancestor. If that is not the case, out_point is set to (0, 0) and false is returned.

Parameters:

this

the widget to query

target

the widget to transform into

point

a point in this's coordinate system

out_point

set to the corresponding coordinates in target's coordinate system

Returns:

true if src_widget and dest_widget have a common ancestor, false otherwise