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

#line 1 "xs/GtkTextIter.xs"
/*
 * Copyright (c) 2003-2005 by the gtk2-perl team (see the file AUTHORS)
 *
 * Licensed under the LGPL, see LICENSE file for more information.
 *
 * $Id$
 */

#include "gtk2perl.h"
#include <gperl_marshal.h>

static GPerlCallback *
create_text_char_predicate_callback (SV * func, SV * data)
{
	return gperl_callback_new (func, data, 0, NULL, G_TYPE_BOOLEAN);
}

static gboolean
gtk2perl_text_char_predicate (gunichar ch,
                              gpointer user_data)
{
	GPerlCallback * callback = (GPerlCallback *) user_data;
	gboolean ret;
	SV * svch;
	gchar temp[6];
	gint length;
	dGPERL_CALLBACK_MARSHAL_SP;

	GPERL_CALLBACK_MARSHAL_INIT (callback);

	ENTER;
	SAVETMPS;
	PUSHMARK (SP);

	length = g_unichar_to_utf8 (ch, temp);
	svch = newSVpv (temp, length);
	SvUTF8_on (svch);
	XPUSHs (sv_2mortal (svch));

	if (callback->data)
		XPUSHs (callback->data);

	PUTBACK;
	call_sv (callback->func, G_SCALAR);
	SPAGAIN;

	ret = POPi;

	PUTBACK;
	FREETMPS;
	LEAVE;
 
	return ret;
}

#line 66 "xs/GtkTextIter.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 210 "xs/GtkTextIter.c"

XS_EUPXS(XS_Gtk2__TextIter_get_buffer); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_get_buffer)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	GtkTextBuffer *	RETVAL;

	RETVAL = gtk_text_iter_get_buffer(iter);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkTextBuffer (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_get_offset); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_get_offset)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gtk_text_iter_get_offset(iter);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_get_line); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_get_line)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gtk_text_iter_get_line(iter);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_get_line_offset); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_get_line_offset)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gtk_text_iter_get_line_offset(iter);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_get_line_index); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_get_line_index)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gtk_text_iter_get_line_index(iter);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_get_visible_line_offset); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_get_visible_line_offset)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gtk_text_iter_get_visible_line_offset(iter);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_get_visible_line_index); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_get_visible_line_index)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gtk_text_iter_get_visible_line_index(iter);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_get_char); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_get_char)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gunichar	RETVAL;

	RETVAL = gtk_text_iter_get_char(iter);
	{
	    SV * RETVALSV;
	    RETVALSV = sv_newmortal();
	    {
	    gchar temp[6];
	    gint length = g_unichar_to_utf8 (RETVAL, temp);
	    sv_setpvn ((SV*)RETVALSV, temp, length);
	    SvUTF8_on (RETVALSV);
	    }
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_get_slice); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_get_slice)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "start, end");
    {
	GtkTextIter *	start = SvGtkTextIter (ST(0))
;
	GtkTextIter *	end = SvGtkTextIter (ST(1))
;
	gchar_own *	RETVAL;

	RETVAL = gtk_text_iter_get_slice(start, end);
	{
	    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__TextIter_get_text); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_get_text)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "start, end");
    {
	GtkTextIter *	start = SvGtkTextIter (ST(0))
;
	GtkTextIter *	end = SvGtkTextIter (ST(1))
;
	gchar_own *	RETVAL;

	RETVAL = gtk_text_iter_get_text(start, end);
	{
	    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__TextIter_get_visible_slice); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_get_visible_slice)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "start, end");
    {
	gchar_own *	RETVAL;
	GtkTextIter *	start = SvGtkTextIter (ST(0))
;
	GtkTextIter *	end = SvGtkTextIter (ST(1))
;

	RETVAL = gtk_text_iter_get_visible_slice(start, end);
	{
	    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__TextIter_get_visible_text); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_get_visible_text)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "start, end");
    {
	gchar_own *	RETVAL;
	GtkTextIter *	start = SvGtkTextIter (ST(0))
;
	GtkTextIter *	end = SvGtkTextIter (ST(1))
;

	RETVAL = gtk_text_iter_get_visible_text(start, end);
	{
	    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__TextIter_get_pixbuf); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_get_pixbuf)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	GdkPixbuf_ornull *	RETVAL;

	RETVAL = gtk_text_iter_get_pixbuf(iter);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkPixbuf_ornull (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_get_marks); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_get_marks)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
#line 130 "xs/GtkTextIter.xs"
	GSList * marks, * i;
#line 531 "xs/GtkTextIter.c"
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
#line 132 "xs/GtkTextIter.xs"
	marks = gtk_text_iter_get_marks (iter);
	for (i = marks ; i != NULL ; i = i->next)
		XPUSHs (sv_2mortal (newSVGtkTextMark (i->data)));
	g_slist_free (marks);
#line 539 "xs/GtkTextIter.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__TextIter_get_toggled_tags); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_get_toggled_tags)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, toggled_on");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
#line 148 "xs/GtkTextIter.xs"
	GSList * tags, * i;
#line 557 "xs/GtkTextIter.c"
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	toggled_on = (bool)SvTRUE(ST(1))
;
#line 150 "xs/GtkTextIter.xs"
	tags = gtk_text_iter_get_toggled_tags (iter, toggled_on);
	for (i = tags ; i != NULL ; i = i->next)
		XPUSHs (sv_2mortal (newSVGtkTextTag (i->data)));
	g_slist_free (tags);
#line 567 "xs/GtkTextIter.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__TextIter_get_child_anchor); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_get_child_anchor)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	GtkTextChildAnchor_ornull *	RETVAL;

	RETVAL = gtk_text_iter_get_child_anchor(iter);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkTextChildAnchor_ornull (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_begins_tag); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_begins_tag)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, tag");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	GtkTextTag_ornull *	tag = SvGtkTextTag_ornull (ST(1))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_begins_tag(iter, tag);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_ends_tag); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_ends_tag)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, tag");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	GtkTextTag_ornull *	tag = SvGtkTextTag_ornull (ST(1))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_ends_tag(iter, tag);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_toggles_tag); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_toggles_tag)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, tag");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	GtkTextTag_ornull *	tag = SvGtkTextTag_ornull (ST(1))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_toggles_tag(iter, tag);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_has_tag); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_has_tag)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, tag");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	GtkTextTag *	tag = SvGtkTextTag (ST(1))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_has_tag(iter, tag);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_get_tags); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_get_tags)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
#line 192 "xs/GtkTextIter.xs"
	GSList* slist, *i;
#line 688 "xs/GtkTextIter.c"
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
#line 194 "xs/GtkTextIter.xs"
	slist = gtk_text_iter_get_tags (iter);
	for (i = slist ; i != NULL ; i = i->next)
		XPUSHs (sv_2mortal (newSVGtkTextTag (i->data)));
	g_slist_free (slist);
#line 696 "xs/GtkTextIter.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__TextIter_editable); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_editable)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, default_setting");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	default_setting = (bool)SvTRUE(ST(1))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_editable(iter, default_setting);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_can_insert); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_can_insert)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, default_editability");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	default_editability = (bool)SvTRUE(ST(1))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_can_insert(iter, default_editability);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_starts_word); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_starts_word)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_starts_word(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_ends_word); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_ends_word)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_ends_word(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_inside_word); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_inside_word)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_inside_word(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_starts_sentence); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_starts_sentence)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_starts_sentence(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_ends_sentence); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_ends_sentence)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_ends_sentence(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_inside_sentence); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_inside_sentence)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_inside_sentence(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_starts_line); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_starts_line)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_starts_line(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_ends_line); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_ends_line)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_ends_line(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_is_cursor_position); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_is_cursor_position)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_is_cursor_position(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_get_chars_in_line); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_get_chars_in_line)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gtk_text_iter_get_chars_in_line(iter);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_get_bytes_in_line); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_get_bytes_in_line)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gtk_text_iter_get_bytes_in_line(iter);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_get_attributes); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_get_attributes)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
#line 271 "xs/GtkTextIter.xs"
	GtkTextAttributes values;
#line 952 "xs/GtkTextIter.c"
	GtkTextAttributes_copy *	RETVAL;
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
#line 273 "xs/GtkTextIter.xs"
	if (!gtk_text_iter_get_attributes (iter, &values))
		XSRETURN_UNDEF;
	RETVAL = &values;
#line 960 "xs/GtkTextIter.c"
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGtkTextAttributes_copy (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_get_language); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_get_language)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	PangoLanguage *	RETVAL;

	RETVAL = gtk_text_iter_get_language(iter);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVPangoLanguage (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_is_end); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_is_end)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_is_end(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_is_start); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_is_start)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_is_start(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_forward_char); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_forward_char)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_forward_char(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_backward_char); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_backward_char)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_backward_char(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_forward_chars); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_forward_chars)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, count");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	count = (gint)SvIV(ST(1))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_forward_chars(iter, count);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_backward_chars); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_backward_chars)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, count");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	count = (gint)SvIV(ST(1))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_backward_chars(iter, count);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_forward_line); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_forward_line)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_forward_line(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_backward_line); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_backward_line)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_backward_line(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_forward_lines); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_forward_lines)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, count");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	count = (gint)SvIV(ST(1))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_forward_lines(iter, count);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_backward_lines); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_backward_lines)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, count");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	count = (gint)SvIV(ST(1))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_backward_lines(iter, count);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_forward_word_end); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_forward_word_end)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_forward_word_end(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_backward_word_start); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_backward_word_start)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_backward_word_start(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_forward_word_ends); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_forward_word_ends)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, count");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	count = (gint)SvIV(ST(1))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_forward_word_ends(iter, count);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_backward_word_starts); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_backward_word_starts)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, count");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	count = (gint)SvIV(ST(1))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_backward_word_starts(iter, count);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}

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


XS_EUPXS(XS_Gtk2__TextIter_forward_visible_word_end); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_forward_visible_word_end)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	gboolean	RETVAL;
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;

	RETVAL = gtk_text_iter_forward_visible_word_end(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_backward_visible_word_start); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_backward_visible_word_start)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	gboolean	RETVAL;
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;

	RETVAL = gtk_text_iter_backward_visible_word_start(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_forward_visible_word_ends); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_forward_visible_word_ends)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, count");
    {
	gboolean	RETVAL;
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	count = (gint)SvIV(ST(1))
;

	RETVAL = gtk_text_iter_forward_visible_word_ends(iter, count);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_backward_visible_word_starts); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_backward_visible_word_starts)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, count");
    {
	gboolean	RETVAL;
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	count = (gint)SvIV(ST(1))
;

	RETVAL = gtk_text_iter_backward_visible_word_starts(iter, count);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}

#endif

XS_EUPXS(XS_Gtk2__TextIter_forward_sentence_end); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_forward_sentence_end)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_forward_sentence_end(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_backward_sentence_start); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_backward_sentence_start)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_backward_sentence_start(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_forward_sentence_ends); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_forward_sentence_ends)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, count");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	count = (gint)SvIV(ST(1))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_forward_sentence_ends(iter, count);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_backward_sentence_starts); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_backward_sentence_starts)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, count");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	count = (gint)SvIV(ST(1))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_backward_sentence_starts(iter, count);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_forward_cursor_position); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_forward_cursor_position)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_forward_cursor_position(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_backward_cursor_position); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_backward_cursor_position)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_backward_cursor_position(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_forward_cursor_positions); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_forward_cursor_positions)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, count");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	count = (gint)SvIV(ST(1))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_forward_cursor_positions(iter, count);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_backward_cursor_positions); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_backward_cursor_positions)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, count");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	count = (gint)SvIV(ST(1))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_backward_cursor_positions(iter, count);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}

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


XS_EUPXS(XS_Gtk2__TextIter_forward_visible_cursor_position); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_forward_visible_cursor_position)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	gboolean	RETVAL;
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;

	RETVAL = gtk_text_iter_forward_visible_cursor_position(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_backward_visible_cursor_position); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_backward_visible_cursor_position)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	gboolean	RETVAL;
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;

	RETVAL = gtk_text_iter_backward_visible_cursor_position(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_forward_visible_cursor_positions); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_forward_visible_cursor_positions)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, count");
    {
	gboolean	RETVAL;
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	count = (gint)SvIV(ST(1))
;

	RETVAL = gtk_text_iter_forward_visible_cursor_positions(iter, count);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_backward_visible_cursor_positions); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_backward_visible_cursor_positions)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, count");
    {
	gboolean	RETVAL;
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	count = (gint)SvIV(ST(1))
;

	RETVAL = gtk_text_iter_backward_visible_cursor_positions(iter, count);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}

#endif

XS_EUPXS(XS_Gtk2__TextIter_set_offset); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_set_offset)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, char_offset");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	char_offset = (gint)SvIV(ST(1))
;

	gtk_text_iter_set_offset(iter, char_offset);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextIter_set_line); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_set_line)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, line_number");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	line_number = (gint)SvIV(ST(1))
;

	gtk_text_iter_set_line(iter, line_number);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextIter_set_line_offset); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_set_line_offset)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, char_on_line");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	char_on_line = (gint)SvIV(ST(1))
;

	gtk_text_iter_set_line_offset(iter, char_on_line);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextIter_set_line_index); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_set_line_index)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, byte_on_line");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	byte_on_line = (gint)SvIV(ST(1))
;

	gtk_text_iter_set_line_index(iter, byte_on_line);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextIter_forward_to_end); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_forward_to_end)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;

	gtk_text_iter_forward_to_end(iter);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextIter_forward_to_line_end); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_forward_to_line_end)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_forward_to_line_end(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_set_visible_line_offset); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_set_visible_line_offset)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, char_on_line");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	char_on_line = (gint)SvIV(ST(1))
;

	gtk_text_iter_set_visible_line_offset(iter, char_on_line);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextIter_set_visible_line_index); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_set_visible_line_index)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, byte_on_line");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	byte_on_line = (gint)SvIV(ST(1))
;

	gtk_text_iter_set_visible_line_index(iter, byte_on_line);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextIter_forward_to_tag_toggle); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_forward_to_tag_toggle)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, tag");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	GtkTextTag_ornull *	tag = SvGtkTextTag_ornull (ST(1))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_forward_to_tag_toggle(iter, tag);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_backward_to_tag_toggle); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_backward_to_tag_toggle)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, tag");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	GtkTextTag_ornull *	tag = SvGtkTextTag_ornull (ST(1))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_backward_to_tag_toggle(iter, tag);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_forward_find_char); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_forward_find_char)
{
    dVAR; dXSARGS;
    dXSI32;
    if (items < 2 || items > 4)
       croak_xs_usage(cv,  "iter, pred, user_data=NULL, limit=NULL");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	SV *	pred = ST(1)
;
	SV *	user_data;
	GtkTextIter_ornull *	limit;
#line 498 "xs/GtkTextIter.xs"
	GPerlCallback * callback;
#line 1769 "xs/GtkTextIter.c"
	gboolean	RETVAL;

	if (items < 3)
	    user_data = NULL;
	else {
	    user_data = ST(2)
;
	}

	if (items < 4)
	    limit = NULL;
	else {
	    limit = SvGtkTextIter_ornull (ST(3))
;
	}
#line 500 "xs/GtkTextIter.xs"
	callback = create_text_char_predicate_callback (pred, user_data);
	if (ix == 1)
		RETVAL = gtk_text_iter_backward_find_char
				(iter, gtk2perl_text_char_predicate,
				 callback, limit);
	else
		RETVAL = gtk_text_iter_forward_find_char
				(iter, gtk2perl_text_char_predicate,
				 callback, limit);
	gperl_callback_destroy (callback);
#line 1796 "xs/GtkTextIter.c"
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_forward_search); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_forward_search)
{
    dVAR; dXSARGS;
    dXSI32;
    if (items < 3 || items > 4)
       croak_xs_usage(cv,  "iter, str, flags, limit=NULL");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	const GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	const gchar *	str;
	GtkTextSearchFlags	flags = SvGtkTextSearchFlags (ST(2))
;
	GtkTextIter_ornull *	limit;
#line 532 "xs/GtkTextIter.xs"
	GtkTextIter match_start;
	GtkTextIter match_end;
	gboolean (*searchfunc) (const GtkTextIter*, const gchar*,
	                        GtkTextSearchFlags, GtkTextIter*, GtkTextIter*,
	                        const GtkTextIter*);
#line 1825 "xs/GtkTextIter.c"

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

	if (items < 4)
	    limit = NULL;
	else {
	    limit = SvGtkTextIter_ornull (ST(3))
;
	}
#line 538 "xs/GtkTextIter.xs"
	searchfunc = ix == 1
	           ? gtk_text_iter_backward_search
	           : gtk_text_iter_forward_search;
	if (! searchfunc (iter, str, flags, &match_start, &match_end, limit))
		XSRETURN_EMPTY;
	EXTEND (SP, 2);
	PUSHs (sv_2mortal (newSVGtkTextIter_copy (&match_start)));
	PUSHs (sv_2mortal (newSVGtkTextIter_copy (&match_end)));
#line 1847 "xs/GtkTextIter.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__TextIter_equal); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_equal)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "lhs, rhs");
    {
	GtkTextIter *	lhs = SvGtkTextIter (ST(0))
;
	GtkTextIter *	rhs = SvGtkTextIter (ST(1))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_equal(lhs, rhs);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_compare); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_compare)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "lhs, rhs");
    {
	GtkTextIter *	lhs = SvGtkTextIter (ST(0))
;
	GtkTextIter *	rhs = SvGtkTextIter (ST(1))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gtk_text_iter_compare(lhs, rhs);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_in_range); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_in_range)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "iter, start, end");
    {
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	GtkTextIter *	start = SvGtkTextIter (ST(1))
;
	GtkTextIter *	end = SvGtkTextIter (ST(2))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_iter_in_range(iter, start, end);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_order); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_order)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "first, second");
    {
	GtkTextIter *	first = SvGtkTextIter (ST(0))
;
	GtkTextIter *	second = SvGtkTextIter (ST(1))
;

	gtk_text_iter_order(first, second);
    }
    XSRETURN_EMPTY;
}

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


XS_EUPXS(XS_Gtk2__TextIter_forward_visible_line); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_forward_visible_line)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	gboolean	RETVAL;
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;

	RETVAL = gtk_text_iter_forward_visible_line(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_backward_visible_line); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_backward_visible_line)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "iter");
    {
	gboolean	RETVAL;
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;

	RETVAL = gtk_text_iter_backward_visible_line(iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_forward_visible_lines); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_forward_visible_lines)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, count");
    {
	gboolean	RETVAL;
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	count = (gint)SvIV(ST(1))
;

	RETVAL = gtk_text_iter_forward_visible_lines(iter, count);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextIter_backward_visible_lines); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextIter_backward_visible_lines)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "iter, count");
    {
	gboolean	RETVAL;
	GtkTextIter *	iter = SvGtkTextIter (ST(0))
;
	gint	count = (gint)SvIV(ST(1))
;

	RETVAL = gtk_text_iter_backward_visible_lines(iter, count);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}

#endif
#ifdef __cplusplus
extern "C"
#endif
XS_EXTERNAL(boot_Gtk2__TextIter); /* prototype to pass -Wmissing-prototypes */
XS_EXTERNAL(boot_Gtk2__TextIter)
{
#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::TextIter::get_buffer", XS_Gtk2__TextIter_get_buffer);
        newXS_deffile("Gtk2::TextIter::get_offset", XS_Gtk2__TextIter_get_offset);
        newXS_deffile("Gtk2::TextIter::get_line", XS_Gtk2__TextIter_get_line);
        newXS_deffile("Gtk2::TextIter::get_line_offset", XS_Gtk2__TextIter_get_line_offset);
        newXS_deffile("Gtk2::TextIter::get_line_index", XS_Gtk2__TextIter_get_line_index);
        newXS_deffile("Gtk2::TextIter::get_visible_line_offset", XS_Gtk2__TextIter_get_visible_line_offset);
        newXS_deffile("Gtk2::TextIter::get_visible_line_index", XS_Gtk2__TextIter_get_visible_line_index);
        newXS_deffile("Gtk2::TextIter::get_char", XS_Gtk2__TextIter_get_char);
        newXS_deffile("Gtk2::TextIter::get_slice", XS_Gtk2__TextIter_get_slice);
        newXS_deffile("Gtk2::TextIter::get_text", XS_Gtk2__TextIter_get_text);
        newXS_deffile("Gtk2::TextIter::get_visible_slice", XS_Gtk2__TextIter_get_visible_slice);
        newXS_deffile("Gtk2::TextIter::get_visible_text", XS_Gtk2__TextIter_get_visible_text);
        newXS_deffile("Gtk2::TextIter::get_pixbuf", XS_Gtk2__TextIter_get_pixbuf);
        newXS_deffile("Gtk2::TextIter::get_marks", XS_Gtk2__TextIter_get_marks);
        newXS_deffile("Gtk2::TextIter::get_toggled_tags", XS_Gtk2__TextIter_get_toggled_tags);
        newXS_deffile("Gtk2::TextIter::get_child_anchor", XS_Gtk2__TextIter_get_child_anchor);
        newXS_deffile("Gtk2::TextIter::begins_tag", XS_Gtk2__TextIter_begins_tag);
        newXS_deffile("Gtk2::TextIter::ends_tag", XS_Gtk2__TextIter_ends_tag);
        newXS_deffile("Gtk2::TextIter::toggles_tag", XS_Gtk2__TextIter_toggles_tag);
        newXS_deffile("Gtk2::TextIter::has_tag", XS_Gtk2__TextIter_has_tag);
        newXS_deffile("Gtk2::TextIter::get_tags", XS_Gtk2__TextIter_get_tags);
        newXS_deffile("Gtk2::TextIter::editable", XS_Gtk2__TextIter_editable);
        newXS_deffile("Gtk2::TextIter::can_insert", XS_Gtk2__TextIter_can_insert);
        newXS_deffile("Gtk2::TextIter::starts_word", XS_Gtk2__TextIter_starts_word);
        newXS_deffile("Gtk2::TextIter::ends_word", XS_Gtk2__TextIter_ends_word);
        newXS_deffile("Gtk2::TextIter::inside_word", XS_Gtk2__TextIter_inside_word);
        newXS_deffile("Gtk2::TextIter::starts_sentence", XS_Gtk2__TextIter_starts_sentence);
        newXS_deffile("Gtk2::TextIter::ends_sentence", XS_Gtk2__TextIter_ends_sentence);
        newXS_deffile("Gtk2::TextIter::inside_sentence", XS_Gtk2__TextIter_inside_sentence);
        newXS_deffile("Gtk2::TextIter::starts_line", XS_Gtk2__TextIter_starts_line);
        newXS_deffile("Gtk2::TextIter::ends_line", XS_Gtk2__TextIter_ends_line);
        newXS_deffile("Gtk2::TextIter::is_cursor_position", XS_Gtk2__TextIter_is_cursor_position);
        newXS_deffile("Gtk2::TextIter::get_chars_in_line", XS_Gtk2__TextIter_get_chars_in_line);
        newXS_deffile("Gtk2::TextIter::get_bytes_in_line", XS_Gtk2__TextIter_get_bytes_in_line);
        newXS_deffile("Gtk2::TextIter::get_attributes", XS_Gtk2__TextIter_get_attributes);
        newXS_deffile("Gtk2::TextIter::get_language", XS_Gtk2__TextIter_get_language);
        newXS_deffile("Gtk2::TextIter::is_end", XS_Gtk2__TextIter_is_end);
        newXS_deffile("Gtk2::TextIter::is_start", XS_Gtk2__TextIter_is_start);
        newXS_deffile("Gtk2::TextIter::forward_char", XS_Gtk2__TextIter_forward_char);
        newXS_deffile("Gtk2::TextIter::backward_char", XS_Gtk2__TextIter_backward_char);
        newXS_deffile("Gtk2::TextIter::forward_chars", XS_Gtk2__TextIter_forward_chars);
        newXS_deffile("Gtk2::TextIter::backward_chars", XS_Gtk2__TextIter_backward_chars);
        newXS_deffile("Gtk2::TextIter::forward_line", XS_Gtk2__TextIter_forward_line);
        newXS_deffile("Gtk2::TextIter::backward_line", XS_Gtk2__TextIter_backward_line);
        newXS_deffile("Gtk2::TextIter::forward_lines", XS_Gtk2__TextIter_forward_lines);
        newXS_deffile("Gtk2::TextIter::backward_lines", XS_Gtk2__TextIter_backward_lines);
        newXS_deffile("Gtk2::TextIter::forward_word_end", XS_Gtk2__TextIter_forward_word_end);
        newXS_deffile("Gtk2::TextIter::backward_word_start", XS_Gtk2__TextIter_backward_word_start);
        newXS_deffile("Gtk2::TextIter::forward_word_ends", XS_Gtk2__TextIter_forward_word_ends);
        newXS_deffile("Gtk2::TextIter::backward_word_starts", XS_Gtk2__TextIter_backward_word_starts);
#if XSubPPtmpAAAA
        newXS_deffile("Gtk2::TextIter::forward_visible_word_end", XS_Gtk2__TextIter_forward_visible_word_end);
        newXS_deffile("Gtk2::TextIter::backward_visible_word_start", XS_Gtk2__TextIter_backward_visible_word_start);
        newXS_deffile("Gtk2::TextIter::forward_visible_word_ends", XS_Gtk2__TextIter_forward_visible_word_ends);
        newXS_deffile("Gtk2::TextIter::backward_visible_word_starts", XS_Gtk2__TextIter_backward_visible_word_starts);
#endif
        newXS_deffile("Gtk2::TextIter::forward_sentence_end", XS_Gtk2__TextIter_forward_sentence_end);
        newXS_deffile("Gtk2::TextIter::backward_sentence_start", XS_Gtk2__TextIter_backward_sentence_start);
        newXS_deffile("Gtk2::TextIter::forward_sentence_ends", XS_Gtk2__TextIter_forward_sentence_ends);
        newXS_deffile("Gtk2::TextIter::backward_sentence_starts", XS_Gtk2__TextIter_backward_sentence_starts);
        newXS_deffile("Gtk2::TextIter::forward_cursor_position", XS_Gtk2__TextIter_forward_cursor_position);
        newXS_deffile("Gtk2::TextIter::backward_cursor_position", XS_Gtk2__TextIter_backward_cursor_position);
        newXS_deffile("Gtk2::TextIter::forward_cursor_positions", XS_Gtk2__TextIter_forward_cursor_positions);
        newXS_deffile("Gtk2::TextIter::backward_cursor_positions", XS_Gtk2__TextIter_backward_cursor_positions);
#if XSubPPtmpAAAB
        newXS_deffile("Gtk2::TextIter::forward_visible_cursor_position", XS_Gtk2__TextIter_forward_visible_cursor_position);
        newXS_deffile("Gtk2::TextIter::backward_visible_cursor_position", XS_Gtk2__TextIter_backward_visible_cursor_position);
        newXS_deffile("Gtk2::TextIter::forward_visible_cursor_positions", XS_Gtk2__TextIter_forward_visible_cursor_positions);
        newXS_deffile("Gtk2::TextIter::backward_visible_cursor_positions", XS_Gtk2__TextIter_backward_visible_cursor_positions);
#endif
        newXS_deffile("Gtk2::TextIter::set_offset", XS_Gtk2__TextIter_set_offset);
        newXS_deffile("Gtk2::TextIter::set_line", XS_Gtk2__TextIter_set_line);
        newXS_deffile("Gtk2::TextIter::set_line_offset", XS_Gtk2__TextIter_set_line_offset);
        newXS_deffile("Gtk2::TextIter::set_line_index", XS_Gtk2__TextIter_set_line_index);
        newXS_deffile("Gtk2::TextIter::forward_to_end", XS_Gtk2__TextIter_forward_to_end);
        newXS_deffile("Gtk2::TextIter::forward_to_line_end", XS_Gtk2__TextIter_forward_to_line_end);
        newXS_deffile("Gtk2::TextIter::set_visible_line_offset", XS_Gtk2__TextIter_set_visible_line_offset);
        newXS_deffile("Gtk2::TextIter::set_visible_line_index", XS_Gtk2__TextIter_set_visible_line_index);
        newXS_deffile("Gtk2::TextIter::forward_to_tag_toggle", XS_Gtk2__TextIter_forward_to_tag_toggle);
        newXS_deffile("Gtk2::TextIter::backward_to_tag_toggle", XS_Gtk2__TextIter_backward_to_tag_toggle);
        cv = newXS_deffile("Gtk2::TextIter::backward_find_char", XS_Gtk2__TextIter_forward_find_char);
        XSANY.any_i32 = 1;
        cv = newXS_deffile("Gtk2::TextIter::forward_find_char", XS_Gtk2__TextIter_forward_find_char);
        XSANY.any_i32 = 0;
        cv = newXS_deffile("Gtk2::TextIter::backward_search", XS_Gtk2__TextIter_forward_search);
        XSANY.any_i32 = 1;
        cv = newXS_deffile("Gtk2::TextIter::forward_search", XS_Gtk2__TextIter_forward_search);
        XSANY.any_i32 = 0;
        newXS_deffile("Gtk2::TextIter::equal", XS_Gtk2__TextIter_equal);
        newXS_deffile("Gtk2::TextIter::compare", XS_Gtk2__TextIter_compare);
        newXS_deffile("Gtk2::TextIter::in_range", XS_Gtk2__TextIter_in_range);
        newXS_deffile("Gtk2::TextIter::order", XS_Gtk2__TextIter_order);
#if XSubPPtmpAAAC
        newXS_deffile("Gtk2::TextIter::forward_visible_line", XS_Gtk2__TextIter_forward_visible_line);
        newXS_deffile("Gtk2::TextIter::backward_visible_line", XS_Gtk2__TextIter_backward_visible_line);
        newXS_deffile("Gtk2::TextIter::forward_visible_lines", XS_Gtk2__TextIter_forward_visible_lines);
        newXS_deffile("Gtk2::TextIter::backward_visible_lines", XS_Gtk2__TextIter_backward_visible_lines);
#endif

    /* Initialisation Section */

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

