/*
 * This file was generated automatically by ExtUtils::ParseXS version 3.35 from the
 * contents of GdkPixmap.xs. Do not edit this file, edit GdkPixmap.xs instead.
 *
 *    ANY CHANGES MADE HERE WILL BE LOST!
 *
 */

#line 1 "xs/GdkPixmap.xs"
/*
 * Copyright (c) 2003 by the gtk2-perl team (see the file AUTHORS)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the 
 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 
 * Boston, MA  02110-1301  USA.
 *
 * $Id$
 */

#include "gtk2perl.h"

static SV *
new_gdk_bitmap (GdkBitmap * bitmap, gboolean noinc)
{
	if (!bitmap)
		return &PL_sv_undef;
	return sv_bless (gperl_new_object (G_OBJECT (bitmap), noinc),
			 gv_stashpv ("Gtk2::Gdk::Bitmap", TRUE));
}

SV *
newSVGdkBitmap (GdkBitmap * bitmap)
{
	return new_gdk_bitmap (bitmap, FALSE);
}

SV *
newSVGdkBitmap_noinc (GdkBitmap * bitmap)
{
	return new_gdk_bitmap (bitmap, TRUE);
}


#line 56 "xs/GdkPixmap.c"
#ifndef PERL_UNUSED_VAR
#  define PERL_UNUSED_VAR(var) if (0) var = var
#endif

#ifndef dVAR
#  define dVAR		dNOOP
#endif


/* This stuff is not part of the API! You have been warned. */
#ifndef PERL_VERSION_DECIMAL
#  define PERL_VERSION_DECIMAL(r,v,s) (r*1000000 + v*1000 + s)
#endif
#ifndef PERL_DECIMAL_VERSION
#  define PERL_DECIMAL_VERSION \
	  PERL_VERSION_DECIMAL(PERL_REVISION,PERL_VERSION,PERL_SUBVERSION)
#endif
#ifndef PERL_VERSION_GE
#  define PERL_VERSION_GE(r,v,s) \
	  (PERL_DECIMAL_VERSION >= PERL_VERSION_DECIMAL(r,v,s))
#endif
#ifndef PERL_VERSION_LE
#  define PERL_VERSION_LE(r,v,s) \
	  (PERL_DECIMAL_VERSION <= PERL_VERSION_DECIMAL(r,v,s))
#endif

/* XS_INTERNAL is the explicit static-linkage variant of the default
 * XS macro.
 *
 * XS_EXTERNAL is the same as XS_INTERNAL except it does not include
 * "STATIC", ie. it exports XSUB symbols. You probably don't want that
 * for anything but the BOOT XSUB.
 *
 * See XSUB.h in core!
 */


/* TODO: This might be compatible further back than 5.10.0. */
#if PERL_VERSION_GE(5, 10, 0) && PERL_VERSION_LE(5, 15, 1)
#  undef XS_EXTERNAL
#  undef XS_INTERNAL
#  if defined(__CYGWIN__) && defined(USE_DYNAMIC_LOADING)
#    define XS_EXTERNAL(name) __declspec(dllexport) XSPROTO(name)
#    define XS_INTERNAL(name) STATIC XSPROTO(name)
#  endif
#  if defined(__SYMBIAN32__)
#    define XS_EXTERNAL(name) EXPORT_C XSPROTO(name)
#    define XS_INTERNAL(name) EXPORT_C STATIC XSPROTO(name)
#  endif
#  ifndef XS_EXTERNAL
#    if defined(HASATTRIBUTE_UNUSED) && !defined(__cplusplus)
#      define XS_EXTERNAL(name) void name(pTHX_ CV* cv __attribute__unused__)
#      define XS_INTERNAL(name) STATIC void name(pTHX_ CV* cv __attribute__unused__)
#    else
#      ifdef __cplusplus
#        define XS_EXTERNAL(name) extern "C" XSPROTO(name)
#        define XS_INTERNAL(name) static XSPROTO(name)
#      else
#        define XS_EXTERNAL(name) XSPROTO(name)
#        define XS_INTERNAL(name) STATIC XSPROTO(name)
#      endif
#    endif
#  endif
#endif

/* perl >= 5.10.0 && perl <= 5.15.1 */


/* The XS_EXTERNAL macro is used for functions that must not be static
 * like the boot XSUB of a module. If perl didn't have an XS_EXTERNAL
 * macro defined, the best we can do is assume XS is the same.
 * Dito for XS_INTERNAL.
 */
#ifndef XS_EXTERNAL
#  define XS_EXTERNAL(name) XS(name)
#endif
#ifndef XS_INTERNAL
#  define XS_INTERNAL(name) XS(name)
#endif

/* Now, finally, after all this mess, we want an ExtUtils::ParseXS
 * internal macro that we're free to redefine for varying linkage due
 * to the EXPORT_XSUB_SYMBOLS XS keyword. This is internal, use
 * XS_EXTERNAL(name) or XS_INTERNAL(name) in your code if you need to!
 */

#undef XS_EUPXS
#if defined(PERL_EUPXS_ALWAYS_EXPORT)
#  define XS_EUPXS(name) XS_EXTERNAL(name)
#else
   /* default to internal */
#  define XS_EUPXS(name) XS_INTERNAL(name)
#endif

#ifndef PERL_ARGS_ASSERT_CROAK_XS_USAGE
#define PERL_ARGS_ASSERT_CROAK_XS_USAGE assert(cv); assert(params)

/* prototype to pass -Wmissing-prototypes */
STATIC void
S_croak_xs_usage(const CV *const cv, const char *const params);

STATIC void
S_croak_xs_usage(const CV *const cv, const char *const params)
{
    const GV *const gv = CvGV(cv);

    PERL_ARGS_ASSERT_CROAK_XS_USAGE;

    if (gv) {
        const char *const gvname = GvNAME(gv);
        const HV *const stash = GvSTASH(gv);
        const char *const hvname = stash ? HvNAME(stash) : NULL;

        if (hvname)
	    Perl_croak_nocontext("Usage: %s::%s(%s)", hvname, gvname, params);
        else
	    Perl_croak_nocontext("Usage: %s(%s)", gvname, params);
    } else {
        /* Pants. I don't think that it should be possible to get here. */
	Perl_croak_nocontext("Usage: CODE(0x%" UVxf ")(%s)", PTR2UV(cv), params);
    }
}
#undef  PERL_ARGS_ASSERT_CROAK_XS_USAGE

#define croak_xs_usage        S_croak_xs_usage

#endif

/* NOTE: the prototype of newXSproto() is different in versions of perls,
 * so we define a portable version of newXSproto()
 */
#ifdef newXS_flags
#define newXSproto_portable(name, c_impl, file, proto) newXS_flags(name, c_impl, file, proto, 0)
#else
#define newXSproto_portable(name, c_impl, file, proto) (PL_Sv=(SV*)newXS(name, c_impl, file), sv_setpv(PL_Sv, proto), (CV*)PL_Sv)
#endif /* !defined(newXS_flags) */

#if PERL_VERSION_LE(5, 21, 5)
#  define newXS_deffile(a,b) Perl_newXS(aTHX_ a,b,file)
#else
#  define newXS_deffile(a,b) Perl_newXS_deffile(aTHX_ a,b)
#endif

#line 200 "xs/GdkPixmap.c"

XS_EUPXS(XS_Gtk2__Gdk__Bitmap_create_from_data); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Bitmap_create_from_data)
{
    dVAR; dXSARGS;
    if (items != 5)
       croak_xs_usage(cv,  "class, drawable, data, width, height");
    {
	GdkDrawable_ornull *	drawable = SvGdkDrawable_ornull (ST(1))
;
	const char *	data = (const char *)SvPV_nolen(ST(2))
;
	gint	width = (gint)SvIV(ST(3))
;
	gint	height = (gint)SvIV(ST(4))
;
	GdkBitmap_noinc *	RETVAL;

	RETVAL = gdk_bitmap_create_from_data(drawable, data, width, height);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkBitmap_noinc (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Pixmap_new); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Pixmap_new)
{
    dVAR; dXSARGS;
    if (items != 5)
       croak_xs_usage(cv,  "class, drawable, width, height, depth");
    {
	GdkDrawable_ornull *	drawable = SvGdkDrawable_ornull (ST(1))
;
	gint	width = (gint)SvIV(ST(2))
;
	gint	height = (gint)SvIV(ST(3))
;
	gint	depth = (gint)SvIV(ST(4))
;
	GdkPixmap_noinc *	RETVAL;

	RETVAL = gdk_pixmap_new(drawable, width, height, depth);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkPixmap_noinc (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Pixmap_create_from_data); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Pixmap_create_from_data)
{
    dVAR; dXSARGS;
    if (items != 8)
       croak_xs_usage(cv,  "class, drawable, data, width, height, depth, fg, bg");
    {
	GdkDrawable *	drawable = SvGdkDrawable (ST(1))
;
	const char *	data = (const char *)SvPV_nolen(ST(2))
;
	gint	width = (gint)SvIV(ST(3))
;
	gint	height = (gint)SvIV(ST(4))
;
	gint	depth = (gint)SvIV(ST(5))
;
	GdkColor *	fg = SvGdkColor (ST(6))
;
	GdkColor *	bg = SvGdkColor (ST(7))
;
	GdkPixmap_noinc *	RETVAL;

	RETVAL = gdk_pixmap_create_from_data(drawable, data, width, height, depth, fg, bg);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkPixmap_noinc (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Pixmap_create_from_xpm); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Pixmap_create_from_xpm)
{
    dVAR; dXSARGS;
    if (items != 4)
       croak_xs_usage(cv,  "class, drawable, transparent_color, filename");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	GdkDrawable *	drawable = SvGdkDrawable (ST(1))
;
	GdkColor_ornull *	transparent_color = SvGdkColor_ornull (ST(2))
;
	GPerlFilename	filename = (GPerlFilename) gperl_filename_from_sv (ST(3))
;
#line 113 "xs/GdkPixmap.xs"
	GdkPixmap * pixmap;
	GdkBitmap * mask;
#line 313 "xs/GdkPixmap.c"
#line 116 "xs/GdkPixmap.xs"
	pixmap = gdk_pixmap_create_from_xpm (drawable, &mask,
					     transparent_color, filename);
	if (!pixmap)
		/* this keeps us from segfaulting, but there's no error
		 * reporting for the caller or user.  the docs don't
		 * mention the failure mode.  we choose to fail in kind. */
		XSRETURN_EMPTY;
	EXTEND (SP, 2);
	PUSHs (sv_2mortal (newSVGdkPixmap_noinc (pixmap)));
	PUSHs (sv_2mortal (newSVGdkBitmap_noinc (mask)));
#line 325 "xs/GdkPixmap.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__Gdk__Pixmap_colormap_create_from_xpm); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Pixmap_colormap_create_from_xpm)
{
    dVAR; dXSARGS;
    if (items != 5)
       croak_xs_usage(cv,  "class, drawable, colormap, transparent_color, filename");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	GdkDrawable_ornull *	drawable = SvGdkDrawable_ornull (ST(1))
;
	GdkColormap_ornull *	colormap = SvGdkColormap_ornull (ST(2))
;
	GdkColor_ornull *	transparent_color = SvGdkColor_ornull (ST(3))
;
	GPerlFilename	filename = (GPerlFilename) gperl_filename_from_sv (ST(4))
;
#line 141 "xs/GdkPixmap.xs"
	GdkPixmap * pixmap;
	GdkBitmap * mask;
#line 352 "xs/GdkPixmap.c"
#line 144 "xs/GdkPixmap.xs"
	pixmap = gdk_pixmap_colormap_create_from_xpm (drawable, colormap,
					&mask, transparent_color, filename);
	EXTEND (SP, 2);
	PUSHs (sv_2mortal (newSVGdkPixmap_noinc (pixmap)));
	PUSHs (sv_2mortal (newSVGdkBitmap_noinc (mask)));
#line 359 "xs/GdkPixmap.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__Gdk__Pixmap_create_from_xpm_d); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Pixmap_create_from_xpm_d)
{
    dVAR; dXSARGS;
    if (items < 4)
       croak_xs_usage(cv,  "class, drawable, transparent_color, data, ...");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	GdkDrawable *	drawable = SvGdkDrawable (ST(1))
;
	GdkColor_ornull *	transparent_color = SvGdkColor_ornull (ST(2))
;
#line 167 "xs/GdkPixmap.xs"
	GdkBitmap * mask = NULL;
	GdkPixmap * pixmap = NULL;
	char ** lines;
	int i;
#line 384 "xs/GdkPixmap.c"
#line 172 "xs/GdkPixmap.xs"
	lines = g_new (char*, items - 3);
	for (i = 3 ; i < items ; i++)
		lines[i-3] = SvPV_nolen (ST (i));
	pixmap = gdk_pixmap_create_from_xpm_d (drawable, 
	                                       GIMME == G_ARRAY ? &mask : NULL,
					       transparent_color,
					       lines);
	g_free (lines);
	if (pixmap) XPUSHs (sv_2mortal (newSVGdkPixmap_noinc (pixmap)));
	if (mask)   XPUSHs (sv_2mortal (newSVGdkBitmap_noinc (mask)));
#line 396 "xs/GdkPixmap.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__Gdk__Pixmap_colormap_create_from_xpm_d); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Pixmap_colormap_create_from_xpm_d)
{
    dVAR; dXSARGS;
    if (items < 5)
       croak_xs_usage(cv,  "class, drawable, colormap, transparent_color, data, ...");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	GdkDrawable_ornull *	drawable = SvGdkDrawable_ornull (ST(1))
;
	GdkColormap_ornull *	colormap = SvGdkColormap_ornull (ST(2))
;
	GdkColor_ornull *	transparent_color = SvGdkColor_ornull (ST(3))
;
#line 201 "xs/GdkPixmap.xs"
	GdkBitmap * mask = NULL;
	GdkPixmap * pixmap = NULL;
	char ** lines;
	int i;
#line 423 "xs/GdkPixmap.c"
#line 206 "xs/GdkPixmap.xs"
	lines = g_new (char*, items - 4);
	for (i = 4 ; i < items ; i++)
		lines[i-4] = SvPV_nolen (ST (i));
	pixmap = gdk_pixmap_colormap_create_from_xpm_d (drawable, colormap,
	                                       GIMME == G_ARRAY ? &mask : NULL,
					       transparent_color,
					       lines);
	g_free (lines);
	if (pixmap) XPUSHs (sv_2mortal (newSVGdkPixmap_noinc (pixmap)));
	if (mask)   XPUSHs (sv_2mortal (newSVGdkBitmap_noinc (mask)));
#line 435 "xs/GdkPixmap.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__Gdk__Pixmap_lookup); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Pixmap_lookup)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, anid");
    {
	GdkNativeWindow	anid = (GdkNativeWindow)SvUV(ST(1))
;
	GdkPixmap *	RETVAL;

	RETVAL = gdk_pixmap_lookup(anid);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkPixmap (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}

#if GTK_CHECK_VERSION(2, 2, 0)
#define XSubPPtmpAAAA 1


XS_EUPXS(XS_Gtk2__Gdk__Pixmap_lookup_for_display); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Pixmap_lookup_for_display)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "class, display, anid");
    {
	GdkDisplay *	display = SvGdkDisplay (ST(1))
;
	GdkNativeWindow	anid = (GdkNativeWindow)SvUV(ST(2))
;
	GdkPixmap *	RETVAL;

	RETVAL = gdk_pixmap_lookup_for_display(display, anid);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkPixmap (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}

#endif

XS_EUPXS(XS_Gtk2__Gdk__Pixmap_foreign_new); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Pixmap_foreign_new)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, anid");
    {
	GdkNativeWindow	anid = (GdkNativeWindow)SvUV(ST(1))
;
	GdkPixmap *	RETVAL;

	RETVAL = gdk_pixmap_foreign_new(anid);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkPixmap (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}

#if GTK_CHECK_VERSION(2, 2, 0)
#define XSubPPtmpAAAB 1


XS_EUPXS(XS_Gtk2__Gdk__Pixmap_foreign_new_for_display); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Pixmap_foreign_new_for_display)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "class, display, anid");
    {
	GdkDisplay *	display = SvGdkDisplay (ST(1))
;
	GdkNativeWindow	anid = (GdkNativeWindow)SvUV(ST(2))
;
	GdkPixmap *	RETVAL;

	RETVAL = gdk_pixmap_foreign_new_for_display(display, anid);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkPixmap (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}

#endif
#if GTK_CHECK_VERSION(2, 10, 0)
#define XSubPPtmpAAAC 1


XS_EUPXS(XS_Gtk2__Gdk__Pixmap_foreign_new_for_screen); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Pixmap_foreign_new_for_screen)
{
    dVAR; dXSARGS;
    if (items != 6)
       croak_xs_usage(cv,  "class, screen, anid, width, height, depth");
    {
	GdkPixmap *	RETVAL;
	GdkScreen *	screen = SvGdkScreen (ST(1))
;
	GdkNativeWindow	anid = (GdkNativeWindow)SvUV(ST(2))
;
	gint	width = (gint)SvIV(ST(3))
;
	gint	height = (gint)SvIV(ST(4))
;
	gint	depth = (gint)SvIV(ST(5))
;

	RETVAL = gdk_pixmap_foreign_new_for_screen(screen, anid, width, height, depth);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkPixmap (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}

#endif
#ifdef __cplusplus
extern "C"
#endif
XS_EXTERNAL(boot_Gtk2__Gdk__Pixmap); /* prototype to pass -Wmissing-prototypes */
XS_EXTERNAL(boot_Gtk2__Gdk__Pixmap)
{
#if PERL_VERSION_LE(5, 21, 5)
    dVAR; dXSARGS;
#else
    dVAR; dXSBOOTARGSXSAPIVERCHK;
#endif
#if (PERL_REVISION == 5 && PERL_VERSION < 9)
    char* file = __FILE__;
#else
    const char* file = __FILE__;
#endif

    PERL_UNUSED_VAR(file);

    PERL_UNUSED_VAR(cv); /* -W */
    PERL_UNUSED_VAR(items); /* -W */
#if PERL_VERSION_LE(5, 21, 5)
    XS_VERSION_BOOTCHECK;
#  ifdef XS_APIVERSION_BOOTCHECK
    XS_APIVERSION_BOOTCHECK;
#  endif
#endif

        newXS_deffile("Gtk2::Gdk::Bitmap::create_from_data", XS_Gtk2__Gdk__Bitmap_create_from_data);
        newXS_deffile("Gtk2::Gdk::Pixmap::new", XS_Gtk2__Gdk__Pixmap_new);
        newXS_deffile("Gtk2::Gdk::Pixmap::create_from_data", XS_Gtk2__Gdk__Pixmap_create_from_data);
        newXS_deffile("Gtk2::Gdk::Pixmap::create_from_xpm", XS_Gtk2__Gdk__Pixmap_create_from_xpm);
        newXS_deffile("Gtk2::Gdk::Pixmap::colormap_create_from_xpm", XS_Gtk2__Gdk__Pixmap_colormap_create_from_xpm);
        newXS_deffile("Gtk2::Gdk::Pixmap::create_from_xpm_d", XS_Gtk2__Gdk__Pixmap_create_from_xpm_d);
        newXS_deffile("Gtk2::Gdk::Pixmap::colormap_create_from_xpm_d", XS_Gtk2__Gdk__Pixmap_colormap_create_from_xpm_d);
        newXS_deffile("Gtk2::Gdk::Pixmap::lookup", XS_Gtk2__Gdk__Pixmap_lookup);
#if XSubPPtmpAAAA
        newXS_deffile("Gtk2::Gdk::Pixmap::lookup_for_display", XS_Gtk2__Gdk__Pixmap_lookup_for_display);
#endif
        newXS_deffile("Gtk2::Gdk::Pixmap::foreign_new", XS_Gtk2__Gdk__Pixmap_foreign_new);
#if XSubPPtmpAAAB
        newXS_deffile("Gtk2::Gdk::Pixmap::foreign_new_for_display", XS_Gtk2__Gdk__Pixmap_foreign_new_for_display);
#endif
#if XSubPPtmpAAAC
        newXS_deffile("Gtk2::Gdk::Pixmap::foreign_new_for_screen", XS_Gtk2__Gdk__Pixmap_foreign_new_for_screen);
#endif

    /* Initialisation Section */

#line 49 "xs/GdkPixmap.xs"
	/* a GdkBitmap is a GdkPixmap with depth one.  they are all
	 * typedef'd to GdkDrawable, but GdkBitmap doesn't get a type
	 * wrapper.  since it's a GdkPixmap, i'll put Gtk2::Gdk::Pixmap
	 * in its isa so that bitmaps can be used wherever pixmaps are
	 * wanted.  otherwise, apps need to bless by hand. */
	gperl_set_isa ("Gtk2::Gdk::Bitmap", "Gtk2::Gdk::Pixmap");

#if XSubPPtmpAAAA
#endif
#if XSubPPtmpAAAB
#endif
#if XSubPPtmpAAAC
#endif
#line 643 "xs/GdkPixmap.c"

    /* End of Initialisation Section */

#if PERL_VERSION_LE(5, 21, 5)
#  if PERL_VERSION_GE(5, 9, 0)
    if (PL_unitcheckav)
        call_list(PL_scopestack_ix, PL_unitcheckav);
#  endif
    XSRETURN_YES;
#else
    Perl_xs_boot_epilog(aTHX_ ax);
#endif
}

