Method
Gtk.Widget.compute_bounds
Declaration [src]
gboolean
gtk_widget_compute_bounds (
GtkWidget* widget,
GtkWidget* target,
graphene_rect_t* out_bounds
)
Description [src]
Computes the bounds for widget in the coordinate space of target.
FIXME: Explain what “bounds” are.
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), FALSE is
returned and bounds is set to the zero rectangle.
It is valid for widget and target to be the same widget.
Parameters
target |
GtkWidget |
the |
|
| Ownership is not transferred to the callee | |
out_bounds |
graphene_rect_t* |
the rectangle taking the bounds |
|
| Direction: out | |
| Ownership is not transferred to the callee |