Method
GtkWidgettranslate_coordinates
Declaration [src]
gboolean
gtk_widget_translate_coordinates (
GtkWidget* src_widget,
GtkWidget* dest_widget,
gint src_x,
gint src_y,
gint* dest_x,
gint* dest_y
)
Description [src]
Translate coordinates relative to src_widget
’s allocation to coordinates
relative to dest_widget
’s allocations. In order to perform this
operation, both widgets must be realized, and must share a common toplevel.
Parameters
dest_widget
-
Type:
GtkWidget
A
GtkWidget
.The data is owned by the caller of the method. src_x
-
Type:
gint
X position relative to
src_widget
. src_y
-
Type:
gint
Y position relative to
src_widget
. dest_x
-
Type:
gint*
Location to store X position relative to
dest_widget
.The argument will be set by the function. The argument can be NULL
. dest_y
-
Type:
gint*
Location to store Y position relative to
dest_widget
.The argument will be set by the function. The argument can be NULL
.