Method

GtkWidgetset_clip

since: 3.14

Declaration [src]

void
gtk_widget_set_clip (
  GtkWidget* widget,
  const GtkAllocation* clip
)

Description [src]

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 widgets allocation.

Available since: 3.14

Parameters

clip

Type: GtkAllocation

A pointer to a GtkAllocation to copy from.

The data is owned by the caller of the method.