Function

Gdk-3.0Gdkcairo_set_source_windowSince 2.24

  • 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.

    Parameters

    • cr: default.Context

      a cairo context

    • window: Gdk.Window
    • x: number

      X coordinate of location to place upper left corner of window

    • y: number

      Y coordinate of location to place upper left corner of window

    Returns void

    2.24