cairoSetSourceWindow

fnvoid cairoSetSourceWindow(cairo.context.Context cr, gdk.window.Window window, double x, double y)

Sets the given window as the source pattern for cr.

The pattern has an extend mode of [cairo.types.Extend.None] and is aligned so that the origin of window is x, y. The window contains all its subwindows when rendering.

Note that the contents of window are undefined outside of the visible part of window, so use this function with care.

Parameters

cra cairo context
windowa #GdkWindow
xX coordinate of location to place upper left corner of window
yY coordinate of location to place upper left corner of window