Method

Gtk.Snapshot.append_color

Declaration [src]

void
gtk_snapshot_append_color (
  GtkSnapshot* snapshot,
  const GdkRGBA* color,
  const graphene_rect_t* bounds
)

Description [src]

Creates a new render node drawing the color into the given bounds and appends it to the current render node of snapshot.

You should try to avoid calling this function if color is transparent.

Parameters

color const GdkRGBA*
 

the GdkRGBA to draw

 Ownership is not transferred to the callee
bounds const graphene_rect_t*
 

the bounds for the new node

 Ownership is not transferred to the callee