void gtk_widget_set_clip ( GtkWidget* widget, const GtkAllocation* clip )
Sets the widget’s clip. This must not be used directly,
but from within a widget’s size_allocate method.
It must be called after
gtk_widget_set_allocation() (or after chaining up
to the parent class), because that function resets the clip.
The clip set should be the area that
widget draws on. If
widget is a
GtkContainer, the area must contain all children’s clips.
If this function is not called by
widget during a ::size-allocate handler,
the clip will be set to
A pointer to a
|The data is owned by the caller of the function.|