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

#line 1 "xs/GdkScreen.xs"
/*
 * Copyright (c) 2003-2005 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 34 "xs/GdkScreen.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 178 "xs/GdkScreen.c"

XS_EUPXS(XS_Gtk2__Gdk__Screen_get_default_colormap); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_default_colormap)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "screen");
    {
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
	GdkColormap *	RETVAL;

	RETVAL = gdk_screen_get_default_colormap(screen);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkColormap (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_set_default_colormap); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_set_default_colormap)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "screen, colormap");
    {
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
	GdkColormap *	colormap = SvGdkColormap (ST(1))
;

	gdk_screen_set_default_colormap(screen, colormap);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_system_colormap); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_system_colormap)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "screen");
    {
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
	GdkColormap *	RETVAL;

	RETVAL = gdk_screen_get_system_colormap(screen);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkColormap (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_system_visual); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_system_visual)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "screen");
    {
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
	GdkVisual *	RETVAL;

	RETVAL = gdk_screen_get_system_visual(screen);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkVisual (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_rgb_colormap); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_rgb_colormap)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "screen");
    {
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
	GdkColormap *	RETVAL;

	RETVAL = gdk_screen_get_rgb_colormap(screen);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkColormap (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_rgb_visual); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_rgb_visual)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "screen");
    {
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
	GdkVisual *	RETVAL;

	RETVAL = gdk_screen_get_rgb_visual(screen);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkVisual (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_root_window); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_root_window)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "screen");
    {
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
	GdkWindow *	RETVAL;

	RETVAL = gdk_screen_get_root_window(screen);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkWindow (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_display); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_display)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "screen");
    {
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
	GdkDisplay *	RETVAL;

	RETVAL = gdk_screen_get_display(screen);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkDisplay (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_number); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_number)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "screen");
    {
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gdk_screen_get_number(screen);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_width); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_width)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "screen");
    {
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gdk_screen_get_width(screen);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_height); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_height)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "screen");
    {
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gdk_screen_get_height(screen);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_width_mm); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_width_mm)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "screen");
    {
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gdk_screen_get_width_mm(screen);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_height_mm); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_height_mm)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "screen");
    {
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gdk_screen_get_height_mm(screen);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_list_visuals); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_list_visuals)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "screen");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
#line 106 "xs/GdkScreen.xs"
	GList * list, * i;
#line 467 "xs/GdkScreen.c"
#line 108 "xs/GdkScreen.xs"
	list = gdk_screen_list_visuals (screen);
	for (i = list ; i != NULL ; i = i->next)
		XPUSHs (sv_2mortal (newSVGdkVisual (i->data)));
	g_list_free (list);
#line 473 "xs/GdkScreen.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_toplevel_windows); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_toplevel_windows)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "screen");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
#line 121 "xs/GdkScreen.xs"
	GList * list, * i;
#line 493 "xs/GdkScreen.c"
#line 123 "xs/GdkScreen.xs"
	list = gdk_screen_get_toplevel_windows (screen);
	for (i = list ; i != NULL ; i = i->next)
		XPUSHs (sv_2mortal (newSVGdkWindow (i->data)));
	g_list_free (list);
#line 499 "xs/GdkScreen.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_make_display_name); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_make_display_name)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "screen");
    {
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
	gchar_own *	RETVAL;

	RETVAL = gdk_screen_make_display_name(screen);
	{
	    SV * RETVALSV;
	    RETVALSV = sv_newmortal();
	    /* used when we can directly own the returned string. */
	    /* we have to copy in the case when perl's malloc != gtk's malloc,
	     * so best copy all the time. */
	    sv_setpv ((SV*)RETVALSV, RETVAL);
	    SvUTF8_on (RETVALSV);
	    g_free (RETVAL);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_n_monitors); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_n_monitors)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "screen");
    {
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gdk_screen_get_n_monitors(screen);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_monitor_geometry); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_monitor_geometry)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "screen, monitor_num");
    {
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
	gint	monitor_num = (gint)SvIV(ST(1))
;
#line 144 "xs/GdkScreen.xs"
	GdkRectangle dest;
#line 566 "xs/GdkScreen.c"
	GdkRectangle_copy *	RETVAL;
#line 146 "xs/GdkScreen.xs"
	gdk_screen_get_monitor_geometry (screen, monitor_num, &dest);
	RETVAL = &dest;
#line 571 "xs/GdkScreen.c"
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkRectangle_copy (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_monitor_at_point); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_monitor_at_point)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "screen, x, y");
    {
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
	gint	x = (gint)SvIV(ST(1))
;
	gint	y = (gint)SvIV(ST(2))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gdk_screen_get_monitor_at_point(screen, x, y);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_monitor_at_window); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_monitor_at_window)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "screen, window");
    {
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
	GdkWindow *	window = SvGdkWindow (ST(1))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gdk_screen_get_monitor_at_window(screen, window);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


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

	gdk_screen_broadcast_client_message(screen, event);
    }
    XSRETURN_EMPTY;
}


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

	RETVAL = gdk_screen_get_default(/* void */);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkScreen_ornull (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_setting); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_setting)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "screen, name");
    {
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
	const gchar *	name;
#line 183 "xs/GdkScreen.xs"
	GValue value = {0,};
#line 678 "xs/GdkScreen.c"
	SV *	RETVAL;

	/* same as SvGChar(), but not in a function */
	sv_utf8_upgrade (ST(1));
	name = (const gchar *)SvPV_nolen (ST(1))
;
#line 185 "xs/GdkScreen.xs"
	if (!gdk_screen_get_setting (screen, name, &value))
		XSRETURN_UNDEF;
	RETVAL = gperl_sv_from_value (&value);
	g_value_unset (&value);
#line 690 "xs/GdkScreen.c"
	RETVAL = sv_2mortal(RETVAL);
	ST(0) = RETVAL;
    }
    XSRETURN(1);
}

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


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_rgba_colormap); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_rgba_colormap)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "screen");
    {
	GdkColormap_ornull *	RETVAL;
	GdkScreen *	screen = SvGdkScreen (ST(0))
;

	RETVAL = gdk_screen_get_rgba_colormap(screen);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkColormap_ornull (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_rgba_visual); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_rgba_visual)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "screen");
    {
	GdkVisual_ornull *	RETVAL;
	GdkScreen *	screen = SvGdkScreen (ST(0))
;

	RETVAL = gdk_screen_get_rgba_visual(screen);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkVisual_ornull (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}

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


XS_EUPXS(XS_Gtk2__Gdk__Screen_set_resolution); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_set_resolution)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "screen, dpi");
    {
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
	gdouble	dpi = (double)SvNV(ST(1))
;

	gdk_screen_set_resolution(screen, dpi);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_resolution); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_resolution)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "screen");
    {
	gdouble	RETVAL;
	dXSTARG;
	GdkScreen *	screen = SvGdkScreen (ST(0))
;

	RETVAL = gdk_screen_get_resolution(screen);
	XSprePUSH; PUSHn((double)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_active_window); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_active_window)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "screen");
    {
	GdkWindow *	RETVAL;
	GdkScreen *	screen = SvGdkScreen (ST(0))
;

	RETVAL = gdk_screen_get_active_window(screen);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkWindow (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_window_stack); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_window_stack)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "screen");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
#line 215 "xs/GdkScreen.xs"
	GList *list, *i;
#line 822 "xs/GdkScreen.c"
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
#line 217 "xs/GdkScreen.xs"
	list = gdk_screen_get_window_stack (screen);
	for (i = list; i != NULL; i = i->next)
		/* The list owns a reference to the windows. */
		XPUSHs (sv_2mortal (newSVGdkWindow_noinc (i->data)));
	g_list_free (list);
#line 831 "xs/GdkScreen.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_is_composited); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_is_composited)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "screen");
    {
	gboolean	RETVAL;
	GdkScreen *	screen = SvGdkScreen (ST(0))
;

	RETVAL = gdk_screen_is_composited(screen);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}

#endif /* 2.10 */
#if GTK_CHECK_VERSION (2, 14, 0)
#define XSubPPtmpAAAC 1


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_monitor_height_mm); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_monitor_height_mm)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "screen, monitor_num");
    {
	gint	RETVAL;
	dXSTARG;
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
	gint	monitor_num = (gint)SvIV(ST(1))
;

	RETVAL = gdk_screen_get_monitor_height_mm(screen, monitor_num);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_monitor_width_mm); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_monitor_width_mm)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "screen, monitor_num");
    {
	gint	RETVAL;
	dXSTARG;
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
	gint	monitor_num = (gint)SvIV(ST(1))
;

	RETVAL = gdk_screen_get_monitor_width_mm(screen, monitor_num);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_monitor_plug_name); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_monitor_plug_name)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "screen, monitor_num");
    {
	gchar_own_ornull *	RETVAL;
	GdkScreen *	screen = SvGdkScreen (ST(0))
;
	gint	monitor_num = (gint)SvIV(ST(1))
;

	RETVAL = gdk_screen_get_monitor_plug_name(screen, monitor_num);
	{
	    SV * RETVALSV;
	    RETVALSV = sv_newmortal();
	    if (RETVAL) {
		    sv_setpv ((SV*)RETVALSV, RETVAL);
		    SvUTF8_on (RETVALSV);
		    g_free (RETVAL);
	    } else {
		    SvSetSV (RETVALSV, &PL_sv_undef);
	    }
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}

#endif /* 2.14 */
#if GTK_CHECK_VERSION (2, 20, 0)
#define XSubPPtmpAAAD 1


XS_EUPXS(XS_Gtk2__Gdk__Screen_get_primary_monitor); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Screen_get_primary_monitor)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "screen");
    {
	gint	RETVAL;
	dXSTARG;
	GdkScreen *	screen = SvGdkScreen (ST(0))
;

	RETVAL = gdk_screen_get_primary_monitor(screen);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}

#endif /* 2.20 */
#ifdef __cplusplus
extern "C"
#endif
XS_EXTERNAL(boot_Gtk2__Gdk__Screen); /* prototype to pass -Wmissing-prototypes */
XS_EXTERNAL(boot_Gtk2__Gdk__Screen)
{
#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::Screen::get_default_colormap", XS_Gtk2__Gdk__Screen_get_default_colormap);
        newXS_deffile("Gtk2::Gdk::Screen::set_default_colormap", XS_Gtk2__Gdk__Screen_set_default_colormap);
        newXS_deffile("Gtk2::Gdk::Screen::get_system_colormap", XS_Gtk2__Gdk__Screen_get_system_colormap);
        newXS_deffile("Gtk2::Gdk::Screen::get_system_visual", XS_Gtk2__Gdk__Screen_get_system_visual);
        newXS_deffile("Gtk2::Gdk::Screen::get_rgb_colormap", XS_Gtk2__Gdk__Screen_get_rgb_colormap);
        newXS_deffile("Gtk2::Gdk::Screen::get_rgb_visual", XS_Gtk2__Gdk__Screen_get_rgb_visual);
        newXS_deffile("Gtk2::Gdk::Screen::get_root_window", XS_Gtk2__Gdk__Screen_get_root_window);
        newXS_deffile("Gtk2::Gdk::Screen::get_display", XS_Gtk2__Gdk__Screen_get_display);
        newXS_deffile("Gtk2::Gdk::Screen::get_number", XS_Gtk2__Gdk__Screen_get_number);
        newXS_deffile("Gtk2::Gdk::Screen::get_width", XS_Gtk2__Gdk__Screen_get_width);
        newXS_deffile("Gtk2::Gdk::Screen::get_height", XS_Gtk2__Gdk__Screen_get_height);
        newXS_deffile("Gtk2::Gdk::Screen::get_width_mm", XS_Gtk2__Gdk__Screen_get_width_mm);
        newXS_deffile("Gtk2::Gdk::Screen::get_height_mm", XS_Gtk2__Gdk__Screen_get_height_mm);
        newXS_deffile("Gtk2::Gdk::Screen::list_visuals", XS_Gtk2__Gdk__Screen_list_visuals);
        newXS_deffile("Gtk2::Gdk::Screen::get_toplevel_windows", XS_Gtk2__Gdk__Screen_get_toplevel_windows);
        newXS_deffile("Gtk2::Gdk::Screen::make_display_name", XS_Gtk2__Gdk__Screen_make_display_name);
        newXS_deffile("Gtk2::Gdk::Screen::get_n_monitors", XS_Gtk2__Gdk__Screen_get_n_monitors);
        newXS_deffile("Gtk2::Gdk::Screen::get_monitor_geometry", XS_Gtk2__Gdk__Screen_get_monitor_geometry);
        newXS_deffile("Gtk2::Gdk::Screen::get_monitor_at_point", XS_Gtk2__Gdk__Screen_get_monitor_at_point);
        newXS_deffile("Gtk2::Gdk::Screen::get_monitor_at_window", XS_Gtk2__Gdk__Screen_get_monitor_at_window);
        newXS_deffile("Gtk2::Gdk::Screen::broadcast_client_message", XS_Gtk2__Gdk__Screen_broadcast_client_message);
        newXS_deffile("Gtk2::Gdk::Screen::get_default", XS_Gtk2__Gdk__Screen_get_default);
        newXS_deffile("Gtk2::Gdk::Screen::get_setting", XS_Gtk2__Gdk__Screen_get_setting);
#if XSubPPtmpAAAA
        newXS_deffile("Gtk2::Gdk::Screen::get_rgba_colormap", XS_Gtk2__Gdk__Screen_get_rgba_colormap);
        newXS_deffile("Gtk2::Gdk::Screen::get_rgba_visual", XS_Gtk2__Gdk__Screen_get_rgba_visual);
#endif
#if XSubPPtmpAAAB
        newXS_deffile("Gtk2::Gdk::Screen::set_resolution", XS_Gtk2__Gdk__Screen_set_resolution);
        newXS_deffile("Gtk2::Gdk::Screen::get_resolution", XS_Gtk2__Gdk__Screen_get_resolution);
        newXS_deffile("Gtk2::Gdk::Screen::get_active_window", XS_Gtk2__Gdk__Screen_get_active_window);
        newXS_deffile("Gtk2::Gdk::Screen::get_window_stack", XS_Gtk2__Gdk__Screen_get_window_stack);
        newXS_deffile("Gtk2::Gdk::Screen::is_composited", XS_Gtk2__Gdk__Screen_is_composited);
#endif
#if XSubPPtmpAAAC
        newXS_deffile("Gtk2::Gdk::Screen::get_monitor_height_mm", XS_Gtk2__Gdk__Screen_get_monitor_height_mm);
        newXS_deffile("Gtk2::Gdk::Screen::get_monitor_width_mm", XS_Gtk2__Gdk__Screen_get_monitor_width_mm);
        newXS_deffile("Gtk2::Gdk::Screen::get_monitor_plug_name", XS_Gtk2__Gdk__Screen_get_monitor_plug_name);
#endif
#if XSubPPtmpAAAD
        newXS_deffile("Gtk2::Gdk::Screen::get_primary_monitor", XS_Gtk2__Gdk__Screen_get_primary_monitor);
#endif

    /* Initialisation Section */

#line 27 "xs/GdkScreen.xs"
	/* the gdk backends override the public GdkScreen with private,
	 * back-end-specific types.  tell gperl_get_object not to 
	 * complain about them.  */
	gperl_object_set_no_warn_unreg_subclass (GDK_TYPE_SCREEN, TRUE);

#if XSubPPtmpAAAA
#endif
#if XSubPPtmpAAAB
#endif
#if XSubPPtmpAAAC
#endif
#if XSubPPtmpAAAD
#endif
#line 1043 "xs/GdkScreen.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
}

