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

#line 1 "xs/GtkTextView.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 34 "xs/GtkTextView.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 176 "xs/GtkTextView.c"

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

	RETVAL = gtk_text_view_new(/* void */);
	ST(0) = newSVGtkWidget (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextView_new_with_buffer); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_new_with_buffer)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, buffer");
    {
	GtkTextBuffer *	buffer = SvGtkTextBuffer (ST(1))
;
	GtkWidget *	RETVAL;

	RETVAL = gtk_text_view_new_with_buffer(buffer);
	ST(0) = newSVGtkWidget (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextView_set_buffer); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_set_buffer)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "text_view, buffer");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	GtkTextBuffer *	buffer = SvGtkTextBuffer (ST(1))
;

	gtk_text_view_set_buffer(text_view, buffer);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextView_scroll_to_iter); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_scroll_to_iter)
{
    dVAR; dXSARGS;
    if (items != 6)
       croak_xs_usage(cv,  "text_view, iter, within_margin, use_align, xalign, yalign");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	GtkTextIter *	iter = SvGtkTextIter (ST(1))
;
	gdouble	within_margin = (double)SvNV(ST(2))
;
	gboolean	use_align = (bool)SvTRUE(ST(3))
;
	gdouble	xalign = (double)SvNV(ST(4))
;
	gdouble	yalign = (double)SvNV(ST(5))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_view_scroll_to_iter(text_view, iter, within_margin, use_align, xalign, yalign);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextView_scroll_to_mark); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_scroll_to_mark)
{
    dVAR; dXSARGS;
    if (items != 6)
       croak_xs_usage(cv,  "text_view, mark, within_margin, use_align, xalign, yalign");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	GtkTextMark *	mark = SvGtkTextMark (ST(1))
;
	gdouble	within_margin = (double)SvNV(ST(2))
;
	gboolean	use_align = (bool)SvTRUE(ST(3))
;
	gdouble	xalign = (double)SvNV(ST(4))
;
	gdouble	yalign = (double)SvNV(ST(5))
;

	gtk_text_view_scroll_to_mark(text_view, mark, within_margin, use_align, xalign, yalign);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextView_scroll_mark_onscreen); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_scroll_mark_onscreen)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "text_view, mark");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	GtkTextMark *	mark = SvGtkTextMark (ST(1))
;

	gtk_text_view_scroll_mark_onscreen(text_view, mark);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextView_move_mark_onscreen); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_move_mark_onscreen)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "text_view, mark");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	GtkTextMark *	mark = SvGtkTextMark (ST(1))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_view_move_mark_onscreen(text_view, mark);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextView_place_cursor_onscreen); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_place_cursor_onscreen)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "text_view");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_view_place_cursor_onscreen(text_view);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextView_get_visible_rect); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_visible_rect)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "text_view");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
#line 87 "xs/GtkTextView.xs"
	GdkRectangle visible_rect;
#line 353 "xs/GtkTextView.c"
	GdkRectangle_copy *	RETVAL;
#line 89 "xs/GtkTextView.xs"
	gtk_text_view_get_visible_rect (text_view, &visible_rect);
	RETVAL = &visible_rect;
#line 358 "xs/GtkTextView.c"
	ST(0) = newSVGdkRectangle_copy (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextView_set_cursor_visible); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_set_cursor_visible)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "text_view, setting");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	gboolean	setting = (bool)SvTRUE(ST(1))
;

	gtk_text_view_set_cursor_visible(text_view, setting);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextView_get_cursor_visible); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_cursor_visible)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "text_view");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_view_get_cursor_visible(text_view);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextView_get_iter_location); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_iter_location)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "text_view, iter");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	GtkTextIter *	iter = SvGtkTextIter (ST(1))
;
#line 111 "xs/GtkTextView.xs"
	GdkRectangle location;
#line 415 "xs/GtkTextView.c"
	GdkRectangle_copy *	RETVAL;
#line 113 "xs/GtkTextView.xs"
	gtk_text_view_get_iter_location (text_view, iter, &location);
	RETVAL = &location;
#line 420 "xs/GtkTextView.c"
	ST(0) = newSVGdkRectangle_copy (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextView_get_iter_at_location); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_iter_at_location)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "text_view, x, y");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	gint	x = (gint)SvIV(ST(1))
;
	gint	y = (gint)SvIV(ST(2))
;
#line 125 "xs/GtkTextView.xs"
	GtkTextIter iter;
#line 443 "xs/GtkTextView.c"
	GtkTextIter_copy *	RETVAL;
#line 127 "xs/GtkTextView.xs"
	gtk_text_view_get_iter_at_location (text_view, &iter, x, y);
	RETVAL = &iter;
#line 448 "xs/GtkTextView.c"
	ST(0) = newSVGtkTextIter_copy (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}

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


XS_EUPXS(XS_Gtk2__TextView_get_iter_at_position); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_iter_at_position)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "text_view, x, y");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	gint	x = (gint)SvIV(ST(1))
;
	gint	y = (gint)SvIV(ST(2))
;
#line 153 "xs/GtkTextView.xs"
	GtkTextIter iter;
	gint trailing;
#line 477 "xs/GtkTextView.c"
#line 156 "xs/GtkTextView.xs"
	gtk_text_view_get_iter_at_position (text_view, &iter, &trailing, x, y);
	PUSHs (sv_2mortal (newSVGtkTextIter_copy (&iter)));
	if (G_ARRAY == GIMME)
		XPUSHs (sv_2mortal (newSViv (trailing)));
#line 483 "xs/GtkTextView.c"
	PUTBACK;
	return;
    }
}

#endif

XS_EUPXS(XS_Gtk2__TextView_get_line_yrange); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_line_yrange)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "text_view, iter");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	const GtkTextIter *	iter = SvGtkTextIter (ST(1))
;
	gint	y;
	gint	height;

	gtk_text_view_get_line_yrange(text_view, iter, &y, &height);
	XSprePUSH;	EXTEND(SP,2);
	PUSHs(sv_newmortal());
	sv_setiv(ST(0), (IV)y);
	PUSHs(sv_newmortal());
	sv_setiv(ST(1), (IV)height);
    }
    XSRETURN(2);
}


XS_EUPXS(XS_Gtk2__TextView_get_line_at_y); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_line_at_y)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "text_view, y");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	gint	y = (gint)SvIV(ST(1))
;
#line 175 "xs/GtkTextView.xs"
	GtkTextIter target_iter;
	gint line_top;
#line 532 "xs/GtkTextView.c"
#line 178 "xs/GtkTextView.xs"
	gtk_text_view_get_line_at_y (text_view, &target_iter, y, &line_top);
	EXTEND (sp, 2);
	PUSHs (sv_2mortal (newSVGtkTextIter_copy (&target_iter)));
	PUSHs (sv_2mortal (newSViv (line_top)));
#line 538 "xs/GtkTextView.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__TextView_buffer_to_window_coords); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_buffer_to_window_coords)
{
    dVAR; dXSARGS;
    if (items != 4)
       croak_xs_usage(cv,  "text_view, win, buffer_x, buffer_y");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	GtkTextWindowType	win = SvGtkTextWindowType (ST(1))
;
	gint	buffer_x = (gint)SvIV(ST(2))
;
	gint	buffer_y = (gint)SvIV(ST(3))
;
	gint	window_x;
	gint	window_y;

	gtk_text_view_buffer_to_window_coords(text_view, win, buffer_x, buffer_y, &window_x, &window_y);
	XSprePUSH;	EXTEND(SP,2);
	PUSHs(sv_newmortal());
	sv_setiv(ST(0), (IV)window_x);
	PUSHs(sv_newmortal());
	sv_setiv(ST(1), (IV)window_y);
    }
    XSRETURN(2);
}


XS_EUPXS(XS_Gtk2__TextView_window_to_buffer_coords); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_window_to_buffer_coords)
{
    dVAR; dXSARGS;
    if (items != 4)
       croak_xs_usage(cv,  "text_view, win, window_x, window_y");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	GtkTextWindowType	win = SvGtkTextWindowType (ST(1))
;
	gint	window_x = (gint)SvIV(ST(2))
;
	gint	window_y = (gint)SvIV(ST(3))
;
	gint	buffer_x;
	gint	buffer_y;

	gtk_text_view_window_to_buffer_coords(text_view, win, window_x, window_y, &buffer_x, &buffer_y);
	XSprePUSH;	EXTEND(SP,2);
	PUSHs(sv_newmortal());
	sv_setiv(ST(0), (IV)buffer_x);
	PUSHs(sv_newmortal());
	sv_setiv(ST(1), (IV)buffer_y);
    }
    XSRETURN(2);
}


XS_EUPXS(XS_Gtk2__TextView_get_window); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_window)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "text_view, win");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	GtkTextWindowType	win = SvGtkTextWindowType (ST(1))
;
	GdkWindow *	RETVAL;

	RETVAL = gtk_text_view_get_window(text_view, win);
	ST(0) = newSVGdkWindow (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextView_get_window_type); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_window_type)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "text_view, window");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	GdkWindow *	window = SvGdkWindow (ST(1))
;
	GtkTextWindowType	RETVAL;

	RETVAL = gtk_text_view_get_window_type(text_view, window);
	ST(0) = newSVGtkTextWindowType (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextView_set_border_window_size); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_set_border_window_size)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "text_view, type, size");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	GtkTextWindowType	type = SvGtkTextWindowType (ST(1))
;
	gint	size = (gint)SvIV(ST(2))
;

	gtk_text_view_set_border_window_size(text_view, type, size);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextView_get_border_window_size); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_border_window_size)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "text_view, type");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	GtkTextWindowType	type = SvGtkTextWindowType (ST(1))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gtk_text_view_get_border_window_size(text_view, type);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


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

	RETVAL = gtk_text_view_forward_display_line(text_view, iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


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

	RETVAL = gtk_text_view_backward_display_line(text_view, iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


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

	RETVAL = gtk_text_view_forward_display_line_end(text_view, iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


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

	RETVAL = gtk_text_view_backward_display_line_start(text_view, iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


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

	RETVAL = gtk_text_view_starts_display_line(text_view, iter);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


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

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


XS_EUPXS(XS_Gtk2__TextView_add_child_in_window); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_add_child_in_window)
{
    dVAR; dXSARGS;
    if (items != 5)
       croak_xs_usage(cv,  "text_view, child, which_window, xpos, ypos");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	GtkWidget *	child = SvGtkWidget (ST(1))
;
	GtkTextWindowType	which_window = SvGtkTextWindowType (ST(2))
;
	gint	xpos = (gint)SvIV(ST(3))
;
	gint	ypos = (gint)SvIV(ST(4))
;

	gtk_text_view_add_child_in_window(text_view, child, which_window, xpos, ypos);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextView_move_child); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_move_child)
{
    dVAR; dXSARGS;
    if (items != 4)
       croak_xs_usage(cv,  "text_view, child, xpos, ypos");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	GtkWidget *	child = SvGtkWidget (ST(1))
;
	gint	xpos = (gint)SvIV(ST(2))
;
	gint	ypos = (gint)SvIV(ST(3))
;

	gtk_text_view_move_child(text_view, child, xpos, ypos);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextView_get_wrap_mode); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_wrap_mode)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "text_view");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	GtkWrapMode	RETVAL;

	RETVAL = gtk_text_view_get_wrap_mode(text_view);
	ST(0) = newSVGtkWrapMode (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextView_set_editable); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_set_editable)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "text_view, setting");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	gboolean	setting = (bool)SvTRUE(ST(1))
;

	gtk_text_view_set_editable(text_view, setting);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextView_get_editable); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_editable)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "text_view");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gtk_text_view_get_editable(text_view);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}

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


XS_EUPXS(XS_Gtk2__TextView_set_overwrite); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_set_overwrite)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "text_view, overwrite");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	gboolean	overwrite = (bool)SvTRUE(ST(1))
;

	gtk_text_view_set_overwrite(text_view, overwrite);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextView_get_overwrite); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_overwrite)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "text_view");
    {
	gboolean	RETVAL;
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;

	RETVAL = gtk_text_view_get_overwrite(text_view);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextView_set_accepts_tab); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_set_accepts_tab)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "text_view, accepts_tab");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	gboolean	accepts_tab = (bool)SvTRUE(ST(1))
;

	gtk_text_view_set_accepts_tab(text_view, accepts_tab);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextView_get_accepts_tab); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_accepts_tab)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "text_view");
    {
	gboolean	RETVAL;
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;

	RETVAL = gtk_text_view_get_accepts_tab(text_view);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}

#endif

XS_EUPXS(XS_Gtk2__TextView_set_pixels_above_lines); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_set_pixels_above_lines)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "text_view, pixels_above_lines");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	gint	pixels_above_lines = (gint)SvIV(ST(1))
;

	gtk_text_view_set_pixels_above_lines(text_view, pixels_above_lines);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextView_get_pixels_above_lines); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_pixels_above_lines)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "text_view");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gtk_text_view_get_pixels_above_lines(text_view);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextView_set_pixels_below_lines); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_set_pixels_below_lines)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "text_view, pixels_below_lines");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	gint	pixels_below_lines = (gint)SvIV(ST(1))
;

	gtk_text_view_set_pixels_below_lines(text_view, pixels_below_lines);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextView_get_pixels_below_lines); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_pixels_below_lines)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "text_view");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gtk_text_view_get_pixels_below_lines(text_view);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextView_set_pixels_inside_wrap); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_set_pixels_inside_wrap)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "text_view, pixels_inside_wrap");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	gint	pixels_inside_wrap = (gint)SvIV(ST(1))
;

	gtk_text_view_set_pixels_inside_wrap(text_view, pixels_inside_wrap);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextView_get_pixels_inside_wrap); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_pixels_inside_wrap)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "text_view");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gtk_text_view_get_pixels_inside_wrap(text_view);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextView_set_justification); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_set_justification)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "text_view, justification");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	GtkJustification	justification = SvGtkJustification (ST(1))
;

	gtk_text_view_set_justification(text_view, justification);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextView_get_justification); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_justification)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "text_view");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	GtkJustification	RETVAL;

	RETVAL = gtk_text_view_get_justification(text_view);
	ST(0) = newSVGtkJustification (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextView_set_left_margin); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_set_left_margin)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "text_view, left_margin");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	gint	left_margin = (gint)SvIV(ST(1))
;

	gtk_text_view_set_left_margin(text_view, left_margin);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextView_get_left_margin); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_left_margin)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "text_view");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gtk_text_view_get_left_margin(text_view);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextView_set_right_margin); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_set_right_margin)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "text_view, right_margin");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	gint	right_margin = (gint)SvIV(ST(1))
;

	gtk_text_view_set_right_margin(text_view, right_margin);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextView_get_right_margin); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_right_margin)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "text_view");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gtk_text_view_get_right_margin(text_view);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextView_set_indent); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_set_indent)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "text_view, indent");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	gint	indent = (gint)SvIV(ST(1))
;

	gtk_text_view_set_indent(text_view, indent);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextView_get_indent); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_indent)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "text_view");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	gint	RETVAL;
	dXSTARG;

	RETVAL = gtk_text_view_get_indent(text_view);
	XSprePUSH; PUSHi((IV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextView_set_tabs); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_set_tabs)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "text_view, tabs");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	PangoTabArray *	tabs = SvPangoTabArray (ST(1))
;

	gtk_text_view_set_tabs(text_view, tabs);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextView_get_tabs); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_tabs)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "text_view");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	PangoTabArray_own *	RETVAL;

	RETVAL = gtk_text_view_get_tabs(text_view);
	ST(0) = newSVPangoTabArray_own (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextView_add_child_at_anchor); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_add_child_at_anchor)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "text_view, child, anchor");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	GtkWidget *	child = SvGtkWidget (ST(1))
;
	GtkTextChildAnchor *	anchor = SvGtkTextChildAnchor (ST(2))
;

	gtk_text_view_add_child_at_anchor(text_view, child, anchor);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextView_set_wrap_mode); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_set_wrap_mode)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "text_view, wrap_mode");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	GtkWrapMode	wrap_mode = SvGtkWrapMode (ST(1))
;

	gtk_text_view_set_wrap_mode(text_view, wrap_mode);
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__TextView_get_default_attributes); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_default_attributes)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "text_view");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	GtkTextAttributes_own *	RETVAL;

	RETVAL = gtk_text_view_get_default_attributes(text_view);
	ST(0) = newSVGtkTextAttributes_own (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextView_get_buffer); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_buffer)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "text_view");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	GtkTextBuffer *	RETVAL;

	RETVAL = gtk_text_view_get_buffer(text_view);
	ST(0) = newSVGtkTextBuffer (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}

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


XS_EUPXS(XS_Gtk2__TextView_get_hadjustment); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_hadjustment)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "text_view");
    {
	GtkAdjustment *	RETVAL;
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;

	RETVAL = gtk_text_view_get_hadjustment(text_view);
	ST(0) = newSVGtkAdjustment (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextView_get_vadjustment); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_get_vadjustment)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "text_view");
    {
	GtkAdjustment *	RETVAL;
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;

	RETVAL = gtk_text_view_get_vadjustment(text_view);
	ST(0) = newSVGtkAdjustment (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextView_im_context_filter_keypress); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_im_context_filter_keypress)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "text_view, event");
    {
	gboolean	RETVAL;
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;
	GdkEvent *	event = SvGdkEvent (ST(1))
;

	RETVAL = gtk_text_view_im_context_filter_keypress(text_view, (GdkEventKey *) event);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__TextView_reset_im_context); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__TextView_reset_im_context)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "text_view");
    {
	GtkTextView *	text_view = SvGtkTextView (ST(0))
;

	gtk_text_view_reset_im_context(text_view);
    }
    XSRETURN_EMPTY;
}

#endif /* 2.22 */
#ifdef __cplusplus
extern "C"
#endif
XS_EXTERNAL(boot_Gtk2__TextView); /* prototype to pass -Wmissing-prototypes */
XS_EXTERNAL(boot_Gtk2__TextView)
{
    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;

        newXS("Gtk2::TextView::new", XS_Gtk2__TextView_new, file);
        newXS("Gtk2::TextView::new_with_buffer", XS_Gtk2__TextView_new_with_buffer, file);
        newXS("Gtk2::TextView::set_buffer", XS_Gtk2__TextView_set_buffer, file);
        newXS("Gtk2::TextView::scroll_to_iter", XS_Gtk2__TextView_scroll_to_iter, file);
        newXS("Gtk2::TextView::scroll_to_mark", XS_Gtk2__TextView_scroll_to_mark, file);
        newXS("Gtk2::TextView::scroll_mark_onscreen", XS_Gtk2__TextView_scroll_mark_onscreen, file);
        newXS("Gtk2::TextView::move_mark_onscreen", XS_Gtk2__TextView_move_mark_onscreen, file);
        newXS("Gtk2::TextView::place_cursor_onscreen", XS_Gtk2__TextView_place_cursor_onscreen, file);
        newXS("Gtk2::TextView::get_visible_rect", XS_Gtk2__TextView_get_visible_rect, file);
        newXS("Gtk2::TextView::set_cursor_visible", XS_Gtk2__TextView_set_cursor_visible, file);
        newXS("Gtk2::TextView::get_cursor_visible", XS_Gtk2__TextView_get_cursor_visible, file);
        newXS("Gtk2::TextView::get_iter_location", XS_Gtk2__TextView_get_iter_location, file);
        newXS("Gtk2::TextView::get_iter_at_location", XS_Gtk2__TextView_get_iter_at_location, file);
#if XSubPPtmpAAAA
        newXS("Gtk2::TextView::get_iter_at_position", XS_Gtk2__TextView_get_iter_at_position, file);
#endif
        newXS("Gtk2::TextView::get_line_yrange", XS_Gtk2__TextView_get_line_yrange, file);
        newXS("Gtk2::TextView::get_line_at_y", XS_Gtk2__TextView_get_line_at_y, file);
        newXS("Gtk2::TextView::buffer_to_window_coords", XS_Gtk2__TextView_buffer_to_window_coords, file);
        newXS("Gtk2::TextView::window_to_buffer_coords", XS_Gtk2__TextView_window_to_buffer_coords, file);
        newXS("Gtk2::TextView::get_window", XS_Gtk2__TextView_get_window, file);
        newXS("Gtk2::TextView::get_window_type", XS_Gtk2__TextView_get_window_type, file);
        newXS("Gtk2::TextView::set_border_window_size", XS_Gtk2__TextView_set_border_window_size, file);
        newXS("Gtk2::TextView::get_border_window_size", XS_Gtk2__TextView_get_border_window_size, file);
        newXS("Gtk2::TextView::forward_display_line", XS_Gtk2__TextView_forward_display_line, file);
        newXS("Gtk2::TextView::backward_display_line", XS_Gtk2__TextView_backward_display_line, file);
        newXS("Gtk2::TextView::forward_display_line_end", XS_Gtk2__TextView_forward_display_line_end, file);
        newXS("Gtk2::TextView::backward_display_line_start", XS_Gtk2__TextView_backward_display_line_start, file);
        newXS("Gtk2::TextView::starts_display_line", XS_Gtk2__TextView_starts_display_line, file);
        newXS("Gtk2::TextView::move_visually", XS_Gtk2__TextView_move_visually, file);
        newXS("Gtk2::TextView::add_child_in_window", XS_Gtk2__TextView_add_child_in_window, file);
        newXS("Gtk2::TextView::move_child", XS_Gtk2__TextView_move_child, file);
        newXS("Gtk2::TextView::get_wrap_mode", XS_Gtk2__TextView_get_wrap_mode, file);
        newXS("Gtk2::TextView::set_editable", XS_Gtk2__TextView_set_editable, file);
        newXS("Gtk2::TextView::get_editable", XS_Gtk2__TextView_get_editable, file);
#if XSubPPtmpAAAB
        newXS("Gtk2::TextView::set_overwrite", XS_Gtk2__TextView_set_overwrite, file);
        newXS("Gtk2::TextView::get_overwrite", XS_Gtk2__TextView_get_overwrite, file);
        newXS("Gtk2::TextView::set_accepts_tab", XS_Gtk2__TextView_set_accepts_tab, file);
        newXS("Gtk2::TextView::get_accepts_tab", XS_Gtk2__TextView_get_accepts_tab, file);
#endif
        newXS("Gtk2::TextView::set_pixels_above_lines", XS_Gtk2__TextView_set_pixels_above_lines, file);
        newXS("Gtk2::TextView::get_pixels_above_lines", XS_Gtk2__TextView_get_pixels_above_lines, file);
        newXS("Gtk2::TextView::set_pixels_below_lines", XS_Gtk2__TextView_set_pixels_below_lines, file);
        newXS("Gtk2::TextView::get_pixels_below_lines", XS_Gtk2__TextView_get_pixels_below_lines, file);
        newXS("Gtk2::TextView::set_pixels_inside_wrap", XS_Gtk2__TextView_set_pixels_inside_wrap, file);
        newXS("Gtk2::TextView::get_pixels_inside_wrap", XS_Gtk2__TextView_get_pixels_inside_wrap, file);
        newXS("Gtk2::TextView::set_justification", XS_Gtk2__TextView_set_justification, file);
        newXS("Gtk2::TextView::get_justification", XS_Gtk2__TextView_get_justification, file);
        newXS("Gtk2::TextView::set_left_margin", XS_Gtk2__TextView_set_left_margin, file);
        newXS("Gtk2::TextView::get_left_margin", XS_Gtk2__TextView_get_left_margin, file);
        newXS("Gtk2::TextView::set_right_margin", XS_Gtk2__TextView_set_right_margin, file);
        newXS("Gtk2::TextView::get_right_margin", XS_Gtk2__TextView_get_right_margin, file);
        newXS("Gtk2::TextView::set_indent", XS_Gtk2__TextView_set_indent, file);
        newXS("Gtk2::TextView::get_indent", XS_Gtk2__TextView_get_indent, file);
        newXS("Gtk2::TextView::set_tabs", XS_Gtk2__TextView_set_tabs, file);
        newXS("Gtk2::TextView::get_tabs", XS_Gtk2__TextView_get_tabs, file);
        newXS("Gtk2::TextView::add_child_at_anchor", XS_Gtk2__TextView_add_child_at_anchor, file);
        newXS("Gtk2::TextView::set_wrap_mode", XS_Gtk2__TextView_set_wrap_mode, file);
        newXS("Gtk2::TextView::get_default_attributes", XS_Gtk2__TextView_get_default_attributes, file);
        newXS("Gtk2::TextView::get_buffer", XS_Gtk2__TextView_get_buffer, file);
#if XSubPPtmpAAAC
        newXS("Gtk2::TextView::get_hadjustment", XS_Gtk2__TextView_get_hadjustment, file);
        newXS("Gtk2::TextView::get_vadjustment", XS_Gtk2__TextView_get_vadjustment, file);
        newXS("Gtk2::TextView::im_context_filter_keypress", XS_Gtk2__TextView_im_context_filter_keypress, file);
        newXS("Gtk2::TextView::reset_im_context", XS_Gtk2__TextView_reset_im_context, file);
#endif

    /* Initialisation Section */

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

