gboolean gtk_widget_compute_bounds ( GtkWidget* widget, GtkWidget* target, graphene_rect_t* out_bounds )
Computes the bounds for
widget in the coordinate space of
The bounds of widget are (the bounding box of) the region that it is expected to draw in. See the coordinate system overview to learn more.
If the operation is successful,
TRUE is returned. If
widget has no
bounds or the bounds cannot be expressed in
target‘s coordinate space
(for example if both widgets are in different windows),
bounds is set to the zero rectangle.
It is valid for
target to be the same widget.