## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Cairo

- Goto spec source

# Description

    package Gdk.Cairo is

Interfacing between Gdk and Cairo.

Binding from C File version 2.16.6

# Subprograms & Entries

### Create

- Goto spec in source

    function Create (Drawable: Gdk_Drawable) return Cairo_Context;

Creates a Cairo context for drawing to Drawable. Note that due to double-buffering, Cairo contexts created in a GTK+ expose event handler cannot be cached and reused between different expose events. Returns a newly created Cairo context. The result should be freed with Cairo.Destroy.

### Set_Source_Pixmap

- Goto spec in source
- Goto body in source

    procedure Set_Source_Pixmap (Cr: Cairo_Context;Pixmap: Gdk_Drawable;Pixmap_X: Gdouble;Pixmap_Y: Gdouble);

Cr: a Cairo_Context Pixmap: a Gdk_Pixmap Pixmap_X: X coordinate of location to place upper left corner of Pixmap Pixmap_Y: Y coordinate of location to place upper left corner of Pixmap Sets the given pixmap as the source pattern for the Cairo context. The pattern has an extend mode of CAIRO_EXTEND_NONE and is aligned so that the origin of Pixmap is Pixmap_X, Pixmap_Y

### Set_Source_Pixbuf

- Goto spec in source

    procedure Set_Source_Pixbuf (Cr: Cairo_Context;Pixbuf: Gdk_Pixbuf;Pixbuf_X: Gdouble;Pixbuf_Y: Gdouble);

Cr: a Cairo_Context Pixbuf: a Gdk_Pixbuf Pixbuf_X: X coordinate of location to place upper left corner of Pixbuf Pixbuf_Y: Y coordinate of location to place upper left corner of Pixbuf Sets the given pixbuf as the source pattern for the Cairo context. The pattern has an extend mode of CAIRO_EXTEND_NONE and is aligned so that the origin of Pixbuf is Pixbuf_X, Pixbuf_Y

### Set_Source_Color

- Goto spec in source
- Goto body in source

    procedure Set_Source_Color (Cr: Cairo_Context;Color: Gdk_Color);

Set the specified Color as the source of Cr.