(**************************************************************************) (* cairo-ocaml -- Objective Caml bindings for Cairo *) (* Copyright © 2004-2005 Olivier Andrieu *) (* *) (* This code is free software and is licensed under the terms of the *) (* GNU Lesser General Public License version 2.1 (the "LGPL"). *) (**************************************************************************) (** GTK/Cairo integration *) (** These functions are available with GTK+ 2.8. cf. {{:http://developer.gnome.org/doc/API/2.0/gdk/gdk-Cairo-Interaction.html}Cairo Interaction} in the GDK Reference Manual. *) external create : [> `drawable] Gobject.obj -> Cairo.t = "ml_gdk_cairo_create" external set_source_color : Cairo.t -> Gdk.color -> unit = "ml_gdk_cairo_set_source_color" external rectangle : Cairo.t -> Gdk.Rectangle.t -> unit = "ml_gdk_cairo_rectangle" external region : Cairo.t -> Gdk.region -> unit = "ml_gdk_cairo_region" external set_source_pixbuf : Cairo.t -> GdkPixbuf.pixbuf -> float -> float -> unit = "ml_gdk_cairo_set_source_pixbuf"