Function

Gdkcairo_set_source_window

since: 2.24

Declaration [src]

void
gdk_cairo_set_source_window (
  cairo_t* cr,
  GdkWindow* window,
  gdouble x,
  gdouble y
)

Description [src]

Sets the given window as the source pattern for cr.

The pattern has an extend mode of CAIRO_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.

Available since: 2.24

Parameters

cr

Type: cairo_t

A cairo context.

The data is owned by the caller of the function.
window

Type: GdkWindow

A GdkWindow.

The data is owned by the caller of the function.
x

Type: gdouble

X coordinate of location to place upper left corner of window.

y

Type: gdouble

Y coordinate of location to place upper left corner of window.