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

#line 1 "xs/Gdk.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., 59 Temple Place - Suite 330, 
 * Boston, MA  02111-1307  USA.
 *
 * $Id$
 */
#include "gtk2perl.h"

#line 33 "xs/Gdk.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(pTHX_ const CV *const cv, const char *const params);

STATIC void
S_croak_xs_usage(pTHX_ 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(aTHX_ "Usage: %s::%s(%s)", hvname, gvname, params);
        else
            Perl_croak(aTHX_ "Usage: %s(%s)", gvname, params);
    } else {
        /* Pants. I don't think that it should be possible to get here. */
        Perl_croak(aTHX_ "Usage: CODE(0x%"UVxf")(%s)", PTR2UV(cv), params);
    }
}
#undef  PERL_ARGS_ASSERT_CROAK_XS_USAGE

#ifdef PERL_IMPLICIT_CONTEXT
#define croak_xs_usage(a,b)    S_croak_xs_usage(aTHX_ a,b)
#else
#define croak_xs_usage        S_croak_xs_usage
#endif

#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) */

#line 175 "xs/Gdk.c"

XS_EUPXS(XS_Gtk2__Gdk_init); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk_init)
{
    dVAR; dXSARGS;
    dXSI32;
    if (items < 0 || items > 1)
       croak_xs_usage(cv,  "class=NULL");
    {
#line 31 "xs/Gdk.xs"
	GPerlArgv *pargv;
#line 187 "xs/Gdk.c"
	gboolean	RETVAL;
#line 33 "xs/Gdk.xs"
	pargv = gperl_argv_new ();

	if (ix == 1) {
		RETVAL = gdk_init_check (&pargv->argc, &pargv->argv);
	} else {
		gdk_init (&pargv->argc, &pargv->argv);
		/* gdk_init() either succeeds or does not return. */
		RETVAL = TRUE;
	}

	gperl_argv_update (pargv);
	gperl_argv_free (pargv);
#line 202 "xs/Gdk.c"
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}

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


XS_EUPXS(XS_Gtk2__Gdk_parse_args); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk_parse_args)
{
    dVAR; dXSARGS;
    if (items < 0 || items > 1)
       croak_xs_usage(cv,  "class=NULL");
    {
#line 54 "xs/Gdk.xs"
	GPerlArgv *pargv;
#line 221 "xs/Gdk.c"
#line 56 "xs/Gdk.xs"
	pargv = gperl_argv_new ();

	gdk_parse_args (&pargv->argc, &pargv->argv);

	gperl_argv_update (pargv);
	gperl_argv_free (pargv);
#line 229 "xs/Gdk.c"
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Gdk_get_display_arg_name); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk_get_display_arg_name)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "class");
    {
	const gchar *	RETVAL;

	RETVAL = gdk_get_display_arg_name(/* void */);
	ST(0) = sv_newmortal();
	/* same as newSVGChar(), but not in a function */
	sv_setpv ((SV*)ST(0), RETVAL);
	SvUTF8_on (ST(0));
    }
    XSRETURN(1);
}

#endif /* >= 2.2.0 */

XS_EUPXS(XS_Gtk2__Gdk_set_locale); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk_set_locale)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "class");
    {
	gchar *	RETVAL;

	RETVAL = gdk_set_locale(/* void */);
	ST(0) = sv_newmortal();
	/* same as newSVGChar(), but not in a function */
	sv_setpv ((SV*)ST(0), RETVAL);
	SvUTF8_on (ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk_set_sm_client_id); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk_set_sm_client_id)
{
    dVAR; dXSARGS;
    if (items < 1 || items > 2)
       croak_xs_usage(cv,  "class, sm_client_id=NULL");
    {
	const gchar_ornull *	sm_client_id;

	if (items < 2)
	    sm_client_id = NULL;
	else {
	    /* same as SvGChar(), but allows undef as NULL */
	    if (gperl_sv_is_defined (ST(1))) {
		    sv_utf8_upgrade (ST(1));
		    sm_client_id = (const gchar_ornull *)SvPV_nolen (ST(1));
	    } else {
		    sm_client_id = NULL;
	    }
;
	}

	gdk_set_sm_client_id(sm_client_id);
    }
    XSRETURN_EMPTY;
}

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


XS_EUPXS(XS_Gtk2__Gdk_notify_startup_complete); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk_notify_startup_complete)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "class");
    {

	gdk_notify_startup_complete(/* void */);
    }
    XSRETURN_EMPTY;
}

#endif /* 2.2.0 */
#if GTK_CHECK_VERSION(2, 12, 0)
#define XSubPPtmpAAAC 1


XS_EUPXS(XS_Gtk2__Gdk_notify_startup_complete_with_id); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk_notify_startup_complete_with_id)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, startup_id");
    {
	const gchar *	startup_id;

	/* same as SvGChar(), but not in a function */
	sv_utf8_upgrade (ST(1));
	startup_id = (const gchar *)SvPV_nolen (ST(1))
;

	gdk_notify_startup_complete_with_id(startup_id);
    }
    XSRETURN_EMPTY;
}

#endif

XS_EUPXS(XS_Gtk2__Gdk_get_program_class); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk_get_program_class)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "class");
    {
	const char *	RETVAL;
	dXSTARG;

	RETVAL = gdk_get_program_class(/* void */);
	sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG;
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk_set_program_class); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk_set_program_class)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, program_class");
    {
	const char *	program_class = (const char *)SvPV_nolen(ST(1))
;

	gdk_set_program_class(program_class);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Gdk_get_display); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk_get_display)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "class");
    {
	gchar *	RETVAL;

	RETVAL = gdk_get_display(/* void */);
	ST(0) = sv_newmortal();
	/* same as newSVGChar(), but not in a function */
	sv_setpv ((SV*)ST(0), RETVAL);
	SvUTF8_on (ST(0));
#line 123 "xs/Gdk.xs"
	/* in versions later than 2.2.0, this string is malloc'd. */
	if (NULL == gtk_check_version (2, 2, 0))
		g_free (RETVAL);
#line 395 "xs/Gdk.c"
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk_flush); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk_flush)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "class");
    {

	gdk_flush(/* void */);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Gdk_screen_width); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk_screen_width)
{
    dVAR; dXSARGS;
    dXSI32;
    if (items != 1)
       croak_xs_usage(cv,  "class");
    {
	gint	RETVAL;
	dXSTARG;
#line 141 "xs/Gdk.xs"
	switch (ix) {
		case 0: RETVAL = gdk_screen_width (); break;
		case 1: RETVAL = gdk_screen_height (); break;
		case 2: RETVAL = gdk_screen_width_mm (); break;
		case 3: RETVAL = gdk_screen_height_mm (); break;
		default:
			RETVAL = 0;
			g_assert_not_reached ();
	}
#line 435 "xs/Gdk.c"
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk_pointer_grab); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk_pointer_grab)
{
    dVAR; dXSARGS;
    if (items != 7)
       croak_xs_usage(cv,  "class, window, owner_events, event_mask, confine_to, cursor, time_");
    {
	GdkWindow *	window = SvGdkWindow (ST(1))
;
	gboolean	owner_events = (bool)SvTRUE(ST(2))
;
	GdkEventMask	event_mask = SvGdkEventMask (ST(3))
;
	GdkWindow_ornull *	confine_to = SvGdkWindow_ornull (ST(4))
;
	GdkCursor_ornull *	cursor = SvGdkCursor_ornull (ST(5))
;
	guint32	time_ = (guint32)SvUV(ST(6))
;
	GdkGrabStatus	RETVAL;

	RETVAL = gdk_pointer_grab(window, owner_events, event_mask, confine_to, cursor, time_);
	ST(0) = newSVGdkGrabStatus (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk_pointer_ungrab); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk_pointer_ungrab)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, time_");
    {
	guint32	time_ = (guint32)SvUV(ST(1))
;

	gdk_pointer_ungrab(time_);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Gdk_pointer_is_grabbed); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk_pointer_is_grabbed)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "class");
    {
	gboolean	RETVAL;

	RETVAL = gdk_pointer_is_grabbed(/* void */);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk_keyboard_grab); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk_keyboard_grab)
{
    dVAR; dXSARGS;
    if (items != 4)
       croak_xs_usage(cv,  "class, window, owner_events, time_");
    {
	GdkWindow *	window = SvGdkWindow (ST(1))
;
	gboolean	owner_events = (bool)SvTRUE(ST(2))
;
	guint32	time_ = (guint32)SvUV(ST(3))
;
	GdkGrabStatus	RETVAL;

	RETVAL = gdk_keyboard_grab(window, owner_events, time_);
	ST(0) = newSVGdkGrabStatus (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk_keyboard_ungrab); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk_keyboard_ungrab)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, time_");
    {
	guint32	time_ = (guint32)SvUV(ST(1))
;

	gdk_keyboard_ungrab(time_);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Gdk_beep); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk_beep)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "class");
    {

	gdk_beep(/* void */);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Gdk_error_trap_push); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk_error_trap_push)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "class");
    {

	gdk_error_trap_push(/* void */);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Gdk_error_trap_pop); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk_error_trap_pop)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "class");
    {
	gint	RETVAL;
	dXSTARG;

	RETVAL = gdk_error_trap_pop(/* void */);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Rectangle_intersect); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Rectangle_intersect)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "src1, src2");
    {
	GdkRectangle *	src1 = SvGdkRectangle (ST(0))
;
	GdkRectangle *	src2 = SvGdkRectangle (ST(1))
;
#line 233 "xs/Gdk.xs"
	GdkRectangle dest;
#line 600 "xs/Gdk.c"
	GdkRectangle_copy *	RETVAL;
#line 235 "xs/Gdk.xs"
	if (!gdk_rectangle_intersect (src1, src2, &dest))
		XSRETURN_UNDEF;
	RETVAL = &dest;
#line 606 "xs/Gdk.c"
	ST(0) = newSVGdkRectangle_copy (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Rectangle_union); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Rectangle_union)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "src1, src2");
    {
	GdkRectangle *	src1 = SvGdkRectangle (ST(0))
;
	GdkRectangle *	src2 = SvGdkRectangle (ST(1))
;
#line 247 "xs/Gdk.xs"
	GdkRectangle dest;
#line 627 "xs/Gdk.c"
	GdkRectangle_copy *	RETVAL;
#line 249 "xs/Gdk.xs"
	gdk_rectangle_union (src1, src2, &dest);
	RETVAL = &dest;
#line 632 "xs/Gdk.c"
	ST(0) = newSVGdkRectangle_copy (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Event_send_client_message); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Event_send_client_message)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "class, event, winid");
    {
	GdkEvent *	event = SvGdkEvent (ST(1))
;
	GdkNativeWindow	winid = (GdkNativeWindow)SvUV(ST(2))
;
	gboolean	RETVAL;

	RETVAL = gdk_event_send_client_message(event, winid);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Event_send_clientmessage_toall); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Event_send_clientmessage_toall)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, event");
    {
	GdkEvent *	event = SvGdkEvent (ST(1))
;

	gdk_event_send_clientmessage_toall(event);
    }
    XSRETURN_EMPTY;
}

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


XS_EUPXS(XS_Gtk2__Gdk__Event_send_client_message_for_display); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Event_send_client_message_for_display)
{
    dVAR; dXSARGS;
    if (items != 4)
       croak_xs_usage(cv,  "class, display, event, winid");
    {
	GdkDisplay *	display = SvGdkDisplay (ST(1))
;
	GdkEvent *	event = SvGdkEvent (ST(2))
;
	GdkNativeWindow	winid = (GdkNativeWindow)SvUV(ST(3))
;
	gboolean	RETVAL;

	RETVAL = gdk_event_send_client_message_for_display(display, event, winid);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}

#endif

XS_EUPXS(XS_Gtk2__Gdk__Threads_init); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Threads_init)
{
    dVAR; dXSARGS;
    dXSI32;
    if (items != 1)
       croak_xs_usage(cv,  "class");
    {
#line 302 "xs/Gdk.xs"
	switch (ix) {
		case 0: gdk_threads_init (); break;
		case 1: gdk_threads_enter (); break;
		case 2: gdk_threads_leave (); break;
		default:
			g_assert_not_reached ();
	}
#line 718 "xs/Gdk.c"
    }
    XSRETURN_EMPTY;
}

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

    PERL_UNUSED_VAR(cv); /* -W */
    PERL_UNUSED_VAR(items); /* -W */
#ifdef XS_APIVERSION_BOOTCHECK
    XS_APIVERSION_BOOTCHECK;
#endif
    XS_VERSION_BOOTCHECK;

    {
        CV * cv;

        cv = newXS("Gtk2::Gdk::init", XS_Gtk2__Gdk_init, file);
        XSANY.any_i32 = 0;
        cv = newXS("Gtk2::Gdk::init_check", XS_Gtk2__Gdk_init, file);
        XSANY.any_i32 = 1;
#if XSubPPtmpAAAA
        newXS("Gtk2::Gdk::parse_args", XS_Gtk2__Gdk_parse_args, file);
        newXS("Gtk2::Gdk::get_display_arg_name", XS_Gtk2__Gdk_get_display_arg_name, file);
#endif
        newXS("Gtk2::Gdk::set_locale", XS_Gtk2__Gdk_set_locale, file);
        newXS("Gtk2::Gdk::set_sm_client_id", XS_Gtk2__Gdk_set_sm_client_id, file);
#if XSubPPtmpAAAB
        newXS("Gtk2::Gdk::notify_startup_complete", XS_Gtk2__Gdk_notify_startup_complete, file);
#endif
#if XSubPPtmpAAAC
        newXS("Gtk2::Gdk::notify_startup_complete_with_id", XS_Gtk2__Gdk_notify_startup_complete_with_id, file);
#endif
        newXS("Gtk2::Gdk::get_program_class", XS_Gtk2__Gdk_get_program_class, file);
        newXS("Gtk2::Gdk::set_program_class", XS_Gtk2__Gdk_set_program_class, file);
        newXS("Gtk2::Gdk::get_display", XS_Gtk2__Gdk_get_display, file);
        newXS("Gtk2::Gdk::flush", XS_Gtk2__Gdk_flush, file);
        cv = newXS("Gtk2::Gdk::screen_height", XS_Gtk2__Gdk_screen_width, file);
        XSANY.any_i32 = 1;
        cv = newXS("Gtk2::Gdk::screen_height_mm", XS_Gtk2__Gdk_screen_width, file);
        XSANY.any_i32 = 3;
        cv = newXS("Gtk2::Gdk::screen_width", XS_Gtk2__Gdk_screen_width, file);
        XSANY.any_i32 = 0;
        cv = newXS("Gtk2::Gdk::screen_width_mm", XS_Gtk2__Gdk_screen_width, file);
        XSANY.any_i32 = 2;
        newXS("Gtk2::Gdk::pointer_grab", XS_Gtk2__Gdk_pointer_grab, file);
        newXS("Gtk2::Gdk::pointer_ungrab", XS_Gtk2__Gdk_pointer_ungrab, file);
        newXS("Gtk2::Gdk::pointer_is_grabbed", XS_Gtk2__Gdk_pointer_is_grabbed, file);
        newXS("Gtk2::Gdk::keyboard_grab", XS_Gtk2__Gdk_keyboard_grab, file);
        newXS("Gtk2::Gdk::keyboard_ungrab", XS_Gtk2__Gdk_keyboard_ungrab, file);
        newXS("Gtk2::Gdk::beep", XS_Gtk2__Gdk_beep, file);
        newXS("Gtk2::Gdk::error_trap_push", XS_Gtk2__Gdk_error_trap_push, file);
        newXS("Gtk2::Gdk::error_trap_pop", XS_Gtk2__Gdk_error_trap_pop, file);
        newXS("Gtk2::Gdk::Rectangle::intersect", XS_Gtk2__Gdk__Rectangle_intersect, file);
        newXS("Gtk2::Gdk::Rectangle::union", XS_Gtk2__Gdk__Rectangle_union, file);
        newXS("Gtk2::Gdk::Event::send_client_message", XS_Gtk2__Gdk__Event_send_client_message, file);
        newXS("Gtk2::Gdk::Event::send_clientmessage_toall", XS_Gtk2__Gdk__Event_send_clientmessage_toall, file);
#if XSubPPtmpAAAD
        newXS("Gtk2::Gdk::Event::send_client_message_for_display", XS_Gtk2__Gdk__Event_send_client_message_for_display, file);
#endif
        cv = newXS("Gtk2::Gdk::Threads::enter", XS_Gtk2__Gdk__Threads_init, file);
        XSANY.any_i32 = 1;
        cv = newXS("Gtk2::Gdk::Threads::init", XS_Gtk2__Gdk__Threads_init, file);
        XSANY.any_i32 = 0;
        cv = newXS("Gtk2::Gdk::Threads::leave", XS_Gtk2__Gdk__Threads_init, file);
        XSANY.any_i32 = 2;
    }

    /* Initialisation Section */

#if XSubPPtmpAAAA
#endif
#if XSubPPtmpAAAB
#endif
#if XSubPPtmpAAAC
#endif
#if XSubPPtmpAAAD
#endif
#line 807 "xs/Gdk.c"

    /* End of Initialisation Section */

#if (PERL_REVISION == 5 && PERL_VERSION >= 9)
  if (PL_unitcheckav)
       call_list(PL_scopestack_ix, PL_unitcheckav);
#endif
    XSRETURN_YES;
}

