// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.

namespace Gtk {

	using System;
	using System.Runtime.InteropServices;

#region Autogenerated code
	public partial class CairoHelper {

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate bool d_gtk_cairo_should_draw_window(IntPtr cr, IntPtr window);
		static d_gtk_cairo_should_draw_window gtk_cairo_should_draw_window = FuncLoader.LoadFunction<d_gtk_cairo_should_draw_window>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gtk), "gtk_cairo_should_draw_window"));

		public static bool ShouldDrawWindow(Cairo.Context cr, Gdk.Window window) {
			bool raw_ret = gtk_cairo_should_draw_window(cr == null ? IntPtr.Zero : cr.Handle, window == null ? IntPtr.Zero : window.Handle);
			bool ret = raw_ret;
			return ret;
		}

		[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
		delegate void d_gtk_cairo_transform_to_window(IntPtr cr, IntPtr widget, IntPtr window);
		static d_gtk_cairo_transform_to_window gtk_cairo_transform_to_window = FuncLoader.LoadFunction<d_gtk_cairo_transform_to_window>(FuncLoader.GetProcAddress(GLibrary.Load(Library.Gtk), "gtk_cairo_transform_to_window"));

		public static void TransformToWindow(Cairo.Context cr, Gtk.Widget widget, Gdk.Window window) {
			gtk_cairo_transform_to_window(cr == null ? IntPtr.Zero : cr.Handle, widget == null ? IntPtr.Zero : widget.Handle, window == null ? IntPtr.Zero : window.Handle);
		}

#endregion
	}
}
